Skip to main content
POST
Fetch Search Ads Pages (POST)

Authorizations

Authorization
string
header
required

Bearer token. Pass your agntdata API key as: Authorization: Bearer agnt_live_...

Body

application/json
query
string
default:""

Search query string

ad_page_id
string
default:1633779800049051

Facebook Ad Page ID. Used only if query is not provided.

country
string
default:ALL

Country filter (e.g. ALL, US, GB)

activeStatus
string
default:ALL

Filter by active status (e.g. ALL, ACTIVE, INACTIVE)

end_cursor
string
default:""

Pagination cursor for next page of results

after_time
string
default:""

Filter ads created after this time

before_time
string
default:""

Filter ads created before this time

sort_data
string
default:""

Sort order for results

Response

Successful response

The response is of type object.