LinkedIn Ad Details
Get full details of a specific LinkedIn ad including creative variants, impression breakdown by country, and targeting segments.
Pricing: 2 credits per call.
curl -X GET "https://v3-api.texau.com/api/v1/ad_details?url=https://www.linkedin.com/ad-library/detail/1215501393" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY"
import requests
import json
url = "https://v3-api.texau.com/api/v1/ad_details?url=https://www.linkedin.com/ad-library/detail/1215501393"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://v3-api.texau.com/api/v1/ad_details?url=https://www.linkedin.com/ad-library/detail/1215501393", {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://v3-api.texau.com/api/v1/ad_details?url=https://www.linkedin.com/ad-library/detail/1215501393", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://v3-api.texau.com/api/v1/ad_details?url=https://www.linkedin.com/ad-library/detail/1215501393')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"element": {
"id": "example_string",
"variants": [
{
"advertiser": {},
"content": {},
"creativeType": "example_string"
}
],
"about": {
"format": "example_string",
"advertiserName": "John Doe",
"paidBy": "example_string"
},
"impressions": {},
"targeting": {}
},
"query": {},
"status": 42
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
GET
/ad_details
GET
API Key (header: x-api-key)
x-api-keystring
RequiredYour TexAu API key. Contact TexAu to obtain one.
Your TexAu API key. Contact TexAu to obtain one.
query
urlstring
RequiredLinkedIn Ad Library detail URL.
Request Preview
Response
Response will appear here after sending the request
Authentication
header
x-api-keystring
RequiredAPI Key for authentication. Your TexAu API key. Contact TexAu to obtain one.
Query Parameters
urlstring
RequiredLinkedIn Ad Library detail URL.
Responses
elementobject
idstring
variantsarray
advertiserobject
contentobject
creativeTypestring
aboutobject
formatstring
advertiserNamestring
paidBystring
impressionsobject
targetingobject
queryobject
statusinteger
messagestring
errorstring
apistring
limitinteger
currentinteger
Was this page helpful?
Last updated 2 weeks ago
Built with Documentation.AI