Fetch Search Ads Pages (POST)
Meta Ads Library Search
Fetch Search Ads Pages (POST)
This endpoint retrieves detailed information about ad pages based on a search query, returning up to 26 ads per request. Use the end_cursor parameter to retrieve additional ads if needed.
POST
Fetch Search Ads Pages (POST)
Authorizations
Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...
Body
application/json
Search query string
Facebook Ad Page ID. Used only if query is not provided.
Country filter (e.g. ALL, US, GB)
Filter by active status (e.g. ALL, ACTIVE, INACTIVE)
Pagination cursor for next page of results
Filter ads created after this time
Filter ads created before this time
Sort order for results
Response
Successful response
The response is of type object.