GET
/v1/facebook/adLibrary/search/companiesSearch companies API
Typeahead-style search over advertisers in the public Facebook Ad Library. Use this to resolve a brand or product name to a `page_id` you can then feed into /v1/facebook/adLibrary/company/ads.
Authentication
Include
x-api-key: <your_key> in your request headersRequests without a valid key get a
401 Unauthorized. Revoked keys return 403 Forbidden.Parameters
Name
Type
Description
queryRequiredstring
Page name to search for.
countryOptionalstringdefault: US
ISO country code biasing results.
Example request
curl "https://mesmer.tools/api/v1/facebook/adLibrary/search/companies?query=Notion&country=US" \
-H "x-api-key: <YOUR_API_KEY>"Try it now
Hits the live endpoint with your API key.
Saved locally in your browser. Mint a key in /admin/api-keys.
Response schema
Trimmed example — see Field reference for descriptions.
{
"success": true,
"credits_remaining": -1,
"searchResults": [
{
"page_id": "232540286768801",
"name": "Notion",
"page_alias": "NotionHQ",
"category": "Software",
"country": "US",
"entity_type": "BUSINESS",
"image_uri": "https://scontent.fbom29-1.fna.fbcdn.net/...jpg",
"likes": 412300,
"page_is_deleted": false,
"verification": "BLUE_VERIFIED",
"ig_username": "notionhq",
"ig_followers": 580200,
"ig_verification": "BLUE_VERIFIED"
},
"...more results"
]
}Field reference
Each searchResults[] entry — the fields you'll most likely use.
searchResults[].field
Type
Description
page_idstring
Stable Facebook Page id. Pass to /company/ads to list a Page's ads.
namestring
Display name of the Page.
page_aliasstring
URL-safe vanity name (`facebook.com/<page_alias>`).
categorystring
Facebook's Page category label (e.g. "Software").
countrystring
ISO country code of the Page's listed country.
entity_typestring
PERSON | BUSINESS | UNKNOWN.
image_uristring
Profile picture URL.
likesnumber
Page Like count.
ig_usernamestring
Linked Instagram username, if any.
ig_followersnumber
Instagram follower count of the linked IG account.