Apify example task · whoareyouanas/meta-ad-scraper
Review German-language furniture ads on Meta
Find active Meta ads matching Möbel in Germany and filter for German ad content. Review the available copy, images and campaign links.
- Actor
- Meta (Facebook) Ad Library Scraper - Fast & Reliable
- Result limit
- Set by the input
- Estimated cost
- Per result, see pricing
- Run options
- 1 GB memory · 180 s timeout
Example updated 2026-11-20 · actor build 0.3.2 · runs in your own Apify account
01 / About the actor
Meta (Facebook) Ad Library Scraper - Fast & Reliable
Export public Facebook and Instagram ads from Meta Ad Library by advertiser Page ID, keyword, or saved search URL. Download CSV or JSON with ad copy, creative links, CTAs, platforms, and dates.
Two ways to start
Paste a saved Ads Library search URL, or set a country and search by Page ID or keyword.
Creative research
Keep copy, advertiser identity, destination links, images, videos, and format together.
Search controls
Choose status, media type, language, and sorting through the deployed input fields.
02 / Input
The exact input this example runs.
A direct targetUrl takes precedence over the search parameters. For a keyword or Page ID search, set country and start with maxAds set to 10. Review the returned rows before increasing the cap.
{
"maxConcurrency": 1,
"requestHandlerTimeoutSecs": 120,
"searchQuery": "Möbel",
"country": "DE",
"contentLanguages": [
"de"
],
"activeStatus": "active",
"sortMode": "relevance"
}| Field | Value in this example | What it controls |
|---|---|---|
| maxConcurrency | 1 | Number of browser tabs to run in parallel. Keep at 1 for stability. Increase to 2-3 only if you need faster scraping and have sufficient memory. Higher values increase memory usage. |
| requestHandlerTimeoutSecs | 120 | Maximum time to wait for a page to load and scrape all ads. Pages with 200+ ads need 600-900 seconds. Default of 900 seconds (15 minutes) handles large datasets. |
| searchQueryChange this | "Möbel" | Keyword search query (e.g. 'nike', 'adidas shoes'). This searches across all ads by keyword. |
| countryChange this | "DE" | ISO 3166-1 alpha-2 country code for ad targeting (e.g. US, IN, IT, GB). Required when not using a direct URL. |
| contentLanguagesChange this | de | Filter by content language codes (ISO 639-1, e.g. 'en', 'it', 'hi'). Leave empty for all languages. |
| activeStatusChange this | "active" | Filter by ad campaign status. |
| sortModeChange this | "relevance" | Sort metric for results. |
Other inputs you can add (8)
| Field | Type / required | Default | Purpose |
|---|---|---|---|
| targetUrl | string | Not specified | Paste the full Facebook Ad Library URL directly. If provided, all parameter fields below are ignored. Leave empty to build the URL from parameters instead. |
| pageId | string | "" | Numeric Facebook Page ID to view all ads from a specific page (e.g. 108047081396228). You can find this in the URL when viewing a page's ads. |
| adId | string | Not specified | Numeric ID of a specific ad to look up (e.g. 1191898553123641). |
| adType | string | "all" | Filter by type of ads. Options: all, political_and_issue_ads, housing, employment, credit |
| mediaType | string | "all" | Filter by media format. Options: all, image, video, meme |
| isTargetedCountry | boolean | false | If true, only show ads specifically targeting the selected country. |
| sortDirection | string | "desc" | Sort order for results. Options: desc, asc |
| maxAds | integer | 100 | Stop after this many ads. Defaults to 100. Raise it (up to 10,000) to collect more; each ad is a billed result. Minimum: 1 · Maximum: 10000 |
03 / Make it yours
Change these fields for your own research.
01 · searchQuery
Search Query (Keyword)
Keyword search query (e.g. 'nike', 'adidas shoes'). This searches across all ads by keyword.
Example: "Möbel"
02 · country
Country
ISO 3166-1 alpha-2 country code for ad targeting (e.g. US, IN, IT, GB). Required when not using a direct URL.
Example: "DE"
03 · contentLanguages
Content Languages
Filter by content language codes (ISO 639-1, e.g. 'en', 'it', 'hi'). Leave empty for all languages.
Example: de
04 · activeStatus
Ad Status
Filter by ad campaign status.
Example: "active"
05 · sortMode
Sort By
Sort metric for results.
Example: "relevance"
Run it in three steps
- Open the example on Apify and select Try for free to copy it into your Apify account.
- Replace the sample values above with your own target and keep the limit small.
- Start the run, then export the dataset as JSON, CSV or Excel.
04 / Output
What the results table shows.
- One dataset item represents an extracted ad. Creative links point to source hosting and may expire.
- The dataset overview selects common fields; full JSON can retain additional media and metadata.
Columns in the “Overview” view
libraryID
Library ID
brand
Brand
industry
Industry
active
Active
platforms
Platforms
totalPlatforms
Total Platforms
similarAdCount
Similar Ad Count
multipleVersions
Multiple Versions
body
Body
linkTitle
Link Title
linkUrl
Link URL
linkDescription
Link Description
ctaText
CTA Text
ctaUrl
CTA URL
images
Images
videos
Videos
startDate
Start Date
endDate
End Date
format
Format
A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.
05 / Cost
What this example costs to run.
Charges follow the billable events in the pricing table below and the number of records the run returns. This example has no single total result cap, so start with it as is and check the run's charges before widening it.
ad
$0.006 per event
Prices checked 2026-11-24. Set a run spending limit in Apify when you widen the input.
06 / API
Run the same input from your code.
This call starts a billable run of Meta (Facebook) Ad Library Scraper - Fast & Reliable with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.
curl --request POST \
'https://api.apify.com/v2/acts/whoareyouanas~meta-ad-scraper/run-sync-get-dataset-items?format=json' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"maxConcurrency":1,"requestHandlerTimeoutSecs":120,"searchQuery":"Möbel","country":"DE","contentLanguages":["de"],"activeStatus":"active","sortMode":"relevance"}'Coverage & interpretation
Check the result before relying on it.
- Source access, pagination, and filters determine the returned sample; no complete-inventory or accuracy percentage is guaranteed.
- Public creative data does not establish ad spend, conversions, revenue, or ROAS.
Questions
About this example.
What does the "Review German-language furniture ads on Meta" example collect?
Find active Meta ads matching Möbel in Germany and filter for German ad content. Review the available copy, images and campaign links. It runs Meta (Facebook) Ad Library Scraper - Fast & Reliable, published by whoareyouanas on Apify.
Which input does this example use?
Search Query (Keyword) (searchQuery) set to "Möbel"; Country (country) set to "DE"; Content Languages (contentLanguages) set to de; Ad Status (activeStatus) set to "active"; Sort By (sortMode) set to "relevance". The full JSON input is shown on this page.
How much does it cost to run this example?
Charges follow the billable events in the pricing table below and the number of records the run returns. This example has no single total result cap, so start with it as is and check the run's charges before widening it.
How do I change it for my own research?
Open the example on Apify and select Try for free to copy it into your account, then edit Search Query (Keyword), Country, Content Languages, Ad Status, Sort By. Keep the result limit small for the first run and check the output before scaling up.
Can I run it from the API or on a schedule?
Yes. Send the same JSON input to the Meta (Facebook) Ad Library Scraper - Fast & Reliable run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.
More examples
Related tasks you can copy.
Find active Adidas video ads on Meta
Search the US Meta Ad Library for active Adidas video ads. Review available creative URLs, ad copy, calls to action and start dates.
View exampleExport Meta Ad Library ads by Facebook Page ID
Export up to 10 active Meta Ad Library ads from one advertiser Page ID. Review ad copy, media links, CTA, dates, and platforms in the dataset, then download CSV or JSON.
View exampleResearch inactive streaming ads in Meta Ad Library
Search inactive US ads for Netflix. Review historical campaign creative, copy and available start and end dates.
View exampleFind fitness app ad creatives in India
Search active India Meta ads for fitness app creative. Review hooks, available media and destination links for a local campaign brief.
View exampleAI Ad Analyzer
Score an ad creative with your own AI API key
Analyze one sample image ad for hooks, visible text, creative attributes and improvement suggestions. Add your own OpenAI API key in the secret apiKey field before running. Provider charges apply in addition to Apify usage; AI scores are not measured ad performance.
View exampleFacebook Group & Page Scraper
Collect images and video links from ESA Facebook posts
Sample public ESA Facebook posts with media extraction enabled. Review available image links, video links and source post URLs.
View exampleGuides
Read more about this workflow.
How to Export Meta Ads from Facebook Ads Library for Competitor Research
Export public Meta Ad Library ads to CSV by Facebook Page ID, check the fields, and compare dated competitor snapshots.
Is That Meta Ad Still Running? Check an Ad Library ID
Look up a saved Facebook or Instagram ad, distinguish inactive ads from failed lookups, and build a status history you can trust.
Top 7 Web Scrapers for Competitor Research in 2026
Compare the best web scrapers for competitor ad research, social listening, lead generation, and market research across Meta, Google, TikTok, Reddit, websites, and Facebook Groups.
Top 5 Facebook Scrapers in 2026
Compare the best Facebook scrapers for Meta ads, Facebook groups, public pages, and single-ad status checks. Use the right tool for the data you actually need.