Meta Ad Library Search

32.5 credits per successful search
ae_meta_ad_library_search

按关键词、地区或广告主查询 Meta 广告资料库

Social
32.5 credits per successful search

Pricing

A completed search is 32.5 credits. Failed searches are free.

32.5 credits per successful search

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
qstringNoNo parameter description.—
ad_typeenum (all | political_and_issue_ads | housing_ads | employment_ads | financial_products_and_services_ads)NoNo parameter description.—
countryenum (ALL | AF | AL | DZ | AS | AD | AO | AI | AQ | AG | AR | AM | AW | AU | AT | AZ | BS | BH | BD | BB | BY | BE | BZ | BJ | BM | BT | BO | BQ | BA | BW | BV | BR | IO | BN | BG | BF | BI | CV | KH | CM | CA | KY | CF | TD | CL | CN | CX | CC | CO | KM | CG | CD | CK | CR | HR | CW | CY | CZ | CI | DK | DJ | DM | DO | EC | EG | SV | GQ | ER | EE | ET | FK | FO | FJ | FI | FR | GF | PF | TF | GA | GM | GE | DE | GH | GI | GR | GL | GD | GP | GU | GT | GG | GN | GW | GY | HT | HM | VA | HN | HK | HU | IS | IN | ID | IQ | IE | IM | IL | IT | JM | JP | JE | JO | KZ | KE | KI | KR | XK | KW | KG | LA | LV | LB | LS | LR | LY | LI | LT | LU | MO | MK | MG | MW | MY | MV | ML | MT | MH | MQ | MR | MU | YT | MX | FM | MD | MC | MN | ME | MS | MA | MZ | MM | NA | NR | NP | NL | AN | NC | NZ | NI | NE | NG | NU | NF | MP | NO | OM | PK | PW | PS | PA | PG | PY | PE | PH | PN | PL | PT | PR | QA | RO | RU | RW | RE | BL | SH | KN | LC | MF | PM | VC | WS | SM | ST | SA | SN | RS | SC | SL | SG | SX | SK | SI | SB | SO | ZA | GS | SS | ES | LK | SR | SJ | SZ | SE | CH | SY | TW | TJ | TZ | TH | TL | TG | TK | TO | TT | TN | TR | TM | TC | TV | UG | UA | AE | GB | US | UM | UY | UZ | VU | VE | VN | VG | VI | WF | EH | YE | ZM | ZW | AX)NoParameter defines the country where the ads were shown. It's a two-letter country code (e.g., `US` for the United States, or `DE` for Germany), or `ALL` (default) for all countries. Head to the Meta Ad Library countries page for a full list of supported countries.—
page_idstringNoParameter defines the Facebook page ID of the advertiser whose ads you want to get (e.g., `15087023444` for Nike). Page IDs are available in `page_id` of the ads in the results. Either q or page_id should be set. They can also be used together to get the advertiser's ads that match the keyword.—
sort_byenum (most_recent | impressions_high_to_low | impressions_low_to_high)NoNo parameter description.—
end_datestringNoParameter defines the last day of the date range of the ads, in the `YYYY-MM-DD` format (e.g., `2026-03-31`).—
media_typeenum (all | image | meme | image_and_meme | video | none)NoParameter defines the type of media of the ads. It defaults to `all`. Available options: `all` - All media types `image` - Images `meme` - Memes `image_and_meme` - Images and memes `video` - Videos `none` - No image or video—
start_datestringNoParameter defines the start of the date range of the ads, in the `YYYY-MM-DD` format (e.g., `2026-01-01`). Like the Ad Library's impressions by date filter, it returns the ads shown during the date range, whenever they started running. It can't be in the future.—
search_typeenum (keyword_unordered | keyword_exact_phrase)NoParameter defines the type of keyword search. It can be set to `keyword_unordered` (default) to search for the words of the query in any order, or `keyword_exact_phrase` to search for the query as an exact phrase.—
active_statusenum (active | inactive | all)NoParameter defines whether the ads are still running. It defaults to `active`. Available options: `active` - Active ads `inactive` - Inactive ads `all` - Active and inactive ads—
next_page_tokenstringNoNo parameter description.—
content_languagesstringNoParameter defines the languages of the ads. It's a comma-separated list of two-letter language codes (e.g., `en` for English, or `en,es` for English and Spanish). It defaults to all languages.—
publisher_platformsstringNoNo parameter description.—

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_meta_ad_library_search' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {}
}'

No response example available yet.