
Facebook/Meta Ads Library Scraper API - Winning Ads, Scam Check
io.github.AnshumanAtrey由 GitHub 帳號 AnshumanAtrey 發布v1.0.14更新於 Nov 14, 2026
Facebook/Meta Ads Library Scraper - Winning Ads
概覽
透過 Apify 擷取公開的 Meta 廣告檔案庫,依關鍵字或 Facebook 粉絲專頁回傳廣告、廣告主與品牌冒用訊號。
- 可以做什麼
- 依關鍵字或國家搜尋廣告,回傳廣告主、投放天數、版本數、文案、到達頁面與網域、媒體連結及平台
- 依連結、粉絲專頁 ID 或名稱擷取指定 Facebook 粉絲專頁的全部廣告
- 列出正在投放某關鍵字的廣告主,包含廣告數量、投放最久的廣告與導向的網站
- 執行品牌冒用檢查,標出使用品牌名稱但來自非官方粉絲專頁的廣告,並附上風險等級與判斷依據
- 可依最少投放天數、廣告狀態、類別、媒體類型、精確片語與排序方式篩選
- 適用情境
- 適合競品廣告研究、找出長期投放的勝出素材、整理代理商潛在客戶名單,或追查冒用品牌的廣告。適合媒體採購、創意策略與品牌保護團隊在助理中直接取得廣告檔案庫資料,而不必自行維護爬蟲。
- 執行需求
- 遠端 Apify MCP 端點;透過 OAuth 登入 Apify,或在 Authorization 標頭提供 Apify API 權杖。結果依用量計費,需要 Apify 帳號,免費方案含每月額度。不需要 Facebook 帳號、Cookie 或 Meta API 權杖。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Facebook/Meta Ads Library Scraper API - Winning Ads, Scam Check,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.AnshumanAtrey%2Ffacebook-ads-library-api/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"facebook-meta-ads-library-scraper-api-wi": {
"type": "http",
"url": "https://mcp.apify.com/?tools=anshumanatrey/facebook-ads-library-api"
}
}
}README
Facebook/Meta Ads Library Scraper API - Winning Ads, Scam Check
Scrape the Facebook Ads Library, which Meta now calls the Meta Ad Library (ads on Facebook, Instagram, Messenger, Threads and Audience Network), with no login, no cookies and no Meta API token. Type a keyword or paste a Facebook page, and get every matching ad as a row: the advertiser, how many days the ad has run, how many versions it has, the text, headline and button, the landing page and its domain, image and video links, platforms, and the reach, spend and EU audience data Meta publishes. On top of that: an advertiser list (businesses advertising on a keyword right now, one row each) and a brand scam check (ads that use a brand's name from pages that are not the brand's own). $0.70 per 1,000 ads, no start fee. Use it from the Apify Console, the API, Python, JavaScript, n8n, Make, Zapier or an AI agent through the Apify MCP server.
Use it from an AI assistant:
- Claude (claude.ai and the desktop app): Add Facebook/Meta Ads Library to Claude, click Continue, sign in to Apify, Allow, and ask in plain words.
- Claude Code:
claude mcp add --transport http facebook-ads-library-api "https://mcp.apify.com?tools=anshumanatrey/facebook-ads-library-api", then run/mcpto sign in to Apify. - Codex:
codex mcp add facebook-ads-library-api --url "https://mcp.apify.com?tools=anshumanatrey/facebook-ads-library-api", thencodex mcp login facebook-ads-library-api. - Any other MCP client:
https://mcp.apify.com?tools=anshumanatrey/facebook-ads-library-api, signed in with Apify or anAuthorization: Bearer <APIFY_TOKEN>header.
What does it do?
It reads the public Meta Ad Library, the same one at facebook.com/ads/library, and returns what you would otherwise copy by hand, for as many keywords or advertisers as you give it:
- Ads for keywords (
ads): every ad matching your words in a country or worldwide. - Ads of advertisers (
pages): all ads of the Facebook pages you list, by link, page id or just the name. - Advertiser list (
advertisers): the businesses advertising on your keywords now, with how many ads, their longest-running ad and the websites they send people to. - Brand scam check (
impersonation): ads that name a brand but come from other pages, each with a risk level and the signals behind it (look-alike page name, look-alike landing domain, a new ad from a small page).
Why do people use the Ad Library data?
Answer: to see what already works in someone else's ads. Meta shows every running ad but no results, so the best free signal is time: an ad that has run for 30 to 90 days is almost always paying for itself, because nobody keeps paying for an ad that loses money.
- Media buyers and DTC brands find competitors' long-running ads and copy the hook, offer and format instead of paying to test from zero.
daysRunningandversionsare here for that: several live versions of one ad are an A/B test, and the survivors are the winners. - Creative strategists and agencies keep a weekly watchlist of 10 to 20 brands and build swipe files; the landing domain shows the funnel behind each ad.
- Agencies prospecting use the advertiser list: a business spending on ads now has a budget, so it is a warm lead.
- E-commerce and dropshipping spot products pushed with many long-running ads.
- Developers build ad-spy tools, n8n and Make flows (scrape, then have GPT or Gemini pull out hooks and write new variations) and AI-agent tools on top of it, without maintaining a scraper.
- Brand protection and security teams run the brand scam check. Meta itself estimated about 15 billion scam ads are shown every day and expanded its brand-impersonation detection in March 2026; this finds the ones using your name.
How is it different from other Facebook Ads Library scrapers?
- Cheaper than the two most-used Facebook/Meta Ads Library scrapers: $0.70 per 1,000 ads against $5.80 for Apify's own and $0.75 plus a start fee for curious_coder (together about 70% of this category's users). With no start fee it is also the cheapest for small runs: under 40 ads compared with automation-lab and under 250 compared with memo23. On large runs those two and jmlp cost less per ad; the table below shows every price.
- Winning-ad signals built in:
daysRunningis computed for every ad,versionsis Meta's own count of an ad's variants, and Min days live (minDaysRunning) keeps only the long runners. - Landing domain on every ad, so you can group ads by the site they send people to.
- Advertiser list and brand scam check in the same actor, charged the same way.
- Simple for anyone: type a keyword and press Start; country names work (India, USA, UK), commas split keywords, and a pasted Ad Library link or Facebook page link is understood.
- No proxy to set up: Meta blocks cloud and datacenter IPs (in our 2026-09-25 test both returned 0 ads), so every search runs on Apify's residential proxy, included in the price.
- You pay only for rows saved, and a spending limit stops the run cleanly between batches.
How much does it cost to scrape the Facebook Ads Library?
$0.0007 per ad ($0.70 per 1,000), $0.008 per advertiser in the Advertiser list and $0.002 per ad in the brand scam check (it first reads the brand's own pages to learn their real websites). No start fee, no monthly fee, platform usage and residential proxy included. On paid Apify plans every price is 10% less on Scale and 20% less on Business and above ($0.56 per 1,000 ads on Business).
Apify's free plan includes $5 of monthly credit, which covers about 7,000 ads.
How does the price compare with other Facebook Ads Library scrapers?
The Facebook Ads Library actors with 250 or more users in the last 30 days on 2026-09-25, ordered by those users, at their Apify free-plan price.
Several of these discount their prices on paid Apify plans, and some bill platform usage on top; automation-lab, memo23 and jmlp cost less per ad on large runs. Compare at your own plan if you run large volumes.
Which inputs does it take?
Every field has a plain name with its JSON key in brackets. Only Keywords is needed.
What does the output look like?
One row per ad (or per advertiser in the Advertiser list). Every key is always present, empty when Meta has no such part. An example ad row, shortened:
Brand scam check rows add impersonation: {"brand": "Nike", "risk": "high", "signals": ["page name uses the brand but it is not an official page", "sends people to nike-outlet-sale.shop, a look-alike site, not an official domain"]}. The signals are for you to review, not a verdict: resellers such as Foot Locker also use brand names and come back as low risk.
The run summary is the OUTPUT record: status, notes about anything we changed in your input, one entry per search with how many ads were read and saved, and the charged events.
How fast is it?
In our 2026-09-25 tests on Apify (256 MB, peak 57-70 MB): 20 ads in 16 s, 200 ads for one keyword in 106 s, 3 keywords of 50 ads each in 49 s (they run at once, each on its own residential IP), 60 ads of 2 advertisers in 48 s, and an advertiser list of 86 businesses from 100 ads in 66 s. No run was rate-limited.
Common questions
Q: Is the Facebook Ads Library the same as the Meta Ad Library? Yes. It is the same public library at facebook.com/ads/library; Meta now calls it the Meta Ad Library, and it covers ads on Facebook, Instagram, Messenger, Threads and Audience Network. This actor reads all of them.
Q: Do I need a Facebook account, cookies or a Meta API token? No. It reads the public Ad Library the way a logged-out visitor sees it.
Q: Can I see how much an ad spends or how many people it reached?
For political and issue ads, yes: Meta publishes spend and impressions ranges. For ads delivered in the EU, Meta publishes reach by age, gender and region. For other ads Meta shows no numbers, which is why daysRunning and versions matter.
Q: How do I find winning ads?
Set Min days live (minDaysRunning) to 30 or more. Ads that keep running for weeks are the ones making money, and versions shows which ones are being tested in several variants.
Q: Is this the official Meta Ad Library API? No. The official API needs a developer account and identity verification and covers political and issue ads plus ads shown in the EU. This actor covers every ad the public Ad Library shows.
Q: Can I monitor competitors every week?
Yes. Save the input as an Apify task and schedule it; Ad status (status) active with Order (sortBy) impressions gives the ads that matter first.
Q: Why do I need a residential proxy? You do not set one up. Meta rate-limits cloud and datacenter IPs to zero ads, so the actor uses Apify's residential proxy for you and the price includes it.
Q: Does it download images and videos? No. It returns Meta's own image and video links; download them yourself if you need copies.
Q: What does the brand scam check look for? Pages whose name uses the brand but are not the official pages, ads that send people to a look-alike domain, and new ads from small pages. It skips the brand's own pages, found by name or given by you.
Limitations
- Meta shows spend and impressions only for political and issue ads, and audience breakdowns only for ads delivered in the EU.
- Whether a page is verified is not in Meta's ad search results, so the actor does not guess it.
- Keyword search follows Meta's own matching, which can return loosely related ads; turn on Exact phrase (
exactPhrase) for tighter matches. - Very large searches take time: about 110 ads a minute per keyword (200 in 106 s on Apify); several keywords run at once.
About the maintainer (priority response within 1-2 hours)
Built and maintained by Anshuman Atrey (@AnshumanAtrey).
- Purple-team security researcher, 5x hackathon winner
- Co-founder of Walrus Securitas (AI cybersecurity SaaS) and The Drone Syndicate (autonomous defence drones)
- Author of the OSINT and data actor portfolio on Apify Store: 18 shipped actors covering email, phone, username, IP and domain, network, secret, social, LinkedIn, domain history, Telegram, Google Trends, Meta ads and Indian fintech data
Custom feature requests shipped within 1-2 hours (priority)
If you need a field, a filter or an output format this actor does not have, the maintainer ships it directly into this actor, typically within 1-2 hours for priority requests during active hours and within 24 hours overnight. This is direct one-to-one service from the maintainer, not a contractor queue.
Fastest contact channels (ranked by response speed):
- LinkedIn DM -> linkedin.com/in/anshumanatrey, typically under 1 hour during active hours
- GitHub issue on this actor's repo
- Apify Console DM to
@anshumanatrey - Email via atrey.dev
Sibling actors by the same maintainer
Documentation
- Apify API: https://docs.apify.com/api/v2
- Run it from Python or JavaScript with the Apify client, or from n8n, Make and Zapier through their Apify integrations.
- Source: https://github.com/AnshumanAtrey/facebook-ads-library-api
Last updated
2026-09-25: version 1.0.
來源:README.md,提交 597f949
工具
0版本歷史
5- v1.0.14最新Nov 14, 2026
- v1.0.13Nov 12, 2026
- v1.0.12Nov 11, 2026
- v1.0.11Oct 29, 2026
- v1.0.10Oct 1, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Check 整合
check.tattoo: tattoo size and placement guide
tattoo.check官方發布者
check.tattoo: tattoo size and placement guide 的託管 MCP 服務,由 check.tattoo 發布;無需登入;Streamable HTTP;5 個工具。
iva.pt — EU VAT check (VIES) and Portuguese VAT law
pt.iva官方發布者
在 VIES 中驗證歐盟增值稅號,並回傳葡萄牙增值稅法典(CIVA)與 RITI 條文,支援葡語與英語。

Agent Data Tools: Company and VAT check
由 GitHub 帳號 Nutshell2000 發布
按次計費的企業查核工具:歐盟 VAT 號驗證、北歐與法國公司登記查詢、LEI 查詢與 OFAC 制裁篩查。

Sanctions Check
由 GitHub 帳號 chomkaevan 發布
依美國財政部 OFAC 制裁名單篩查加密錢包地址及個人或公司名稱,按次透過 x402 付費。

Property Risk Check
由 GitHub 帳號 chomkaevan 發布
遠端 MCP 伺服器,針對美國地址或座標一次呼叫即可回傳自然災害風險報告,含 FEMA 洪水區與各類災害評級。