curl --request POST \
--url https://api.airscale.io/v1/meta-ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "example.com"
}
'const url = 'https://api.airscale.io/v1/meta-ads';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'example.com'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.airscale.io/v1/meta-ads"
payload = { "domain": "example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Meta Ads
Look up Meta ads for a company domain. Rate limit: 60 requests per minute per workspace.
curl --request POST \
--url https://api.airscale.io/v1/meta-ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "example.com"
}
'const url = 'https://api.airscale.io/v1/meta-ads';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({domain: 'example.com'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.airscale.io/v1/meta-ads"
payload = { "domain": "example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)domain field: a bare hostname or HTTP(S) URL. Paths and queries are ignored after normalization. IP literals, credentials, non-default ports, and invalid domain labels are rejected. The JSON body must fit within 16 KiB.
Usage and credits
The limit is 60 requests per minute per workspace. You need at least 1 credit before the lookup can start. A finite numericnumber_of_ads greater than zero costs 1 credit. A zero, missing, nonnumeric, or nonpositive count costs 0 credits.
Read credits_consumed for the cost of the lookup. Fields such as page_id and number_of_ads are optional and can vary in type; check them before use. A zero-ad result costs zero credits.
Timeouts and retries
The lookup can take up to 90 seconds. HTTP504 means that lookup timed out without a debit. Use bounded backoff for temporary errors and rate limits.
This endpoint does not support caller idempotency keys. Retrying a successful lookup can run and bill another lookup, including when the original response was lost.
Next step
Review credit balance or rate limits before scheduling more lookups.Authorizations
Use an Airscale workspace API key. Never expose the key in client-side code.
Body
Bare company hostname or HTTP(S) URL. Whitespace is trimmed; hostname is lowercased and leading www. and trailing dot are removed. Paths and queries are ignored. IP literals, credentials, non-default ports, and invalid domain labels are rejected. Maximum JSON body size: 16 KiB (oversize returns 400).
1Response
Ad lookup result and credit cost. Ad fields are optional and their types can vary.
0, 1 Meta page identifier, when present.
Ad count, when present. Only a positive finite number is billable.
Ads found for the page, when there are any. Ad fields vary; check for missing or null values before using them.
Show child attributes
Show child attributes