Search advertisers
Search advertisers in the Meta Ad Library by name, to get their page id.
Request
POST https://dev-backend.tryingrow.com/public-api/facebook/search-advertisersSend your key in the x-api-key header and a JSON body.
Body
| Field | Type | Description |
|---|---|---|
ad_type | "ALL" | "EMPLOYMENT_ADS" | "FINANCIAL_PRODUCTS_AND_SERVICES_ADS" | "HOUSING_ADS" | "POLITICAL_AND_ISSUE_ADS" | the type of the ad |
country | "ALL" | "BR" | "IN" | "GB" | "US" | "CA" | "AR" | "AU" | "AT" | "BE" | "CL" | "CN" | "CO" | "HR" | "DK" | "DO" | "EG" | "FI" | "FR" | "DE" | "GR" | "HK" | "ID" | "IE" | "IL" | "IT" | "JP" | "JO" | "KW" | "LB" | "MY" | "MX" | "NL" | "NZ" | "NG" | "NO" | "PK" | "PA" | "PE" | "PH" | "PL" | "RU" | "SA" | "RS" | "SG" | "ZA" | "KR" | "ES" | "SE" | "CH" | "TW" | "TH" | "TR" | "AE" | "VE" | "PT" | "LU" | "BG" | "CZ" | "SI" | "IS" | "SK" | "LT" | "TT" | "BD" | "LK" | "KE" | "HU" | "MA" | "CY" | "JM" | "EC" | "RO" | "BO" | "GT" | "CR" | "QA" | "SV" | "HN" | "NI" | "PY" | "UY" | "PR" | "BA" | "PS" | "TN" | "BH" | "VN" | "GH" | "MU" | "UA" | "MT" | "BS" | "MV" | "OM" | "MK" | "LV" | "EE" | "IQ" | "DZ" | "AL" | "NP" | "MO" | "ME" | "SN" | "GE" | "BN" | "UG" | "GP" | "BB" | "AZ" | "TZ" | "LY" | "MQ" | "CM" | "BW" | "ET" | "KZ" | "NA" | "MG" | "NC" | "MD" | "FJ" | "BY" | "JE" | "GU" | "YE" | "ZM" | "IM" | "HT" | "KH" | "AW" | "PF" | "AF" | "BM" | "GY" | "AM" | "MW" | "AG" | "RW" | "GG" | "GM" | "FO" | "LC" | "KY" | "BJ" | "AD" | "GD" | "VI" | "BZ" | "VC" | "MN" | "MZ" | "ML" | "AO" | "GF" | "UZ" | "DJ" | "BF" | "MC" | "TG" | "GL" | "GA" | "GI" | "CD" | "KG" | "PG" | "BT" | "KN" | "SZ" | "LS" | "LA" | "LI" | "MP" | "SR" | "SC" | "VG" | "TC" | "DM" | "MR" | "AX" | "SM" | "SL" | "NE" | "CG" | "AI" | "YT" | "CV" | "GN" | "TM" | "BI" | "TJ" | "VU" | "SB" | "ER" | "WS" | "AS" | "FK" | "GQ" | "TO" | "KM" | "PW" | "FM" | "CF" | "SO" | "MH" | "VA" | "TD" | "KI" | "ST" | "TV" | "NR" | "RE" | "LR" | "ZW" | "CI" | "MM" | "AN" | "AQ" | "BQ" | "BV" | "IO" | "CX" | "CC" | "CK" | "CW" | "TF" | "GW" | "HM" | "XK" | "MS" | "NU" | "NF" | "PN" | "BL" | "SH" | "MF" | "PM" | "SX" | "GS" | "SS" | "SJ" | "TL" | "TK" | "UM" | "WF" | "EH" | filter by country - default is ALL |
queryrequired | string | the search query |
Example
curl -X POST https://dev-backend.tryingrow.com/public-api/facebook/search-advertisers \
-H "x-api-key: $INGROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"…"}'Response
JSON from Facebook, fetched live. Every response also carries two headers: x-cost-usd with what the call cost and x-balance-usd with the balance left. Errors: 402 when the balance or your monthly spend limit is too low, 429 when over the rate limit (wait for retry-after seconds).
Pricing and limits
- How much does the InGrow Search advertisers API cost?
- $0.003 per successful call, taken from your InGrow balance. Failed calls are refunded, and every new organization starts with $1 free credit.
- What is the rate limit of the Search advertisers API?
- 1 request per second per organization, shared by every Facebook endpoint. Over the limit returns 429 with a retry-after header.
- How do I call the Search advertisers API?
- Send POST https://dev-backend.tryingrow.com/public-api/facebook/search-advertisers with a JSON body and your API key in the x-api-key header. Required fields: query. The same key works through the InGrow MCP server.
More Facebook APIs
- Resolve urlResolve any Facebook URL (profile, page, group, post, photo) to its type and numeric id, for use in the other Facebook endpoints.$0.003
- Search profilesSearch Facebook profiles of people by name or keyword.$0.003
- Profile aboutGet the about section of a Facebook profile (work, education, places, contact info), by profile id.$0.003
- Profile postsGet recent posts published by a Facebook profile, by profile id.$0.003
- Search pagesSearch Facebook pages of businesses and brands by keyword.$0.003
- Page detailsGet a Facebook page's details (category, followers, website, contact info, address), by page id.$0.003
- Page postsGet recent posts published by a Facebook page, by page id.$0.003
- Search groupsSearch Facebook groups by keyword.$0.003
- Group infoGet a Facebook group's details (description, privacy, member count), by group id.$0.003
- Group postsGet recent posts from a public Facebook group, by group id.$0.003
- Search postsSearch public Facebook posts by keyword, with date filters.$0.003
- PostGet a single Facebook post with its text, author and engagement counts, by post id.$0.003
- Post commentsGet the comments on a Facebook post, by post id.$0.003
- Post reactionsGet the people who reacted to a Facebook post, by post id.$0.003
- Search adsSearch the Meta Ad Library for ads by keyword, with country, status, media type and date filters.$0.003
- Advertiser adsGet the ads a page runs in the Meta Ad Library, by page id, with country, status, media type and date filters.$0.003