{"uid":"cap_D_eLGu9V9GpcyF2RB35Fo","slug":"anyapi-facebook-ads-library-scraper-e8b19336","name":"AnyAPI Facebook Ads Library Scraper","description":"1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.","url":"https://api.getanyapi.com/v1/run/facebook.ads_library","method":"POST","headers":{},"bodySchema":{"type":"object","title":"Yelp search input","example":{"limit":5,"query":"pizza","location":"Chicago, IL"},"required":["query","location"],"properties":{"limit":{"type":"integer","maximum":20,"minimum":1,"description":"Maximum number of results to return (1 to 20, default 20)."},"query":{"type":"string","description":"Search term or category to look for (e.g. sushi)."},"location":{"type":"string","description":"City and state defining the search area (e.g. San Francisco, CA)."}},"additionalProperties":false},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0225","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.0225/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0225","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0225","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M_pBJoYJjYtNOC7cSGi4Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0225","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scrapes Facebook Ads Library to retrieve active and historical ad data for a given advertiser or search query","exampleAgentPrompt":"Pull all active Facebook ads from the Meta Ads Library for Nike in the United States and show me their ad creatives and copy.","exampleUseCases":null,"resultDescription":"Returns a JSON payload containing a list of ads from the Facebook Ads Library matching the query, including ad creative details, ad copy, advertiser information, active/inactive status, estimated reach, spend range, and dates the ads started and stopped running.","failureModes":["Advertiser name or page ID not found — returns empty results or error","Facebook Ads Library access restrictions for certain ad categories (e.g. political ads) may limit data","Rate limiting or scraping blocks from Meta may cause failed or incomplete responses","Invalid country code or unsupported filter parameters may return errors","Service downtime or upstream scraping failure returns non-200 response"],"whenToPreferThis":"Choose this endpoint when you need programmatic access to Facebook/Meta Ads Library data — especially for competitive ad research, creative intelligence, or monitoring what ads a brand is running — without managing your own scraper or dealing with Meta's restrictive official API. Best for one-off or pay-per-use queries where a subscription-based ad intelligence tool is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:54:13.610Z","isFirstParty":false}