Apify example task · whoareyouanas/meta-brand-dropdown-search
Find a brand's Facebook Page ID in Meta Ad Library
Enter a brand name and review up to five ranked Facebook Page suggestions. Compare page names and available verification details before using a Page ID.
- Actor
- Facebook Page ID Finder - Meta Ad Library Brand Search
- Result limit
- 5 (maxResults)
- Estimated cost
- Up to $0.02005
- Run options
- 1 GB memory · 180 s timeout
Example updated 2026-11-23 · actor build 0.2.2 · runs in your own Apify account
01 / About the actor
Facebook Page ID Finder - Meta Ad Library Brand Search
Resolve a brand name or prefix into Meta Ad Library advertiser suggestions. Retrieve ranked candidate pages and Page IDs for competitor selectors, advertiser discovery, and downstream ad searches.
Brand-to-Page-ID lookup
Search one brand phrase or prefix and review ranked advertiser candidates.
Verify the candidate
Use category, social links, and verification context to choose the intended advertiser.
Dropdown API workflow
Use the documented Standby endpoint for a search interface or run a bounded lookup through Apify.
02 / Input
The exact input this example runs.
Use one non-empty query per lookup with country, ad type, and result controls when needed. This is an advertiser-suggestion search, not a batch of keywords or an ad-copy search.
{
"query": "nike",
"country": "US",
"maxResults": 5
}| Field | Value in this example | What it controls |
|---|---|---|
| queryChange this | "nike" | The single brand name or partial name to search, such as ele, Nike or Spotify. Required for every lookup; use 2–200 characters. Standby requests send this field to /search instead of setting it at server startup. |
| countryChange this | "US" | ALL or a two-letter ISO country code such as US, GB or IN. This selects Meta's search context, not the advertiser's headquarters. |
| maxResultsChange this | 5 | Return up to this many ranked Facebook advertiser suggestions. Meta controls the available dropdown results; raising this limit does not add pagination. |
Other inputs you can add (6)
| Field | Type / required | Default | Purpose |
|---|---|---|---|
| adType | string | "ALL" | Meta Ad Library ad category. Availability of regulated categories varies by country. Options: ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, EMPLOYMENT_ADS, FINANCIAL_PRODUCTS_AND_SERVICES_ADS |
| proxyConfiguration | object | {"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]} | Residential proxies are the cloud default for Meta Ad Library access. Apify bills proxy traffic separately. Direct access is available when your network supports it. |
| cacheTtlSeconds | integer | 0 | 0 fetches live results (default). Set up to 300 to reuse recent results in a warm Standby run. fresh=true bypasses this cache. Minimum: 0 · Maximum: 300 |
| minIntervalMs | integer | 1000 | Minimum time between outbound lookups per browser session. Unique queries are serialized with a bounded queue. Minimum: 500 · Maximum: 10000 |
| requestTimeoutSecs | integer | 60 | Total upstream deadline, including browser launch and retries. Queue waiting has a separate 10-second limit. Minimum: 15 · Maximum: 120 |
| maxRetries | integer | 3 | Retries a blocked or failed Meta session with a new browser and proxy IP, within the same time limit. Minimum: 0 · Maximum: 4 |
03 / Make it yours
Change these fields for your own research.
01 · query
Brand name or search prefix
The single brand name or partial name to search, such as ele, Nike or Spotify. Required for every lookup; use 2–200 characters. Standby requests send this field to /search instead of setting it at server startup.
Example: "nike"
02 · country
Search country
ALL or a two-letter ISO country code such as US, GB or IN. This selects Meta's search context, not the advertiser's headquarters.
Example: "US"
03 · maxResults
Maximum advertiser suggestions
Return up to this many ranked Facebook advertiser suggestions. Meta controls the available dropdown results; raising this limit does not add pagination.
Example: 5
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.
- Rows contain query context, rank, page identity, category, available verification or social fields, and source links.
- Verification badges do not prove that a similarly named page is the brand you intended. Social and country fields can be null.
Columns in the “Advertiser candidates” view
query
Query
country
Country
rank
Rank
pageId
Page ID
pageName
Advertiser
category
Category
likes
Facebook likes
pageAlias
Facebook alias
verification
Verification
igUsername
igFollowers
IG followers
igVerification
IG verified
libraryUrl
Ad Library
pageUrl
Facebook page
logoUrl
Logo
fetchedAt
Fetched at
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.
At most about $0.02005: up to 5 results at $0.004 each (result) plus $0.00005 for the start event at 1 GB of memory. Fewer results cost less. The live Pricing tab on Apify is authoritative.
Actor Start
$0.00005 per event · per GB of memory
result
$0.004 per event
Prices checked 2026-11-22. 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 Facebook Page ID Finder - Meta Ad Library Brand Search 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-brand-dropdown-search/run-sync-get-dataset-items?format=json' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"query":"nike","country":"US","maxResults":5}'Coverage & interpretation
Check the result before relying on it.
- Typeahead suggestions are ranked candidates, not a complete export of every matching advertiser.
- One query can return several brands or Pages; confirm the identity before sending a Page ID to another actor.
Questions
About this example.
What does the "Find a brand's Facebook Page ID in Meta Ad Library" example collect?
Enter a brand name and review up to five ranked Facebook Page suggestions. Compare page names and available verification details before using a Page ID. It runs Facebook Page ID Finder - Meta Ad Library Brand Search, published by whoareyouanas on Apify.
Which input does this example use?
Brand name or search prefix (query) set to "nike"; Search country (country) set to "US"; Maximum advertiser suggestions (maxResults) set to 5. The full JSON input is shown on this page.
How much does it cost to run this example?
At most about $0.02005: up to 5 results at $0.004 each (result) plus $0.00005 for the start event at 1 GB of memory. Fewer results cost less. The live Pricing tab on Apify is authoritative.
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 Brand name or search prefix, Search country, Maximum advertiser suggestions. 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 Facebook Page ID Finder - Meta Ad Library Brand Search 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 Canadian Meta advertiser pages for Lululemon
Search for Lululemon with Canada selected. Capture the likely Page ID and review available profile metadata before opening its ads in the Ad Library.
View exampleFind Meta advertiser Page IDs from a name prefix
Enter the partial name Ele and review ranked candidate names and Page IDs. Use the results to prototype an advertiser picker or refine a longer search.
View exampleDisambiguate UK IKEA advertiser pages on Meta
Search for IKEA with the United Kingdom selected. Compare available Page IDs, names, categories and verification fields before choosing the intended advertiser.
View exampleFacebook Ads Library API & Instagram Ads Scraper
View a competitor's Facebook ads by Page ID
View and export the active Facebook and Instagram ads of one competitor, Burger King in the United States, by its Facebook Page ID. Swap in your competitor's Page ID to analyze their creatives.
View exampleMeta (Facebook) Ad Library Scraper
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 exampleFacebook Ad Library Video Downloader & Ad Lookup
Check a Meta Ad Library ad by ID
Look up one Facebook or Instagram ad by its Meta Ad Library ID. Check the lookup outcome and active state, then inspect available ad copy and media links.
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.