Skip to main content
GET
Search Facebook Ad Library ads
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.

Request contract

  • Method and path: GET /apis/v1/facebook/ad-library/ads/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/facebook/ad-library/ads/search
  • adType: query; optional
  • country: query; optional
  • cursor: query; optional
  • endDate: query; optional
  • language: query; optional
  • mediaType: query; optional
  • query: query; required
  • searchType: query; optional
  • sortBy: query; optional
  • startDate: query; optional
  • status: query; optional
  • trim: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.
  • HTTP status / last observed: 200 / 2026-11-27

Cost and request rules

Usage-based pricing. Default request estimate: $0.042 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Pagination

  • Pass aisa_pagination.next_cursor as cursor (query parameter) to fetch the next page; stop when aisa_pagination.has_more is false.
  • The same values are returned in the X-AISA-Has-More and X-AISA-Next-Cursor response headers.

Response time

  • Typically returns within 10 seconds.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

adType
enum<string>

Optional filter for all ads or political and issue ads.

Available options:
all,
political-and-issue
Required string length: 1 - 4096
country
string

Optional country code filter. Use ALL to search all countries.

Required string length: 1 - 4096
cursor
string

Opaque pagination cursor from a previous response.

Required string length: 1 - 16384
endDate
string

Optional end date filter in YYYY-MM-DD format.

Required string length: 1 - 4096
language
string

Optional ISO 639-1 language code (two letters, for example EN, ES or FR) to only return ads in that language.

Required string length: 1 - 4096
mediaType
enum<string>

Optional creative media filter.

Available options:
all,
image,
image-and-meme,
meme,
none,
video
Required string length: 1 - 4096
query
string
required

Search query text for Facebook Ad Library ads.

Required string length: 1 - 4096
searchType
enum<string>

Optional keyword matching mode for the search query.

Available options:
exact-phrase,
keyword-unordered
Required string length: 1 - 4096
sortBy
enum<string>

Optional sort order for returned ads.

Available options:
impressions,
most-recent
Required string length: 1 - 4096
startDate
string

Optional start date filter in YYYY-MM-DD format.

Required string length: 1 - 4096
status
enum<string>

Optional ad status filter.

Available options:
active,
all,
inactive
Required string length: 1 - 4096
trim
boolean

When true, returns a smaller response with fewer fields.

Response

Facebook Ad Library ads matching the requested search.

Standard success response envelope.

data
object
required

Endpoint-specific response payload.

meta
object
required

Metadata describing the request and billing outcome.

aisa_pagination
object

AIsa pagination. Pass next_cursor as cursor to fetch the next page; has_more is false on the last page.