API · LinkedIn
GET /linkedin/ads
LinkedIn Ad Library search by company, advertiser, keyword, country and dates, paginated.
| Request | GET /v1/linkedin/ads |
| Operation id | linkedin.ads.search |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
LinkedIn Ad Library search by company, advertiser, keyword, country and dates, paginated.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
company_id | string | no | Numeric company ids, comma-separated (up to 10). Example: 1035. |
advertiser | string | no | Advertiser name, as LinkedIn’s own advertiser box takes it. |
keyword | string | no | Words in the ad. |
payer | string | no | Who paid for the ad. |
countries | string | no | ISO 3166 alpha-2 codes, comma-separated, e.g. US,GB. |
date_option | "last-30-days" | "current-month" | "current-year" | "last-year" | no | One of last-30-days, current-month, current-year, last-year. |
start_date | string | no | Ads shown on or after (YYYY-MM-DD); with end_date. |
end_date | string | no | Ads shown on or before (YYYY-MM-DD). |
after | string | no | Cursor: the previous page’s after, with the same filters. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of ads. | LinkedInAdsPage |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | LinkedIn has no such public page, or it was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. | Error |
LinkedInAdsPage fields
| Field | Type | Description |
|---|---|---|
total_count | integer | null | |
data | LinkedInAdCard[] | |
after | string | null | Pagination token for the next 24; null on the last page. |
Errors use one shape everywhere; see Errors for every code and what to do.