Get Ad Detail
curl --request GET \
--url https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"cost": 1,
"data": {
"id": "637671316",
"content": "Discover how to secure each layer of your Kubernetes infrastructure, from identifying risky service misconfigurations to mitigating threats, with these actionable insights.",
"ad_url": "https://www.linkedin.com/ad-library/detail/637671316",
"image": "https://media.licdn.com/dms/image/v2/D5610AQHtcYawAj6YFQ/image-shrink_1280/B56ZVdZy93HQAQ-/0/1741028799247/KubernetesSecurity_ebook_coverpreview_1200x1200png?e=2147483647&v=beta&t=_nHCjPukv7WQxxGbsCtlf7VH6DzntKMFGD1NIMrmMOw",
"advertiser": {
"name": "Datadog",
"url": "https://www.linkedin.com/company/1066442?trk=ad_library_about_ad_advertiser"
},
"publisher": {
"name": "Datadog",
"url": "https://www.linkedin.com/company/1066442?trk=ad_library_ad_preview_advertiser"
},
"ad_type": "Single Image Ad",
"paid_for_by": "Datadog"
}
}{
"message": "Bad request"
}{
"message": "Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info."
}{
"message": "You are not subscribed to this API."
}{
"success": false,
"message": "Request failed with status 500: Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Oops, it looks like there was an issue processing your request. Don't worry, you won't be charged for this request. If you need any help, don't hesitate to contact us via email [email protected] or telegram https://t.me/saleleads"
}Ads
Get Ad Detail
Get Ad Detail
GET
/
api
/
v1
/
ad-library
/
detail
Get Ad Detail
curl --request GET \
--url https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail \
--header 'x-rapidapi-key: <api-key>'import requests
url = "https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail"
headers = {"x-rapidapi-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-rapidapi-key': '<api-key>'}};
fetch('https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rapidapi-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail")
.header("x-rapidapi-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://fresh-linkedin-scraper-api.p.rapidapi.com/api/v1/ad-library/detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rapidapi-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"cost": 1,
"data": {
"id": "637671316",
"content": "Discover how to secure each layer of your Kubernetes infrastructure, from identifying risky service misconfigurations to mitigating threats, with these actionable insights.",
"ad_url": "https://www.linkedin.com/ad-library/detail/637671316",
"image": "https://media.licdn.com/dms/image/v2/D5610AQHtcYawAj6YFQ/image-shrink_1280/B56ZVdZy93HQAQ-/0/1741028799247/KubernetesSecurity_ebook_coverpreview_1200x1200png?e=2147483647&v=beta&t=_nHCjPukv7WQxxGbsCtlf7VH6DzntKMFGD1NIMrmMOw",
"advertiser": {
"name": "Datadog",
"url": "https://www.linkedin.com/company/1066442?trk=ad_library_about_ad_advertiser"
},
"publisher": {
"name": "Datadog",
"url": "https://www.linkedin.com/company/1066442?trk=ad_library_ad_preview_advertiser"
},
"ad_type": "Single Image Ad",
"paid_for_by": "Datadog"
}
}{
"message": "Bad request"
}{
"message": "Invalid API key. Go to https://docs.rapidapi.com/docs/keys for more info."
}{
"message": "You are not subscribed to this API."
}{
"success": false,
"message": "Request failed with status 500: Internal Server Error",
"status_code": 500,
"cost": 0,
"explain": "Oops, it looks like there was an issue processing your request. Don't worry, you won't be charged for this request. If you need any help, don't hesitate to contact us via email [email protected] or telegram https://t.me/saleleads"
}⌘I