Meta
Meta search ads API
Call the Meta search ads API to get page, is active, first shown at and last shown at, as JSON or markdown. 2 credits per 10 items, at least 2 credits.
POST
Search ads in the Meta ad library
- Endpoint:
meta.ads.search - Returns:
datahasads. - Cost: 2 credits per 10 items, at least 2 credits. Failed calls cost nothing.
- Paging: Yes. Send the
cursorfrom the response to get the next page. See Paging.
Example
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required string length:
1 - 200ISO 3166-1 alpha-2 country code, or all. Any case is accepted.
Pattern:
^(?:[A-Za-z]{2}|[Aa][Ll][Ll])$Available options:
all, politicalAndIssue Available options:
active, inactive, all Available options:
all, image, video, meme, none Maximum array length:
4Available options:
facebook, instagram, messenger, audienceNetwork Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$BCP 47 language tag, e.g. en or pt-BR. Any case is accepted.
Pattern:
^[A-Za-z]{2}$Required range:
1 <= x <= 500Pattern:
^(?:\d{1,4}~(?:[\w-]{10,500})?|(?:[\w-]{10,500}))$