Apify example task · whoareyouanas/linkedin-ad-library-scraper

Find LinkedIn cloud security ad examples

Search LinkedIn Ad Library for cloud security ads. Review advertiser names, copy and available creative formats before building a messaging brief.

Actor
LinkedIn Ad Library Scraper & API: Ads and Targeting
Result limit
6 (maxResults)
Estimated cost
Up to $0.0072
Run options
Actor defaults

Example updated 2026-11-20 · actor build 0.3.7 · runs in your own Apify account

01 / About the actor

LinkedIn Ad Library Scraper & API: Ads and Targeting

Research LinkedIn ads by company ID, company name, keyword, or direct ad URL. Choose listing or full-detail mode and retain retrieval-level and coverage evidence for every exported ad.

Precise advertiser research

Use company IDs when you need a specific advertiser rather than an ambiguous company-name match.

Listing or full detail

Choose a lighter listing record or fetch supported detail fields with explicit fallback behavior.

Check search coverage

Review run summaries, retrieval levels, and source warnings before treating a search as complete.

02 / Input

The exact input this example runs.

Provide companyIds, companies, keywords, searches, or adUrls according to the documented search mode. Set maxResults and maxResultsPerSearch. Mode full does not guarantee every possible field is public.

input.json · linkedin-ads-keyword-cloud-security
{
  "maxResults": 6,
  "maxResultsPerSearch": 3,
  "maxConcurrency": 1,
  "maxRunSeconds": 120,
  "searches": [
    {
      "type": "keyword",
      "value": "cloud security"
    }
  ],
  "mode": "listing"
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat it controls
maxResultsChange this6Global delivered-ad limit; defaults to 100 in the Actor code. Zero removes this row limit while request/time/charge budgets still apply.
maxResultsPerSearchChange this3Per-search unique usable match limit. Zero removes this row limit.
maxConcurrency1Upper request ceiling. Host pacing can reduce actual concurrency.
maxRunSeconds120Operational deadline in seconds. Reaching it produces an explicit partial summary.
searchesChange this{"type":"keyword","value":"cloud security"}Objects with type (companyId, companyUrl, advertiser, keyword, searchUrl, adUrl), string value, optional label and per-search filters. Organization IDs must be strings. URL filters are authoritative; contradictory structured filters are rejected. Invalid searches are recorded while other valid searches continue.
modeChange this"listing"Defaults to full in the Actor code. Listing records only source-visible card fields and marks truncated copy. Full additionally fetches each eligible unique detail. Missing source disclosure is not invented. Direct ad URLs always require full retrieval.
Other inputs you can add (8)
Deployed actor input fields, types, defaults, and descriptions
FieldType / requiredDefaultPurpose
companiesarrayNot specifiedAdvertiser name text or a public LinkedIn company URL. Names are text matches; URL slugs must resolve to a verified organization ID.
companyIdsarrayNot specifiedPositive numeric organization IDs supplied as strings. Returned advertiser identity is verified before exact matches are delivered.
keywordsarrayNot specifiedIndependent text searches across ad copy.
adUrlsarrayNot specifiedHTTPS public /ad-library/detail/ or /ad-library/employer-brand/ URLs. Search filters do not apply to direct ads.
allowListingFallbackbooleantrueIn full mode, deliver usable card data at the listing event price when detail retrieval fails. False withholds those ads and records their failures.
filtersobjectNot specifiedOptional countries (ISO alpha-2 array), payer text, dateRange, startDate and endDate. No country constraint by default. Date presets: all-time, last-30-days, current-month, current-year, last-year, custom. Custom dates require both YYYY-MM-DD dates. Unknown filters are rejected; last-7-days and last-90-days are not currently advertised.
maxRequestsinteger5000Includes retries and company resolution. Reaching this budget produces an explicit partial summary.

Minimum: 1 · Maximum: 1000000

adFormatsarrayNot specifiedOptional canonical labels: SINGLE_IMAGE, VIDEO, CAROUSEL, DOCUMENT, TEXT, MESSAGE, CONVERSATION, THOUGHT_LEADER, EVENT, SPOTLIGHT, EMPLOYER_BRAND. Filter runs after scanning. Full detail acceptance is verified for image, video, carousel, document and thought-leader layouts; other formats may return listing fallbacks.

03 / Make it yours

Change these fields for your own research.

  1. 01 · maxResults

    Global maximum unique ads

    Global delivered-ad limit; defaults to 100 in the Actor code. Zero removes this row limit while request/time/charge budgets still apply.

    Example: 6

  2. 02 · maxResultsPerSearch

    Maximum unique ads per search

    Per-search unique usable match limit. Zero removes this row limit.

    Example: 3

  3. 03 · searches

    Independent searches

    Objects with type (companyId, companyUrl, advertiser, keyword, searchUrl, adUrl), string value, optional label and per-search filters. Organization IDs must be strings. URL filters are authoritative; contradictory structured filters are rejected. Invalid searches are recorded while other valid searches continue.

    Example: {"type":"keyword","value":"cloud security"}

  4. 04 · mode

    Collection mode

    Defaults to full in the Actor code. Listing records only source-visible card fields and marks truncated copy. Full additionally fetches each eligible unique detail. Missing source disclosure is not invented. Direct ad URLs always require full retrieval.

    Example: "listing"

Run it in three steps

  1. Open the example on Apify and select Try for free to copy it into your Apify account.
  2. Replace the sample values above with your own target and keep the limit small.
  3. Start the run, then export the dataset as JSON, CSV or Excel.

04 / Output

What the results table shows.

Columns in the “Ads” view

adId

Ad ID

advertiserName

Advertiser

advertiserCompanyId

advertiserCompanyId

format

Format

headline

Headline

body

Ad copy

imageUrl

Image

videoUrl

videoUrl

clickUrl

clickUrl

paidBy

paidBy

retrievalLevel

retrievalLevel

adUrl

Ad Library

scrapedAt

scrapedAt

A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.

05 / Cost

What this example costs to run.

At most about $0.0072: up to 6 results at $0.0012 each (Full ad) plus $0.002 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.

Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.

06 / API

Run the same input from your code.

This call starts a billable run of LinkedIn Ad Library Scraper & API: Ads and Targeting with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.

cURL · run and return the results
curl --request POST \
  'https://api.apify.com/v2/acts/whoareyouanas~linkedin-ad-library-scraper/run-sync-get-dataset-items?format=json' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"maxResults":6,"maxResultsPerSearch":3,"maxConcurrency":1,"maxRunSeconds":120,"searches":[{"type":"keyword","value":"cloud security"}],"mode":"listing"}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Find LinkedIn cloud security ad examples" example collect?

Search LinkedIn Ad Library for cloud security ads. Review advertiser names, copy and available creative formats before building a messaging brief. It runs LinkedIn Ad Library Scraper & API: Ads and Targeting, published by whoareyouanas on Apify.

Which input does this example use?

Global maximum unique ads (maxResults) set to 6; Maximum unique ads per search (maxResultsPerSearch) set to 3; Independent searches (searches) set to {"type":"keyword","value":"cloud security"}; Collection mode (mode) set to "listing". The full JSON input is shown on this page.

How much does it cost to run this example?

At most about $0.0072: up to 6 results at $0.0012 each (Full ad) plus $0.002 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.

How do I change it for my own research?

Open the example on Apify and select Try for free to copy it into your account, then edit Global maximum unique ads, Maximum unique ads per search, Independent searches, Collection mode. Keep the result limit small for the first run and check the output before scaling up.

Can I run it from the API or on a schedule?

Yes. Send the same JSON input to the LinkedIn Ad Library Scraper & API: Ads and Targeting run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.

More examples

Related tasks you can copy.

Guides

Read more about this workflow.