跳转到主要内容
GET
Search the public Ad Library

请求规范

  • 方法与路径: GET /apis/v1/ads/library
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/ads/library
  • connectionId: query; 必填
  • platform: query; 可选
  • q: query; 可选
  • pageIds: query; 可选
  • advertiser: query; 可选
  • countries: query; 可选
  • adType: query; 可选
  • status: query; 可选
  • platforms: query; 可选
  • mediaType: query; 可选
  • languages: query; 可选
  • since: query; 可选
  • until: query; 可选
  • searchType: query; 可选
  • fields: query; 可选
  • limit: query; 可选
  • after: query; 可选
  • Runtime 事实版本: fe60122939c67dc98a3a6ac6b97bd5c326b526105150c8959304dd2160d4dd09
完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

当前未提供请求参考价格;请使用接口支持的报价功能确认费用。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。

授权

Authorization
string
header
必填

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

查询参数

connectionId
string
必填

The ads connection (adc_...) the request runs on: one of yours, from GET /apis/v1/ads/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^adc_[0-9A-Za-z]+$
platform
enum<string>

Which archive to search. meta needs no connectionId. Required unless connectionId is given.

可用选项:
meta,
linkedin
q
string

Keyword search. Meta does not translate it, so write it in the ads' language. Required unless pageIds (Meta) or advertiser (LinkedIn) is given.

Maximum string length: 100
pageIds
string

Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.

advertiser
string

LinkedIn only. Advertiser (Page) name to search.

Maximum string length: 100
countries
string

Comma-separated ISO 3166-1 alpha-2 codes the ads reached. Meta defaults to ALL (an explicit ALL is Meta-only); LinkedIn searches every market when omitted.

adType
enum<string>
默认值:ALL

Meta only.

可用选项:
ALL,
POLITICAL_AND_ISSUE_ADS,
HOUSING_ADS,
EMPLOYMENT_ADS,
FINANCIAL_PRODUCTS_AND_SERVICES_ADS
status
enum<string>
默认值:ACTIVE

Meta only. ACTIVE = eligible for delivery right now.

可用选项:
ACTIVE,
INACTIVE,
ALL
platforms
string

Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.

mediaType
enum<string>

Meta only.

可用选项:
ALL,
IMAGE,
MEME,
VIDEO,
NONE
languages
string

Meta only. Comma-separated ISO 639-1 codes of the ad text.

since
string<date>

Meta only. Earliest delivery date (YYYY-MM-DD). LinkedIn's archive does not filter by date, so it is a 400 there: filter on details.adStatistics.firstImpressionAt / latestImpressionAt instead (EU-delivered ads only).

until
string<date>

Meta only. Latest delivery date (YYYY-MM-DD); a 400 on LinkedIn, see since.

searchType
enum<string>
默认值:KEYWORD_UNORDERED

Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them).

可用选项:
KEYWORD_UNORDERED,
KEYWORD_EXACT_PHRASE
fields
string

Meta only. Comma-separated Graph field override.

limit
integer
默认值:25

Rows per page. LinkedIn accepts at most 25.

必填范围: 1 <= x <= 100
after
string

paging.after of the previous page.

响应

Archived ads (raw platform shape)

data
object[]
必填
paging
object
必填
platform
enum<string>
必填
可用选项:
meta,
linkedin