GroundsocialDocs

API · LinkedIn

GET /linkedin/ads

LinkedIn Ad Library search by company, advertiser, keyword, country and dates, paginated.

RequestGET /v1/linkedin/ads
Operation idlinkedin.ads.search
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

LinkedIn Ad Library search by company, advertiser, keyword, country and dates, paginated.

Query parameters

NameTypeRequiredDescription
company_idstringnoNumeric company ids, comma-separated (up to 10). Example: 1035.
advertiserstringnoAdvertiser name, as LinkedIn’s own advertiser box takes it.
keywordstringnoWords in the ad.
payerstringnoWho paid for the ad.
countriesstringnoISO 3166 alpha-2 codes, comma-separated, e.g. US,GB.
date_option"last-30-days" | "current-month" | "current-year" | "last-year"noOne of last-30-days, current-month, current-year, last-year.
start_datestringnoAds shown on or after (YYYY-MM-DD); with end_date.
end_datestringnoAds shown on or before (YYYY-MM-DD).
afterstringnoCursor: the previous page’s after, with the same filters.

Responses

StatusMeaningSchema
200A page of ads.LinkedInAdsPage
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404LinkedIn has no such public page, or it was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.Error

LinkedInAdsPage fields

FieldTypeDescription
total_countinteger | null
dataLinkedInAdCard[]
afterstring | nullPagination token for the next 24; null on the last page.

Errors use one shape everywhere; see Errors for every code and what to do.