Skip to main content
GET
Reference example

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
  • Runtime facts: dc9b77b2e3a08457a2eca6be9d001a549785561f83b492abe3e3462b92be5843
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.014 USD (not a fixed price). Declared unit rate: $0.014 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.014
  • Declared unit rate (USD): 0.014
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 1
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

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

Query Parameters

adType
enum<string>
Available options:
all,
political-and-issue
Required string length: 1 - 4096
country
string
Required string length: 1 - 4096
cursor
string
Required string length: 1 - 16384
endDate
string
Required string length: 1 - 4096
language
string
Required string length: 1 - 4096
mediaType
enum<string>
Available options:
all,
image,
image-and-meme,
meme,
none,
video
Required string length: 1 - 4096
query
string
required
Required string length: 1 - 4096
searchType
enum<string>
Available options:
exact-phrase,
keyword-unordered
Required string length: 1 - 4096
sortBy
enum<string>
Available options:
impressions,
most-recent
Required string length: 1 - 4096
startDate
string
Required string length: 1 - 4096
status
enum<string>
Available options:
active,
all,
inactive
Required string length: 1 - 4096
trim
boolean

Response

Successful response