{"uid":"cap_3Q3-aJA2ndcY_5NszEGv5","slug":"linkedin-ads-library-scraper-cff5149e","name":"LinkedIn Ads Library Scraper","description":"Pay-per-call structured web data. Failed or empty runs are not charged.","url":"https://api.scrapeforagents.tech/v1/linkedin-ads?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"maxItems":{"type":"integer","default":0,"minimum":0,"description":"Maximum ads across all input URLs. Set to 0 for no total cap."},"startUrls":{"type":"array","description":"Public Ad Library search URLs with advertiser, payer, keyword, date, or country filters. Public company URLs are also accepted and converted to advertiser searches."},"skipDetails":{"type":"boolean","default":false,"description":"Collect search cards only. Runs faster, but dates, payer, impressions, targeting, full body, and media links may be absent."},"resultsLimit":{"type":"integer","default":100,"minimum":1,"description":"Maximum ads to collect from each input URL. The public source may return fewer results when its continuation endpoint blocks requests."}}},"responseSchema":{"type":"json","example":{"count":1,"items":[{"adId":null,"body":null,"adUrl":null,"clickUrl":null,"availability":null,"advertiserUrl":null,"advertiserLogo":null,"advertiserName":null}],"product":"linkedin-ads"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4RICQR_2RMrplXcUKDgMu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scrapes structured ad data from LinkedIn's public Ad Library, returning ad content, advertiser info, and targeting metadata for given search or company URLs.","exampleAgentPrompt":"Pull up to 50 LinkedIn ads for Salesforce from the LinkedIn Ad Library — I want full details including ad body, payer, impressions, targeting info, and media links. Use their company page URL as the starting point.","exampleUseCases":[{"title":"Competitor ad creative research","prompt":"Scrape the LinkedIn Ad Library for HubSpot's current ads — grab up to 100 results with full details including ad copy, impressions, and targeting data so I can see what messaging they're using."},{"title":"Keyword-based ad monitoring","prompt":"Search the LinkedIn Ad Library for ads mentioning 'generative AI' filtered to the United States and collect up to 200 ads total, including dates and advertiser info, so I can track who's advertising in that space."},{"title":"Advertiser compliance audit","prompt":"Pull all LinkedIn ads from the Ad Library for JPMorgan Chase — I need the payer name, availability dates, and full ad body for each one, up to 150 ads, to check what financial products they're promoting."}],"resultDescription":"Returns a JSON object with a count of collected ads and an array of ad items. Each item includes ad ID, body text, ad URL, click URL, availability window, advertiser name, advertiser logo URL, advertiser profile URL, payer info, impression counts, targeting details, and media links. Fields may be null when not available from the public source or when skipDetails is enabled.","failureModes":["LinkedIn Ad Library blocks continuation endpoint — fewer results than resultsLimit returned","Invalid or private company URL provided — returns empty items array","LinkedIn anti-bot measures temporarily block scraping — empty or partial results","Malformed startUrls input — request fails validation","maxItems cap reached before all URLs are processed — truncated results"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable LinkedIn ad data at scale without building your own scraper or maintaining LinkedIn session cookies. It is ideal for competitive intelligence workflows, ad creative analysis, and compliance monitoring. Prefer it over manual browsing when you need to collect dozens to hundreds of ads programmatically. Note that it relies on the public LinkedIn Ad Library, so only publicly disclosed ads are accessible.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T05:13:40.110Z","isFirstParty":false,"canonicalSlug":"linkedin-ads-library-scraper-cff5149e"}