LinkedIn Ad Search
Search LinkedIn's Ad Library by keyword, company, country, and date range. Supports both structured parameters and raw Ad Library search URLs.
Pricing: 0.2 credit per result in the elements array.
curl -X GET "https://v3-api.texau.com/api/v1/ad_search?searchUrl=example_string&keyword=hiring&accountOwner=stripe&countries=US,GB&dateOption=last-30-days&startdate=2024-12-25&enddate=2024-12-25&paginationToken=example_string" \
-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_search?searchUrl=example_string&keyword=hiring&accountOwner=stripe&countries=US,GB&dateOption=last-30-days&startdate=2024-12-25&enddate=2024-12-25&paginationToken=example_string"
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_search?searchUrl=example_string&keyword=hiring&accountOwner=stripe&countries=US,GB&dateOption=last-30-days&startdate=2024-12-25&enddate=2024-12-25&paginationToken=example_string", {
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_search?searchUrl=example_string&keyword=hiring&accountOwner=stripe&countries=US,GB&dateOption=last-30-days&startdate=2024-12-25&enddate=2024-12-25&paginationToken=example_string", 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_search?searchUrl=example_string&keyword=hiring&accountOwner=stripe&countries=US,GB&dateOption=last-30-days&startdate=2024-12-25&enddate=2024-12-25&paginationToken=example_string')
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
{
"elements": [
{
"id": "example_string",
"advertiser": {
"name": "John Doe",
"imageUrl": "example_string",
"headline": "example_string"
},
"content": {
"headline": "example_string",
"description": "example_string",
"pageUrl": "example_string",
"imageUrl": "example_string"
},
"creativeType": "example_string"
}
],
"pagination": {
"totalPages": 25,
"totalElements": 42,
"pageSize": 25,
"paginationToken": "example_string"
},
"status": 42,
"query": {}
}
{
"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
}
/ad_search
Your TexAu API key. Contact TexAu to obtain one.
Full LinkedIn Ad Library search URL (alternative to params below).
Search by keyword.
Company or advertiser name.
Comma-separated country codes or ALL.
Date filter preset.
Start date for custom range (YYYY-MM-DD).
End date for custom range (YYYY-MM-DD).
Pagination token from previous response.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your TexAu API key. Contact TexAu to obtain one.
Query Parameters
Full LinkedIn Ad Library search URL (alternative to params below).
Search by keyword.
Company or advertiser name.
Comma-separated country codes or ALL.
Date filter preset.
last-30-dayscurrent-monthcurrent-yearlast-yearcustom-date-rangeStart date for custom range (YYYY-MM-DD).
End date for custom range (YYYY-MM-DD).
Pagination token from previous response.
Responses
Last updated 2 weeks ago
Built with Documentation.AI