curl --request POST \
--url https://api.aisa.one/v1/tasks/ads.search_ad_library \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "meta",
"query": "nike",
"country": "US"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"items": [
{
"ad_id": "<string>",
"advertiser": {
"id": "<string>",
"name": "<string>"
},
"creative": {
"call_to_action": "<string>",
"landing_url": "<string>",
"media": [
{
"duration_seconds": 123,
"height": 123,
"thumbnail_url": "<string>",
"type": "image",
"url": "<string>",
"width": 123
}
],
"text": "<string>",
"title": "<string>"
},
"first_seen": "<string>",
"impressions_range": {
"currency": "<string>",
"max": 123,
"min": 123
},
"last_seen": "<string>",
"library_url": "<string>",
"platform": "meta",
"regions": [
"<string>"
],
"spend_range": {
"currency": "<string>",
"max": 123,
"min": 123
},
"status": "active",
"extras": {}
}
]
},
"status": "found",
"task": "ads.search_ad_library",
"version": 1
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}Ads
Search an ad library
Use when you need ads that match a keyword, brand or product in a public ad library (Meta Ad Library for Facebook and Instagram, TikTok Ad Library, LinkedIn Ad Library), with advertiser, ad copy, media, landing page, run dates and the library’s published impressions or spend bands. One page per call: at most about 30 ads from Meta, 24 from LinkedIn and 12 from TikTok. Charged per successful search by platform, whatever the number of ads; a search without ads is free.
POST
https://api.aisa.one
/
v1
/
tasks
/
ads.search_ad_library
curl --request POST \
--url https://api.aisa.one/v1/tasks/ads.search_ad_library \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "meta",
"query": "nike",
"country": "US"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"items": [
{
"ad_id": "<string>",
"advertiser": {
"id": "<string>",
"name": "<string>"
},
"creative": {
"call_to_action": "<string>",
"landing_url": "<string>",
"media": [
{
"duration_seconds": 123,
"height": 123,
"thumbnail_url": "<string>",
"type": "image",
"url": "<string>",
"width": 123
}
],
"text": "<string>",
"title": "<string>"
},
"first_seen": "<string>",
"impressions_range": {
"currency": "<string>",
"max": 123,
"min": 123
},
"last_seen": "<string>",
"library_url": "<string>",
"platform": "meta",
"regions": [
"<string>"
],
"spend_range": {
"currency": "<string>",
"max": 123,
"min": 123
},
"status": "active",
"extras": {}
}
]
},
"status": "found",
"task": "ads.search_ad_library",
"version": 1
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}The request and response panels use the schemas published by this API. Conditional requirements and allowed combinations are part of the request schema. Check the complete schema before combining filters or identities.
Temu ads in the TikTok Ad Library
HubSpot ads in the LinkedIn Ad Library
Only the listed values are priced; other values do not fall back to the catalog base price.
Successful delivery is charged; a normal empty result is not charged.
Obtain an input-specific quote by sending the same request with
Examples
Each request below runs as written; the request panel offers the same examples. Nike ads shown in the US in the Meta Ad Library{
"input": {
"platform": "meta",
"query": "nike",
"country": "US"
}
}
{
"input": {
"platform": "tiktok",
"query": "temu"
}
}
{
"input": {
"platform": "linkedin",
"query": "hubspot"
}
}
Billing
| Input | Price unit | Price (USD) |
|---|---|---|
| /input/platform = linkedin | Per successful request | 0.084 |
| /input/platform = meta | Per successful request | 0.084 |
| /input/platform = tiktok | Per successful request | 0.084 |
X-AISA-Cost-Mode: quote; quoting neither executes the Task nor reserves funds. Execution reserves the estimated request charge and settles under the rules above. Use X-AISA-Max-Price-USD to cap the price.
Use an Idempotency-Key when executing a Task. For errors, inspect error.code, error.request_id, error.retryable and error.retry_hint. A reconciliation hint requires checking the existing request before retrying; do not assume a pending settlement is a refund.