Blog/Social and creators
5 min read

Meta Ad Library Longest Running Ads: Find Them by API

Pull a competitor's or a whole category's Meta Ad Library ads with their start dates, rank them by days running and turn the survivors into a brief.

Meta Ad Library Longest Running Ads: Find Them by API

Find which Meta ads a competitor has kept running longest, in one prompt. Paste this into your agent:

Set up https://monid.ai/SKILL.md, and then use Monid to search the Meta Ad Library for "protein powder" ads in the US, compute how many days each ad has been running from its start date, and give me a table of the ten longest runners with the advertiser, format and ad text.

One prompt ranks ads by days running. 1 min setup · 6-14 hrs saved.

An ad that has been live for ninety days has survived ninety days of somebody watching its results, and the Meta Ad Library shows when every active ad started. That makes run time the cheapest profitability signal a competitor publishes. The catch is that the library will not sort by it. This guide shows how to pull the ads with their start dates, rank them yourself, what came back when we ran it on 2026-10-16, and where the signal misleads. It runs through Monid, the OpenRouter for agent tools: one key, one balance, every tool priced per call.

What is the easiest way to find the longest running ads in the Meta Ad Library?

Monid. Install it once, add a key, and your agent calls an Ad Library endpoint with a keyword or a page ID, gets the ads back as typed JSON with a start date on each, and ranks them. There is no access token to apply for on this route and no browser to drive.

  • Pay per call, or pay for what you run. The keyword search endpoint bills $0.0011 a call (Verified 2026-10-16), and the Apify scraper bills $0.00075 per result (Verified 2026-10-16). Buy calls flexibly: no monthly plan and no minimum top-up. Discovery and inspection are free; only a run bills.
  • One install, every tool. The same key and balance also cover TikTok, Google Ads and the rest of the catalogue, so a cross-platform ad study is one balance, not four vendors. Finding companies running Google Ads is the Google side of the same job.
  • Lives inside your agent. Your agent reads SKILL.md and learns the discover, inspect, run workflow itself, so setup is about a minute.

One call returned 30 ads for $0.0011 on our test (Verified 2026-10-16, current prices at monid.ai/tools), which is enough to see who has been running for a quarter or more. The Facebook tools page lists every Ad Library endpoint.

How do you get run dates for a competitor or a whole category?

Call a search endpoint for a keyword, or a company endpoint for one advertiser, and read startDate on each ad. Both are on provider anyapi, and both returned run dates when we called them.

RouteWhat you getCost shapeFits
Look in the Ad Library websiteAds on screen, one search at a timeFree, your timeA few ads, once
Write your own scraperWhatever you parseYour hoursA fixed job you will maintain
Marketplace scraperRich rows per adPer resultDeep ad detail
Monid search and company endpointsTyped JSON with start dates, 30 ads per callPay per call, buy flexiblyAgents, weekly sweeps, category research

For agents

Grab an API key at app.monid.ai, then paste this to your agent and hand it the key:

set up https://monid.ai/SKILL.md

It learns the whole discover, inspect, run workflow itself. More in the agent quickstart.

For humans

npm install -g @monid-ai/cli
monid keys add -k <your-api-key> -l main

Inspect, then run

monid inspect -p apify -e /curious_coder/facebook-ads-library-scraper
monid inspect -p anyapi -e /facebook.ads_search
monid run -p anyapi -e /facebook.ads_search -i '{"query":"protein powder","country":"US","status":"ACTIVE"}' -w

For one advertiser, use the company endpoint with a page ID, here Nike's:

monid run -p anyapi -e /facebook.company_ads -i '{"pageId":"15087023444","sortBy":"recent"}' -w

Each call returns one page of 30 ads and a nextCursor. Pass it back as cursor to read the next page.

Give this to your agent

$Set up https://monid.ai/SKILL.md, and then use Monid to pull the Meta Ad Library ads a competitor Page is running, rank them by days running and summarise the hooks of the longest runners.

Can you do it yourself with Python or the Ad Library website?

Yes, for a handful of ads. The Ad Library website shows each ad with a start date, so for one competitor and one afternoon you can read it by eye. The date is on the page; the work is that nothing there ranks by it, and nothing there writes a file.

In Python the job is a scraper: load the library page, scroll to load more, parse each ad card, convert the date text into a real date, handle the country filter, and repair it whenever the page changes. The first working version is a few hours, and the upkeep is the part people underestimate. Searches for a "meta ad library scraper" and a "downloader" show how many people end up here.

The Monid route removes the browser. The fetching and parsing are maintained for you, the output is JSON with the date as a number, and you pay $0.0011 (Verified 2026-10-16) for each page of 30 ads. For a one-off look at one brand, the website is quicker. For anything you run every week, or want an agent to run, the endpoint is the better fit. Our three notes on the scraping side are the Ad Library as a JSON feed, the API versus rolling your own and a brand name to an ad archive.

What does the run-date data look like, and how do you rank it?

Each ad is a flat record with a Unix startDate, and you rank by subtracting it from today. We ran /facebook.ads_search on 2026-10-16 for "protein powder" in the US on active ads, and 30 ads came back out of 21,592 matches.

The fields

Per ad: active, adCount, caption, categories, creatives, ctaText, ctaType, displayFormat, endDate, id, isReshared, linkDescription, linkUrl, media, pageCategories, pageDeleted, pageId, pageLikes, pageName, pageProfilePicture, pageUrl, platforms, sourceUrl, startDate, text and title. Dates are Unix seconds. For an active ad, endDate is the day you called, so run time is endDate minus startDate, or today minus startDate.

Rank them

Save the response as ads.json, then:

jq '[.data.ads[] | {page: .pageName, format: .displayFormat, started: (.startDate | todate), days: (((now - .startDate) / 86400) | floor), text: .text[0:80]}] | sort_by(-.days)' ads.json

What we saw

Of the 30 ads, 18 had been running 90 days or more, from 14 different advertisers, and 7 had passed 180 days. The oldest were two ads from one supplement brand, Unjury, started 2024-12-12 and running 672 days on our date. The formats were video (14), dynamic creative (11), dynamic product ads (3) and static images (2). The call took one billed unit, $0.0011 (Verified 2026-10-16).

Two things follow. The default order is by impressions, which is why a first page already holds a few ads past a year, and it is a good place to start for "longest running". And because you rank client-side, you can sort the same page by format, advertiser or call to action.

What goes wrong when you read run duration?

Four things, all visible in the 2026-10-16 runs.

Why does sorting by recent not find the survivors?

Because recency shows launches, not survivors. We called /facebook.company_ads for Nike with sortBy set to recent. It returned 30 ads out of 2,730, and all 30 had the same start date, 2026-10-16. The ads at the top of a big advertiser's recent list are today's batch. Use the default impressions order for survivors, or page through with the cursor and rank everything yourself. Paging 2,730 ads at 30 a call is 91 calls, so budget before you loop.

Why does the same ad appear several times?

Because advertisers duplicate. Two Unjury ads had identical start dates and different links. The adCount field says how many copies share one creative; one advertiser's record showed 12. Group by pageName and adCount before you count "how many long runners", or one advertiser will look like a trend.

Why does a long run not mean a winner?

Because run time says an ad is still on, not that it earns. A brand film can run for a year because someone budgeted for it. A forgotten campaign can run for the same reason. The signal holds up when a long runner has an offer in it, a link to a product page and a cluster of newer variations on the same hook, and it holds up less on mood pieces. The data has no spend or reach for these ads, so you know direction and not size.

What does a scraper return for dates?

The Apify scraper returns more per ad but names the date differently. On 2026-10-16 we pulled 10 Nike ads, billed 10 results at $0.00075 each, $0.0075 in total (Verified 2026-10-16). Rows carry start_date, end_date, start_date_formatted, is_active and total_active_time, in seconds: between 36,497 and 38,960 on ads launched that morning, which is about ten hours. spend, reach_estimate and the impressions text came back empty. Our first try with a limit of 3 failed with a message that the minimum is 10, and it still billed one result, $0.00075, so start at 10.

How do you turn a long runner into a creative brief?

Take the structure of the winner, not its pixels. For each of the five or ten longest runners, note the first line of text, the ctaType, the displayFormat and the page the link goes to. If the same advertiser runs the same hook as video, dynamic and static versions, the hook is what held, not the production.

A brief built from that has four lines: how the ad opens, what proof it shows, what it asks the viewer to do, and which formats it ships in. None of it is specific to the product. You can hand the brief to an editor, or to a generation tool.

Wireflow is one such tool, and we should say plainly where it sits: you are on the Monid blog, Monid sells the endpoints in this post, and Wireflow asked to be mentioned. It is a content partner, it is not in the Monid catalogue, and what we say about it comes from its public site. Wireflow describes a shared canvas where image, video and voice models chain together, boards that you rerun with new inputs for next week's ads, and saved creators and brand kits. It can be reached from a Claude connector, Claude Code or an API. Its site says finished Meta and TikTok ads are downloaded and uploaded by hand in Ads Manager.

The fit is a hand-off. The Ad Library data tells you what to make; a tool like Wireflow makes it. For a TikTok-side brief, finding viral TikTok videos by keyword pulls the same kind of signal for video.

Which endpoint should I use for which job?

EndpointInputWhat you getBillingPrice (Verified 2026-10-16)
anyapi /facebook.ads_searchquery, country, status30 ads per page across advertisers, with start datesPer call$0.0011
anyapi /facebook.company_adspageId or companyName30 ads per page for one advertiserPer call$0.0011
apify /curious_coder/facebook-ads-library-scraperurls, limitPerSource, countRich rows with total_active_time, minimum 10 resultsPer result$0.00075

Prices Verified 2026-10-16 with monid inspect. The search endpoint also has routes at higher per-call prices, listed on its tool page. Start with the first row to find who is running longest in a category, then use the second on the advertisers that stand out. The third row suits the case where you want archive detail per ad and can pay per result.

When is another route a better fit?

You need spend or reach. The rows we pulled had no spend and no reach figures, so run time tells you direction and never size. If you need size, you need a different source.

You need history. The endpoints return ads that are active when you call. An ad that stopped last month is gone from an active search, so tracking what disappeared means pulling the same advertiser every week and diffing.

You only need one look. The Ad Library website does a one-off look at one brand for free.

You have nobody to make the ads. A ranked table of survivors helps only if someone turns it into creative. If production is the bottleneck, fix that first.

And the disclosure: we resell these endpoints, so the buying model and the data are ours. The habit worth keeping whoever you buy from is to rank by days running and read the survivors, not the launches.

Conclusion

The quickest way to find the longest running ads in the Meta Ad Library is to pull a page of ads from a search or company endpoint through Monid, at $0.0011 a call (Verified 2026-10-16), and sort by startDate yourself. One key, one balance, about a minute to set up, and your agent can run it whenever it needs to.

Two things matter more than the endpoint. Do not sort by recent and call the result a winner list; on a large advertiser it is today's launches. And treat run time as a hypothesis: a long runner with an offer and fresh variations on the same hook is a signal, and one without them may be an ad nobody switched off.

How we estimated the time saved: writing and maintaining a scraper for the Ad Library page is roughly 4 to 8 hours for the first version, plus 2 to 6 hours to normalise dates and build the ranking. That is 6 to 14 hours. The 1 minute is the install, key and first call once you already have a Monid key.

Free next step: run monid inspect -p anyapi -e /facebook.ads_search, then make one call for a keyword in your category and sort the page by days running.

FAQ

How do I find the longest running ads in the Meta Ad Library?

Pull the ads for a keyword or an advertiser with their start dates, then sort by days running yourself. A single call to the Monid search endpoint returned 30 active ads with startDate on each, and 18 of them had been running 90 days or more.

Is there a free Meta Ad Library API?

Not through Monid: a search call costs $0.0011 (Verified 2026-10-16), with no monthly plan and no minimum top-up, and discovery and inspection are free. The Ad Library website itself is free to browse for a single look.

Can I get Meta Ad Library data into Python or a spreadsheet?

Yes. Each call returns JSON, so you can load it in Python or pipe it through jq and save a CSV. The ranking command above turns one page into a table with the advertiser, format, start date and days running.

How do I get the ads for one competitor?

Call /facebook.company_ads with the competitor's pageId, or companyName, then page through with the cursor. For Nike, the page ID 15087023444 returned 30 ads on the first page out of 2,730 active ads.

Does the data show how much an ad spent?

No. The rows we pulled had no spend and no reach, and the Apify scraper's spend and reach_estimate fields came back empty. Run time tells you an ad is still on, not how big it is.

Published August 2026.

meta ad librarylongest running adscompetitor adsfacebook adsad creative