How to Use the Facebook Ads Library API for Competitor Research
Meta's API exposes competitor ad lifespans and launch rates that browsing can't.

The Meta Ads Library lets you see competitors’ Facebook ads and ads on another social platform, but browsing alone cannot reveal their testing history or launch rate. The Facebook Ads Library API makes that research programmable within strict coverage limits. Its value comes from tracking which ads survive and how quickly new ones appear, then using those signals to shape creative, messaging, and spend timing.
Why the native Ads Library interface is structurally unfit for competitive research
The native interface was built for regulatory transparency. That origin shapes what a researcher can learn. For standard commercial ads outside the EU, the default view mostly shows ads that are still active, while most stopped ads disappear. A competitor’s current lineup can therefore look like a string of winners when it is actually the residue of heavy testing waste.
More careful filtering cannot repair that survivorship bias. Nor can it reveal CTR, conversions, or ROAS for standard commercial ads, because those metrics are deliberately hidden. Time remains a usable signal, but a snapshot provides little context for interpreting it. The interface also offers no view of creative velocity, which is how quickly a competitor launches new ads. Without that history, researchers cannot distinguish a steady formula from a frantic search for one.
What the Ads Library API actually covers — and what it deliberately excludes
The API is not a universal ad spy tool. Political and issue ads are archived worldwide for seven years, while all ad types delivered in the UK or EU are archived for up to one year after delivery. Standard commercial ads outside those markets are not archived by default. A regular product ad shown only in the US will not appear unless it was labeled political or issue advertising, or also targeted Europe.
The API will not return exact spend, CPC, CTR, or conversion rates for standard commercial ads. It also does not show private audience configurations such as custom audiences, lookalike parameters, or interest groups, though EU disclosures give more information on delivery and targeting. This is a read-only research API. It is separate from the Marketing API, which manages live campaign operations, so collecting competitor data does not provide a way to edit or launch campaigns.
Getting API access — developer setup, authentication, and the ads_archive endpoint
Access starts with a Facebook developer account at developers.facebook.com and a valid access token for the app. Requests then go to the ads_archive endpoint with query parameters. The API is free, with no paid tier or app review required for this setup. Authentication still has to be in place before research can begin.
The main parameters define the scope of each pull. ad_type selects ALL_ADS or POLITICAL_AND_ISSUE_ADS, while ad_active_status selects ACTIVE, INACTIVE, or ALL. search_terms searches ad text and headlines, and ad_reached_countries specifies countries using codes such as US, GB, or DE. The fields parameter selects what appears in the JSON response, which can include creative URLs, page information, start and end dates, and reach estimates.
Large pulls need batching because rate limits apply. Without it, results can be silently truncated, leaving an incomplete dataset that looks usable. That risk affects the analysis downstream, since missing ads distort both launch counts and the apparent balance between short tests and long-running creatives.
What EU ad data unlocks that US-only queries cannot reach
EU filtering is the professional unlock for researching international competitors. Under the EU’s Digital Services Act, Meta is required to share more information about ads shown in EU member states. A competitor running campaigns in France, Germany, or Ireland may therefore be visible through queries that a US-only search would miss entirely.
EU data includes age and gender distributions for the audience that saw an ad, as well as disclosed targeting parameters used in delivery. Those fields provide context for interpreting the creative without revealing the private audience configurations excluded from the API. They help connect the message to its audience.
The larger advantage is the inactive archive. EU-delivered ads remain searchable for up to one year after their last impression, allowing researchers to examine paused and finished campaigns. Instead of seeing only survivors, a team can compare what stayed live with what the competitor tested and stopped.
Ad durability as a profitability proxy — the core metric the API makes calculable

Ad durability turns time into a performance proxy. The logic is blunt. Ads that lose money tend to get killed quickly, break-even ads stay live briefly, and ads that make money can stay live for months. That makes duration a first-order filter for finding creative worth studying.
For an active ad, durability is calculated by comparing ad_delivery_start_time with the current date. For a finished ad, the delivery end date bounds its run, so time after it stopped is not mistaken for continued activity. The resulting comparison narrows a large collection of tests to a smaller cohort of persistent ads. Those survivors give researchers more to go on than a new creative that just looks impressive.
Testing heavily creates many candidates, but scaling only some of them leaves a smaller set running under continued pressure from the algorithm. Researchers cannot see the competitor’s complete testing logic or financial results, but they can see which messages survive.
The Ridge Wallet pattern makes that analysis concrete. Fixed copy paired with rotating visuals points to the message as the stable element in the testing pattern. Durability can show both which ad survives and which part of the creative the brand keeps the same.
More careful filtering cannot repair that survivorship bias.
Querying for creative velocity — detecting whether a competitor is scaling or saturating
Durability points to what works, while velocity signals what may come next. Creative velocity is the rate at which a competitor launches new creatives over time. Daily queries make it measurable by counting new ad_delivery_start_time entries for a given page. The history has to be stored, because today’s results alone cannot show the change.
These patterns can point to different things, though none shows how a campaign performs in private. A sudden spike can signal aggressive testing ahead of a scaling push. When a brand keeps launching lots of ads but few last, that can suggest creative saturation or audience fatigue. By contrast, steady low volume with long-running survivors suggests a brand has found a formula it can keep using.
Keyword velocity measures how quickly more unique advertisers appear around a product phrase, rather than just how often one competitor refreshes its ads. Dropshipping brands provide a fast feedback loop, and a sudden increase can signal emerging demand before it reaches mainstream retail. Spotting that shift takes repeated pulls of data from many advertisers, so manual lookups are a poor way to track it.
Building a research pipeline that archives, filters, and surfaces the signals automatically

A research pipeline starts with daily scheduled pulls for each tracked competitor page. It saves the full JSON response, with start dates, creative URLs, and reach estimates. The archive is the foundation. Without repeated snapshots, launch-rate trends disappear and changes in the surviving creative set become difficult to reconstruct.
The next stage computes days active for each ad and weekly launch rates for each competitor. It flags creatives crossing 30-, 60-, and 90-day thresholds, turning raw dates into a shortlist for review. The final stage routes alerts when velocity spikes, a long-running ad stops, or another creative reaches a durability threshold. That saves someone from having to check a dashboard for each of those changes.
Batching belongs in the pipeline from the start to reduce the risk of truncated pulls. Creative preservation needs its own handling too, because returned URLs do not guarantee that media will remain available. Where allowed, downloading and saving the files lets researchers study ads after they stop.
As that archive grows, natural language processing and semantic analysis can group messages that keep appearing. Clusters of emotional framing, dominant angles, and repeated copy patterns reveal the positioning that has survived continued delivery. The archive supplies the evidence that an isolated screenshot cannot.
Where the official API's coverage ends and third-party data sources fill the gap
For daily commercial ad monitoring in the US and other non-EU markets, third-party data sources complement the official API. Third-party scrapers provide broader programmatic coverage of active commercial ads, while the official API remains useful for political ads worldwide and UK/EU commercial archives.
AdSpends, Curious Coder (Apify), and ScrapeCreators are options for this use case. Pricing in this category is typically structured per thousand ads retrieved, and Curious Coder offers EU-reach data at a competitive per-thousand rate. Relevant comparison criteria include market coverage, available reach data, retrieval pricing, and compatibility with the intended workflow. No single ranking follows from those criteria alone.
Some tools also support MCP, or Model Context Protocol, allowing AI agents to query competitor ad data within their workflows. That changes access while leaving the compliance boundary unchanged. Official API metadata access is compliant, while third-party asset scraping sits in a legal grey area. Teams should assess their exposure before building production pipelines around scraped assets.
Translating API data into creative direction, messaging angles, and spend timing decisions
Most research programs fail when it is time to turn the data they collect into changes to the creative brief. Clustering durable ads can reveal whether a competitor repeatedly relies on comfort or performance, identity or utility, or fear or aspiration. Those patterns are grounded in continued ad survival.
Ridge’s fixed-copy, rotating-visual pattern warns against borrowing the most conspicuous element while ignoring the stable message. Landing page analysis also checks how the ad’s angle matches the headline on the page it leads to. Weak message match correlates with shorter durability, so the creative and its destination belong in the same review.
Timing requires a different reading of the archive. Launch spikes and the disappearance of long-running ads can reveal promotional pushes and pullbacks, offering clues about when auction pressure may intensify or ease. These signals offer indirect clues about competitor spend timing. They provide context for planning.
The final creative decision is not automatically to imitate. A team should ask which angle has proved durable in the category, then identify what a competitor has not tested or has tested and abandoned. Is that gap a reason to differentiate, or evidence that the angle needs a stronger proposition?
Integrating API-driven competitor intelligence into an ongoing paid media workflow
Competitor intelligence becomes operational when signals trigger campaign work on a defined cadence. A new durable ad might lead to a creative brief, an angle cluster might help shape a test of a copy variant, and a velocity spike might lead to an audience refresh. Each signal needs a destination.
Performance monitoring and creative-fatigue alerts should run on the same cadence as competitor archive pulls. When an in-house ad begins underperforming, the team can then assess it against current category signals. A unified platform containing competitor intelligence and live campaign data can make that connection available to an AI agent. The agent can reference durability patterns to suggest a replacement angle without requiring a person to move between separate research and campaign tools.
Routing signals and suggesting angles that fit can be automated, but a person must judge whether matching or moving away from a competitor’s position makes sense for the brand. The API is free and public, but its practical advantage comes from treating it as infrastructure. That gives the next creative brief an evidence base before the first dollar is spent.