Platforms · LinkedIn

LinkedIn Ads Search Scraper API

Searches the LinkedIn Ad Library for ads by company, keyword, or filters. Returns matching ads with ad copy and sponsor info.

GET /api/v1/data/linkedin/ads-search · 5 credits per page · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Inputs

  • company: The company name to search for. 'Microsoft' for example
  • keyword: The keyword to search for
  • companyId: The company id to search for
  • countries: Comma separated list of countries. Example: US,CA,MX
  • startDate: Start date to search for. Format: YYYY-MM-DD
  • endDate: End date to search for. Format: YYYY-MM-DD
  • paginationToken: Pagination token to paginate through results
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].adDuration (string): How long the ad ran, as the library words it. Empty when it does not say.
  • items[].adType (string): The ad format, such as `Single Image Ad`.
  • items[].advertiser (string): The advertiser's name.
  • items[].advertiserLinkedinPage (string): The advertiser's LinkedIn page.
  • items[].advertiserLogo (string): The advertiser's logo link.
  • items[].carouselImages (array): The image links of a carousel ad. Empty for other formats.
  • items[].creativeType (string): LinkedIn's internal creative type, such as `SPONSORED_STATUS_UPDATE`.
  • items[].cta (string): The call-to-action button label, or null when the ad has none.
  • items[].date (string): When the ad ran, as the library words it, or null when it does not say.
  • items[].description (string): The ad copy.
  • items[].destinationUrl (string): Where the ad leads, or null when the library does not show it.
  • items[].endDate (string): When the ad stopped running, or null when it is still running or the library does not show it.
  • items[].headline (string): The ad headline.
  • items[].id (string): The ad's id in the LinkedIn Ad Library.
  • items[].image (string): The ad image link.
  • items[].impressionsByCountry (array): Impressions split by country. Empty when the library does not publish them.
  • items[].landingPage (string): The ad's landing page, or null when the library does not show it.
  • items[].organicVideo (string): The organic video link, or null when the ad has none.
  • items[].poster (string): Who the ad was posted as.
  • items[].preRollAdvertiser (string): The pre-roll advertiser's name, or null when the ad has none.
  • items[].preRollVideo (string): The pre-roll video link, or null when the ad has none.
  • items[].sponsoredMessageButtons (array): The buttons on a message ad. Empty for other formats.
  • items[].sponsoredMessageSender (string): Who a message ad is sent from, or null for other formats.
  • items[].sponsoredMessageSenderAvatar (string): The sender's photo for a message ad, or null for other formats.
  • items[].startDate (string): When the ad started running, or null when the library does not show it.
  • items[].targeting (any): Empty when the library does not publish it.
  • items[].totalImpressions (number): How many times the ad was shown, or null when the library does not publish it.
  • items[].url (string): The ad's Ad Library page.
  • items[].video (string): The ad video link, or null when the ad has none.
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each page costs 5 credits. A call that finds nothing, or fails, is free.
  • Each call returns one page of about 24 rows. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.
  • Send one of: company, keyword, companyId.

Example call

GET /api/v1/data/linkedin/ads-search?company=microsoft

Questions

How much does the LinkedIn Ads Search API cost?

Each page costs 5 credits. A call that finds nothing, or fails, costs nothing.

What do I send?

Give one of company, keyword and companyId. 7 more inputs are optional: company, keyword, companyId, countries, startDate, endDate and paginationToken. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page of about 24 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

How fresh is the data?

The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Do I need a LinkedIn account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related LinkedIn endpoints

  • Ad: Get LinkedIn ad details. 5 credits a call

More LinkedIn scraper APIs