Search ads
curl --request POST \
--url https://api.aisa.one/apis/v1/upspring/ads/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 25,
"q": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/upspring/ads/search"
payload = {
"limit": 25,
"q": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 25, q: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/upspring/ads/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/upspring/ads/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 25,
'q' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/upspring/ads/search"
payload := strings.NewReader("{\n \"limit\": 25,\n \"q\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/upspring/ads/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 25,\n \"q\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/upspring/ads/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 25,\n \"q\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyUpspring
Search ads
Use to find Meta ads matching a free-text idea, relevance-ranked across Upspring’s competitor ad corpus. Re-rank the page by strength.impressions, then open the finalists with ads/detail. For the newest or best-performing ads without a query use ads/browse.
POST
https://api.aisa.one
/
apis
/
v1
/
upspring
/
ads
/
search
Search ads
curl --request POST \
--url https://api.aisa.one/apis/v1/upspring/ads/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 25,
"q": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/upspring/ads/search"
payload = {
"limit": 25,
"q": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 25, q: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/upspring/ads/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/upspring/ads/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 25,
'q' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/upspring/ads/search"
payload := strings.NewReader("{\n \"limit\": 25,\n \"q\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/upspring/ads/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 25,\n \"q\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/upspring/ads/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 25,\n \"q\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/upspring/ads/search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/upspring/ads/search
{
"operationId": "upspring.ads.search",
"method": "POST",
"path": "/apis/v1/upspring/ads/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"properties": {
"advertiser_id": {
"description": "Only ads from these advertiser ids.",
"items": {
"type": "string"
},
"type": "array"
},
"archetype": {
"description": "Only ads with this archetype id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"category": {
"description": "One category id within a vertical, from taxonomy/verticals.",
"type": "string"
},
"claim_type": {
"description": "Only ads that use this claim type (an ad can carry several). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"cursor": {
"description": "meta.next_cursor from the previous page, verbatim. Send the same filters with it; a cursor replayed with changed filters is refused.",
"type": "string"
},
"evidence_type": {
"description": "Only ads that use this evidence type (an ad can carry several). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"funnel": {
"description": "Only ads with this funnel id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"has_product": {
"description": "true for ads whose landing page has store data (price, vendor), false for ads without. Omit for both.\n\nProvider reference: allowed values [\"true\", \"false\"].",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"true",
"false"
]
}
},
"hook_archetype": {
"description": "Only ads with this hook archetype id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"hook_polarity": {
"description": "Only ads with this hook polarity id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"include": {
"description": "Comma-separated: descriptors adds synopsis and long_form narration per ad (token-heavy); media adds durable {video_url, image_url, thumbnail_url, width, height}.",
"type": "string"
},
"is_active": {
"description": "true for ads running now, false for stopped ones. Omit for both.\n\nProvider reference: allowed values [\"true\", \"false\"].",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"true",
"false"
]
}
},
"limit": {
"description": "Ads per page, 1 to 100 (1 to 50 with include=descriptors). Default 25.\n\nProvider reference: minimum 1; maximum 100.",
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"mechanism": {
"description": "Only ads with this mechanism id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"media_type": {
"description": "Only ads with this media type id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"min_impressions": {
"description": "Winners-only floor on Meta's 1 to 5 delivery-strength indicator. Excludes ads without one.\n\nProvider reference: minimum 1; maximum 5.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 5,
"min": 1
}
},
"offer_type": {
"description": "Only ads with this offer type id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"persona": {
"description": "Only ads with this persona id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"persuasion_technique": {
"description": "Only ads that use this persuasion technique (an ad can carry several). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"positioning": {
"description": "Only ads with this positioning id (OR across values). Ids from taxonomy/vertical's dimensions.",
"items": {
"type": "string"
},
"type": "array"
},
"q": {
"description": "Free-text brief, for example prebiotic soda or greens powder daily drink. Hybrid semantic and keyword match.",
"type": "string"
},
"recency_days": {
"description": "Only ads first seen in the last N days (1 to 365).\n\nProvider reference: minimum 1; maximum 365.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 365,
"min": 1
}
},
"vertical": {
"description": "Vertical id(s), for example beverages or skincare. Ids come from taxonomy/verticals.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"limit",
"q"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
{data: ads, meta: {order, note, next_cursor}}. Pass meta.next_cursor back as cursor for the next page; null on the last.
The response contains the tool result directly.
The provider identifies data as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
id | string | Ad id, for ads/detail and ads/similar. |
advertiser | object | {id, name} of the brand running it. |
media_type | string | video, image or another format. |
is_active | boolean | Whether the ad is running now. |
started_at | string | When the ad was first seen. |
dimensions | object | Creative dimensions as {id, label} per dimension name; a key is absent when unanalyzed. |
one_line | string | One-sentence description of the ad. |
hook_text | string | Verbatim opening line, for video ads. |
strength | object | {impressions: Meta's 1-5 delivery indicator, engagement: none, observed or high}. |
ad_library_url | string | The ad's public Meta Ad Library page, or null. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.