Meta Ad Library Search Basic
Usage-based pricing
ae_meta_ad_library_search_basic
Look up a company’s Facebook ads by page ID or company name. Filter by country, status, dates or media type.
Usage-based pricing
Pricing
If (((query response != not provided) && (billing indicator != not provided)) && (billing indicator > 0)), the charge for this component is 1.8 AE credits; otherwise it is 0 AE credits. Add all applicable components to obtain the total charge for this call.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.cursor | string | No | Opaque pagination cursor from a previous response's nextCursor. | — |
request_body.pageId | string | Conditional | Company's Ad Library page ID. Provide either pageId or companyName. | — |
request_body.sortBy | enum (impressions | recent) | No | Sort order: impressions (highest first, the default) or recent (most recent). | — |
request_body.status | enum (ALL | ACTIVE | INACTIVE) | No | Ad status filter. Defaults to ACTIVE. | — |
request_body.country | string | No | Two-letter country code to scope results. Defaults to all countries. | — |
request_body.endDate | string | No | Filter to ads with impressions on or before this date, in YYYY-MM-DD format. | — |
request_body.language | string | No | Two-letter language code to filter ads (e.g. "EN", "ES", "FR"). | — |
request_body.mediaType | enum (ALL | IMAGE | VIDEO | MEME | IMAGE_AND_MEME | NONE) | No | Creative media type filter. | — |
request_body.startDate | string | No | Filter to ads with impressions on or after this date, in YYYY-MM-DD format. | — |
request_body.companyName | string | Conditional | Company name to search (e.g. "nike"). Exact-match and case-sensitive against the Meta Ad Library index; an advertiser with no indexed page returns found:false. | — |
Invocation example
Parameter templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v2/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v2/tool/execute?tool_name=ae_meta_ad_library_search_basic' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"pageId": "15087023444",
"sortBy": "recent"
}
}
}'No response example available yet.





