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.

Social
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.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.cursorstringNoOpaque pagination cursor from a previous response's nextCursor.—
request_body.pageIdstringConditionalCompany's Ad Library page ID. Provide either pageId or companyName.—
request_body.sortByenum (impressions | recent)NoSort order: impressions (highest first, the default) or recent (most recent).—
request_body.statusenum (ALL | ACTIVE | INACTIVE)NoAd status filter. Defaults to ACTIVE.—
request_body.countrystringNoTwo-letter country code to scope results. Defaults to all countries.—
request_body.endDatestringNoFilter to ads with impressions on or before this date, in YYYY-MM-DD format.—
request_body.languagestringNoTwo-letter language code to filter ads (e.g. "EN", "ES", "FR").—
request_body.mediaTypeenum (ALL | IMAGE | VIDEO | MEME | IMAGE_AND_MEME | NONE)NoCreative media type filter.—
request_body.startDatestringNoFilter to ads with impressions on or after this date, in YYYY-MM-DD format.—
request_body.companyNamestringConditionalCompany 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 template

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

POST/agent-api/v2/tool/executeX-Api-Key
Request 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.