01Quickstart
- Get a key. Buy Builder ($299 every 4 weeks, 10,000 requests), then create your key in Settings → API. Need the incremental feed? Scale includes it.
- Make your first call. Send the key as a Bearer token. Keep it on your server: never ship it in browser code.
curl
curl "https://app.ad-radar.dev/api/v1/ads/search?q=skillet&brand=hearth-and-field&format=video&tags=awareness:problem-aware,hook_pattern:before-after&category=kitchen&started_after=2026-09-01&min_spend=100000" \
-H "Authorization: Bearer $AD_RADAR_KEY"
JavaScript (Node 18+)
const res = await fetch(
"https://app.ad-radar.dev/api/v1/ads/search?q=skillet&brand=hearth-and-field&format=video&tags=awareness:problem-aware,hook_pattern:before-after&category=kitchen&started_after=2026-09-01&min_spend=100000",
{ headers: { Authorization: `Bearer ${process.env.AD_RADAR_KEY}` } }
);
if (res.status === 429) throw new Error((await res.json()).error);
const { data, pagination } = await res.json();
console.log(res.headers.get("X-Quota-Remaining"), "requests left");
- Connect an AI agent. The same key works with the Ad Radar MCP server, so Claude or any MCP client can search the ads itself. Each tool call counts as one request.
Claude Code
claude mcp add --transport http ad-radar \
https://app.ad-radar.dev/api/mcp \
--header "Authorization: Bearer $AD_RADAR_KEY"
The tools, the setup for Claude Desktop, claude.ai and ChatGPT, and example prompts are on the MCP server page.
02Authentication
Your API key (ar_live_…) from https://app.ad-radar.dev/settings/api.
Header
Authorization: Bearer ar_live_…
A missing, invalid or revoked key gets a 401. Treat keys like passwords: if one leaks, revoke it in Settings → API and create a new one.
03Quotas and headers
One request is one billable HTTP call to /api/v1/* or one MCP tool call. A page of results is one request, however many ads it holds. /me and /openapi.json are never counted. Quotas reset every 4 weeks with your billing period.
| Plan | Requests | Per minute | Per page | Endpoints |
|---|---|---|---|---|
| Builder | 10,000 per period | 60 | 100 | All read endpoints, REST and MCP |
| Scale | 50,000 per period | 300 | 100 | Everything in Builder, plus /feed |
| Reseller | Custom | 600, or custom | 100 | Everything in Scale, plus /export |
Every billable response carries these headers, so your client always knows where it stands:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per minute on your plan. |
X-RateLimit-Remaining | Requests left in the current minute. |
X-RateLimit-Reset | Seconds until the current minute window resets. |
X-Quota-Limit | Requests included in your billing period. |
X-Quota-Remaining | Requests left in the quota window. |
X-Quota-Reset | End of the billing period in ISO 8601 (UTC), when the quota renews. |
Retry-After | Seconds to wait before retrying. |
When the quota is used up, or you go over the rate limit, the API answers 429 with a message, a Retry-After header and an upgrade link. Results are never cut short silently: a limit above your plan's page size is capped, and the response says so in notice.
04Errors
Errors are JSON with a plain-English error and a stable code you can branch on.
400Invalid parameter. Validation errors don't count as a request.
{
"error": "tier must be \"winner\" or \"rising\".",
"code": "invalid_parameter",
"param": "tier"
}
401Missing, invalid, revoked or expired API key.
{
"error": "Missing API token. Send Authorization: Bearer <token>.",
"code": "token_missing"
}
403The key can't be used here: no Data API plan (plan_required, nothing is counted), wrong scope, or the account is no longer active.
{
"error": "This endpoint is part of the Ad Radar Data API, which needs a Data API plan: Builder ($299 every 4 weeks, 10,000 requests) or Scale ($799, 50,000 requests and the incremental feed). Your app plan keeps Claude (MCP) and lookups by key (GET /ads, GET /ads/{key}). Get the Data API: https://app.ad-radar.dev/checkout?plan=api-builder",
"code": "plan_required",
"plan": "none",
"requiredPlan": "builder",
"upgradeUrl": "https://app.ad-radar.dev/checkout?plan=api-builder"
}
403The endpoint needs a higher plan.
{
"error": "The incremental feed (/feed) is included in the Scale plan and above. Your workspace is on Builder. Upgrade: https://app.ad-radar.dev/checkout?plan=api-scale",
"code": "plan_required",
"plan": "builder",
"requiredPlan": "scale",
"upgradeUrl": "https://app.ad-radar.dev/checkout?plan=api-scale"
}
404Not found. Counts as a request.
{
"error": "Ad not found",
"code": "not_found"
}
429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
{
"error": "Request quota reached: your workspace has used 10,000 of 10,000 requests this billing period. It resets on Dec 14, 2026 (UTC). Upgrade to Scale for 50,000 requests per period: https://app.ad-radar.dev/checkout?plan=api-scale",
"code": "quota_exceeded",
"reason": "api_quota",
"plan": "builder",
"limit": 10000,
"used": 10000,
"remaining": 0,
"resetsAt": "2026-12-14T09:30:00.000Z",
"retryAfter": 2246400,
"upgradeUrl": "https://app.ad-radar.dev/checkout?plan=api-scale"
}
500Our side failed. The request is refunded.
{
"error": "Something went wrong. Please try again.",
"errorId": "a1b2c3d4"
}
05Ads
Search, winners and lookups. Every endpoint returns the same Ad object.
Search ads
GET/ads/search
Searches the library with the same filters as the Ad Radar board. Cursor pagination. Every result is the full Ad object.
| Parameter | Type | Description |
|---|---|---|
q query |
string | Free text over headline, body, brand name and transcript. |
brand query |
string | Only ads of this brand: id or slug from GET /brands. |
format query |
string | Creative type, one or more comma separated. |
tier query |
string | winner = top 10% by score and running 21+ days; rising = growing fast. One of winner, rising. |
tags query |
string | Taxonomy filters as dimension:value pairs from GET /taxonomy, comma separated. Different dimensions are ANDed, values of the same dimension ORed. |
category query |
string | Brand category slugs from GET /taxonomy, comma separated. |
country query |
string | Not available yet: returns 400 unsupported_filter. The library tracks ads across every country of the Meta Ad Library; per-ad delivery countries aren't collected. |
active query |
string | true = running, false = stopped, all = both. Default: all. One of true, false, all. Default all. |
started_after query |
string (date) | Ads that started on or after this day. |
started_before query |
string (date) | Ads that started on or before this day. |
min_spend query |
integer | Minimum estimated spend in US dollars. |
sort query |
string | score (default), spend, rpd (engagement per day), days (days running), recent (newest in the library), started (start date). One of score, spend, rpd, days, recent, started. Default score. |
order query |
string | One of desc, asc. Default desc. |
limit query |
integer | Results per page, up to 100. Higher values are capped (the response says so in notice). Default 25. From 1 to 100. |
cursor query |
string | pagination.nextCursor from the previous page. Only valid with the same filters. |
Request
curl "https://app.ad-radar.dev/api/v1/ads/search?q=skillet&brand=hearth-and-field&format=video&tags=awareness:problem-aware,hook_pattern:before-after&category=kitchen&started_after=2026-09-01&min_spend=100000" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json · abridged
{
"data": [
{
"adKey": "meta:1204518837711490",
"libraryId": "1204518837711490",
"brand": "Hearth & Field",
"pageId": "104218839201744",
"headline": "The cast-iron skillet that replaced my whole pan drawer",
"body": "Pre-seasoned, oven-safe to 500°F and made to outlive you. Free shipping this week.",
"cta": "Shop Now",
"transcript": "I used to own nine pans. Now I own one. Here's why...",
"translatedFrom": null,
"transcriptOriginal": null,
"original": null,
"startedAt": "2026-08-27",
"isActive": true,
"spendEstimate": 184205,
"spendLowerBound": false,
"winnerObservation": {
"firstObservedAt": "2026-09-30T07:00:00.000Z",
"lastBelowAt": null,
"interpretation": "already_winner_when_first_observed"
},
"delivery": {
"key": "running",
"en": "Running · checked Nov 17, 2026",
"date": "2026-11-17T07:00:00.000Z"
},
"tags": [
{
"dimension": "awareness",
"slug": "problem-aware",
"label": "Problem-Aware"
},
{
"dimension": "hook_pattern",
"slug": "before-after",
"label": "Before / After"
}
],
"publisherPlatforms": [
"facebook",
"instagram"
],
"destinationDomain": "hearthandfield.example",
"metrics": {
"score": 12.84,
"tier": "winner",
"isFire": true,
"lowData": false,
"reactions": 9403,
"daysRunning": 83,
"variants": 6,
"capturedAt": "2026-11-17T07:00:00.000Z"
},
"media": {
"kind": "video",
"poster": "https://app.ad-radar.dev/api/media/radar-posters/3f1c…e9.jpg",
"video": "https://app.ad-radar.dev/api/media/radar-videos/8a02…41.mp4",
"durationS": 41
},
"links": {
"radar": "https://app.ad-radar.dev/a/meta%3A1204518837711490",
"library": "https://www.facebook.com/ads/library/?id=1204518837711490",
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"post": null,
"landing": "https://hearthandfield.example/skillet"
},
"snapshotAt": "2026-11-18T09:12:44.103Z"
}
],
"pagination": {
"limit": 25,
"hasMore": true,
"nextCursor": "c1.v8Yb3k…"
},
"total": 412
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 404The brand in
branddoesn't exist. - 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
Get ads by key
GET/ads
Up to 100 ads in one call, by adKey, bare id or Meta Ad Library id.
| Parameter | Type | Description |
|---|---|---|
keys required query |
string | Comma separated keys, at most 100. |
Request
curl "https://app.ad-radar.dev/api/v1/ads?keys=meta:1204518837711490,meta:1309917716620031" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json · abridged
{
"ads": {
"meta:1204518837711490": {
"adKey": "meta:1204518837711490",
"libraryId": "1204518837711490",
"brand": "Hearth & Field",
"pageId": "104218839201744",
"headline": "The cast-iron skillet that replaced my whole pan drawer",
"body": "Pre-seasoned, oven-safe to 500°F and made to outlive you. Free shipping this week.",
"cta": "Shop Now",
"transcript": "I used to own nine pans. Now I own one. Here's why...",
"translatedFrom": null,
"transcriptOriginal": null,
"original": null,
"startedAt": "2026-08-27",
"isActive": true,
"spendEstimate": 184205,
"spendLowerBound": false,
"winnerObservation": {
"firstObservedAt": "2026-09-30T07:00:00.000Z",
"lastBelowAt": null,
"interpretation": "already_winner_when_first_observed"
},
"delivery": {
"key": "running",
"en": "Running · checked Nov 17, 2026",
"date": "2026-11-17T07:00:00.000Z"
},
"tags": [
{
"dimension": "awareness",
"slug": "problem-aware",
"label": "Problem-Aware"
},
{
"dimension": "hook_pattern",
"slug": "before-after",
"label": "Before / After"
}
],
"publisherPlatforms": [
"facebook",
"instagram"
],
"destinationDomain": "hearthandfield.example",
"metrics": {
"score": 12.84,
"tier": "winner",
"isFire": true,
"lowData": false,
"reactions": 9403,
"daysRunning": 83,
"variants": 6,
"capturedAt": "2026-11-17T07:00:00.000Z"
},
"media": {
"kind": "video",
"poster": "https://app.ad-radar.dev/api/media/radar-posters/3f1c…e9.jpg",
"video": "https://app.ad-radar.dev/api/media/radar-videos/8a02…41.mp4",
"durationS": 41
},
"links": {
"radar": "https://app.ad-radar.dev/a/meta%3A1204518837711490",
"library": "https://www.facebook.com/ads/library/?id=1204518837711490",
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"post": null,
"landing": "https://hearthandfield.example/skillet"
},
"snapshotAt": "2026-11-18T09:12:44.103Z"
}
},
"missing": [
"meta:1309917716620031"
]
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
Get one ad
GET/ads/{key}
| Parameter | Type | Description |
|---|---|---|
key required path |
string | adKey (meta:<id>), bare id or Meta Ad Library id. |
Request
curl "https://app.ad-radar.dev/api/v1/ads/meta:1204518837711490" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json · abridged
{
"adKey": "meta:1204518837711490",
"libraryId": "1204518837711490",
"brand": "Hearth & Field",
"pageId": "104218839201744",
"headline": "The cast-iron skillet that replaced my whole pan drawer",
"body": "Pre-seasoned, oven-safe to 500°F and made to outlive you. Free shipping this week.",
"cta": "Shop Now",
"transcript": "I used to own nine pans. Now I own one. Here's why...",
"translatedFrom": null,
"transcriptOriginal": null,
"original": null,
"startedAt": "2026-08-27",
"isActive": true,
"spendEstimate": 184205,
"spendLowerBound": false,
"winnerObservation": {
"firstObservedAt": "2026-09-30T07:00:00.000Z",
"lastBelowAt": null,
"interpretation": "already_winner_when_first_observed"
},
"delivery": {
"key": "running",
"en": "Running · checked Nov 17, 2026",
"date": "2026-11-17T07:00:00.000Z"
},
"tags": [
{
"dimension": "awareness",
"slug": "problem-aware",
"label": "Problem-Aware"
},
{
"dimension": "hook_pattern",
"slug": "before-after",
"label": "Before / After"
}
],
"publisherPlatforms": [
"facebook",
"instagram"
],
"destinationDomain": "hearthandfield.example",
"metrics": {
"score": 12.84,
"tier": "winner",
"isFire": true,
"lowData": false,
"reactions": 9403,
"daysRunning": 83,
"variants": 6,
"capturedAt": "2026-11-17T07:00:00.000Z"
},
"media": {
"kind": "video",
"poster": "https://app.ad-radar.dev/api/media/radar-posters/3f1c…e9.jpg",
"video": "https://app.ad-radar.dev/api/media/radar-videos/8a02…41.mp4",
"durationS": 41
},
"links": {
"radar": "https://app.ad-radar.dev/a/meta%3A1204518837711490",
"library": "https://www.facebook.com/ads/library/?id=1204518837711490",
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"post": null,
"landing": "https://hearthandfield.example/skillet"
},
"snapshotAt": "2026-11-18T09:12:44.103Z"
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 404Not found. Counts as a request.
- 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
Current winners
GET/winners
Ads in the winner tier now (top 10% by score, running 21+ days), active by default. since returns only the ads that entered the winner tier after that moment (tiers are recomputed daily).
| Parameter | Type | Description |
|---|---|---|
since query |
string | Date (2026-11-01) or ISO 8601 timestamp. |
q query |
string | Free text over headline, body, brand name and transcript. |
brand query |
string | Only ads of this brand: id or slug from GET /brands. |
format query |
string | Creative type, one or more comma separated. |
tags query |
string | Taxonomy filters as dimension:value pairs from GET /taxonomy, comma separated. Different dimensions are ANDed, values of the same dimension ORed. |
category query |
string | Brand category slugs from GET /taxonomy, comma separated. |
active query |
string | true = running, false = stopped, all = both. Default: true. One of true, false, all. Default true. |
started_after query |
string (date) | Ads that started on or after this day. |
started_before query |
string (date) | Ads that started on or before this day. |
min_spend query |
integer | Minimum estimated spend in US dollars. |
sort query |
string | score (default), spend, rpd (engagement per day), days (days running), recent (newest in the library), started (start date). One of score, spend, rpd, days, recent, started. Default score. |
order query |
string | One of desc, asc. Default desc. |
limit query |
integer | Results per page, up to 100. Higher values are capped (the response says so in notice). Default 25. From 1 to 100. |
cursor query |
string | pagination.nextCursor from the previous page. Only valid with the same filters. |
Request
curl "https://app.ad-radar.dev/api/v1/winners?since=2026-11-11&q=skillet&brand=hearth-and-field&format=video&tags=awareness:problem-aware,hook_pattern:before-after&category=kitchen&started_after=2026-09-01&min_spend=100000" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json · abridged
{
"data": [
{
"adKey": "meta:1204518837711490",
"libraryId": "1204518837711490",
"brand": "Hearth & Field",
"pageId": "104218839201744",
"headline": "The cast-iron skillet that replaced my whole pan drawer",
"body": "Pre-seasoned, oven-safe to 500°F and made to outlive you. Free shipping this week.",
"cta": "Shop Now",
"transcript": "I used to own nine pans. Now I own one. Here's why...",
"translatedFrom": null,
"transcriptOriginal": null,
"original": null,
"startedAt": "2026-08-27",
"isActive": true,
"spendEstimate": 184205,
"spendLowerBound": false,
"winnerObservation": {
"firstObservedAt": "2026-09-30T07:00:00.000Z",
"lastBelowAt": null,
"interpretation": "already_winner_when_first_observed"
},
"delivery": {
"key": "running",
"en": "Running · checked Nov 17, 2026",
"date": "2026-11-17T07:00:00.000Z"
},
"tags": [
{
"dimension": "awareness",
"slug": "problem-aware",
"label": "Problem-Aware"
},
{
"dimension": "hook_pattern",
"slug": "before-after",
"label": "Before / After"
}
],
"publisherPlatforms": [
"facebook",
"instagram"
],
"destinationDomain": "hearthandfield.example",
"metrics": {
"score": 12.84,
"tier": "winner",
"isFire": true,
"lowData": false,
"reactions": 9403,
"daysRunning": 83,
"variants": 6,
"capturedAt": "2026-11-17T07:00:00.000Z"
},
"media": {
"kind": "video",
"poster": "https://app.ad-radar.dev/api/media/radar-posters/3f1c…e9.jpg",
"video": "https://app.ad-radar.dev/api/media/radar-videos/8a02…41.mp4",
"durationS": 41
},
"links": {
"radar": "https://app.ad-radar.dev/a/meta%3A1204518837711490",
"library": "https://www.facebook.com/ads/library/?id=1204518837711490",
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"post": null,
"landing": "https://hearthandfield.example/skillet"
},
"snapshotAt": "2026-11-18T09:12:44.103Z"
}
],
"pagination": {
"limit": 25,
"hasMore": true,
"nextCursor": "c1.v8Yb3k…"
},
"total": 96
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
06Brands
Advertisers with counts, active ads, spend estimate and trends.
List brands
GET/brands
| Parameter | Type | Description |
|---|---|---|
q query |
string | Name, slug, domain or Facebook page id. |
category query |
string | Brand category slugs from GET /taxonomy, comma separated. |
sort query |
string | active_ads, winners (active winners), newest (newest brands by first ad), recent (latest launch). One of active_ads, winners, newest, recent. Default active_ads. |
limit query |
integer | Results per page, up to 100. Higher values are capped (the response says so in notice). Default 25. From 1 to 100. |
cursor query |
string | pagination.nextCursor from the previous page. Only valid with the same filters. |
Request
curl "https://app.ad-radar.dev/api/v1/brands?category=kitchen" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json · abridged
{
"data": [
{
"id": 4182,
"slug": "hearth-and-field",
"name": "Hearth & Field",
"pageId": "104218839201744",
"domain": "hearthandfield.example",
"categories": [
"home",
"kitchen"
],
"activeAds": 37,
"activeWinners": 4,
"ads": 52,
"spendEstimate": 2410350,
"lastSeenAt": "2026-11-17T07:00:00.000Z",
"lastLaunchAt": "2026-11-12",
"activeAdsTrend": [
31,
31,
32,
34,
33,
35,
37
],
"links": {
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"radar": "https://app.ad-radar.dev/brands/hearth-and-field"
}
}
],
"pagination": {
"limit": 25,
"hasMore": true,
"nextCursor": "c1.Qm9y…"
},
"total": 811
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
Get one brand
GET/brands/{id}
| Parameter | Type | Description |
|---|---|---|
id required path |
string | Brand id or slug. |
Request
curl "https://app.ad-radar.dev/api/v1/brands/hearth-and-field" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json
{
"id": 4182,
"slug": "hearth-and-field",
"name": "Hearth & Field",
"pageId": "104218839201744",
"domain": "hearthandfield.example",
"categories": [
"home",
"kitchen"
],
"ads": 52,
"spendEstimate": 2410350,
"lastSeenAt": "2026-11-17T07:00:00.000Z",
"links": {
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"radar": "https://app.ad-radar.dev/brands/hearth-and-field"
},
"stats": {
"activeAds": 37,
"activeWinners": 4,
"totalAds": 52,
"medianDaysRunning": 46,
"newAds7d": 3,
"newAds30d": 11
},
"activeAdsTrend": [
{
"date": "2026-11-16",
"active": 36,
"added": 2,
"removed": 1
},
{
"date": "2026-11-17",
"active": 37,
"added": 1,
"removed": 0
}
],
"spendTrend": [
{
"weekStart": "2026-11-03",
"spendEstimate": 2190400
},
{
"weekStart": "2026-11-10",
"spendEstimate": 2410350
}
]
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 404Not found. Counts as a request.
- 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
Hooks, mechanisms and angles of a brand
GET/brands/{id}/hooks
The same data as the MCP tool advertiser_hooks.
| Parameter | Type | Description |
|---|---|---|
id required path |
string | Brand id or slug. |
Request
curl "https://app.ad-radar.dev/api/v1/brands/hearth-and-field/hooks" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json
{
"brand": {
"id": 4182,
"slug": "hearth-and-field",
"name": "Hearth & Field"
},
"hooks": [
{
"dimension": "hook_pattern",
"slug": "before-after",
"label": "Before / After",
"ads": 14
},
{
"dimension": "angle",
"slug": "durability",
"label": "Durability",
"ads": 9
}
]
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 404Not found. Counts as a request.
- 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
07Insights
Winning patterns across the library.
Winning patterns
GET/patterns
For each taxonomy value, how many times more often it appears among winners than on average (lift), with adoption and example ads. Same data as the MCP tool winning_patterns.
| Parameter | Type | Description |
|---|---|---|
format query |
string | One of all, video, image. Default all. |
Request
curl "https://app.ad-radar.dev/api/v1/patterns" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json
{
"format": "all",
"baseline": {
"eligible": 2104,
"winners": 210,
"winnerRate": 0.0998
},
"doThis": [
{
"dimension": "hook_pattern",
"value": "before-after",
"label": "Before / After",
"lift": 2.41,
"winnerRate": 0.24,
"ads": 58,
"advertisers": 31,
"exampleAdKeys": [
"meta:1204518837711490"
]
}
],
"lower": []
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
08Sync
Keep a local copy in sync: incremental feed (Scale) and full export (Reseller).
Incremental feed
GET/feedScale and Reseller
Everything new or changed since a cursor (new ads, new measurements, tier changes, delivery changes), ordered by change time, to keep a local copy in sync. Without since it starts from the beginning (your first full sync). The response always has nextCursor: store it and pass it as since next time. Ads that leave the library aren't announced. Scale and Reseller plans.
| Parameter | Type | Description |
|---|---|---|
since query |
string | nextCursor from the previous response, or an ISO 8601 date/time to start from. |
limit query |
integer | Results per page, up to 100. Higher values are capped (the response says so in notice). Default 100. From 1 to 100. |
Request
curl "https://app.ad-radar.dev/api/v1/feed" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json · abridged
{
"data": [
{
"changedAt": "2026-11-17T07:00:00.000Z",
"ad": {
"adKey": "meta:1204518837711490",
"libraryId": "1204518837711490",
"brand": "Hearth & Field",
"pageId": "104218839201744",
"headline": "The cast-iron skillet that replaced my whole pan drawer",
"body": "Pre-seasoned, oven-safe to 500°F and made to outlive you. Free shipping this week.",
"cta": "Shop Now",
"transcript": "I used to own nine pans. Now I own one. Here's why...",
"translatedFrom": null,
"transcriptOriginal": null,
"original": null,
"startedAt": "2026-08-27",
"isActive": true,
"spendEstimate": 184205,
"spendLowerBound": false,
"winnerObservation": {
"firstObservedAt": "2026-09-30T07:00:00.000Z",
"lastBelowAt": null,
"interpretation": "already_winner_when_first_observed"
},
"delivery": {
"key": "running",
"en": "Running · checked Nov 17, 2026",
"date": "2026-11-17T07:00:00.000Z"
},
"tags": [
{
"dimension": "awareness",
"slug": "problem-aware",
"label": "Problem-Aware"
},
{
"dimension": "hook_pattern",
"slug": "before-after",
"label": "Before / After"
}
],
"publisherPlatforms": [
"facebook",
"instagram"
],
"destinationDomain": "hearthandfield.example",
"metrics": {
"score": 12.84,
"tier": "winner",
"isFire": true,
"lowData": false,
"reactions": 9403,
"daysRunning": 83,
"variants": 6,
"capturedAt": "2026-11-17T07:00:00.000Z"
},
"media": {
"kind": "video",
"poster": "https://app.ad-radar.dev/api/media/radar-posters/3f1c…e9.jpg",
"video": "https://app.ad-radar.dev/api/media/radar-videos/8a02…41.mp4",
"durationS": 41
},
"links": {
"radar": "https://app.ad-radar.dev/a/meta%3A1204518837711490",
"library": "https://www.facebook.com/ads/library/?id=1204518837711490",
"libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744",
"post": null,
"landing": "https://hearthandfield.example/skillet"
},
"snapshotAt": "2026-11-18T09:12:44.103Z"
}
}
],
"pagination": {
"limit": 100,
"hasMore": false,
"nextCursor": "c1.ZmVlZ…"
}
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The endpoint needs a higher plan.
- 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
Full export (NDJSON)
GET/exportReseller only
The whole library as NDJSON, streamed: one Ad object per line, then a control line {"type":"end"}. One call counts as one request; at most 4 exports per day per workspace. If the stream stops early the last line is {"type":"error","resumeCursor":…}: pass it as after to resume. Reseller plan.
| Parameter | Type | Description |
|---|---|---|
after query |
string | resumeCursor of an interrupted export. |
format query |
string | One of ndjson. Default ndjson. |
Request
curl "https://app.ad-radar.dev/api/v1/export" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/x-ndjson · abridged
{"adKey": "meta:1204518837711490", "libraryId": "1204518837711490", "brand": "Hearth & Field", "pageId": "104218839201744", "headline": "The cast-iron skillet that replaced my whole pan drawer", "body": "Pre-seasoned, oven-safe to 500°F and made to outlive you. Free shipping this week.", "cta": "Shop Now", "transcript": "I used to own nine pans. Now I own one. Here's why...", "translatedFrom": null, "transcriptOriginal": null, "original": null, "startedAt": "2026-08-27", "isActive": true, "spendEstimate": 184205, "spendLowerBound": false, "winnerObservation": {"firstObservedAt": "2026-09-30T07:00:00.000Z", "lastBelowAt": null, "interpretation": "already_winner_when_first_observed"}, "delivery": {"key": "running", "en": "Running · checked Nov 17, 2026", "date": "2026-11-17T07:00:00.000Z"}, "tags": [{"dimension": "awareness", "slug": "problem-aware", "label": "Problem-Aware"}, {"dimension": "hook_pattern", "slug": "before-after", "label": "Before / After"}], "publisherPlatforms": ["facebook", "instagram"], "destinationDomain": "hearthandfield.example", "metrics": {"score": 12.84, "tier": "winner", "isFire": true, "lowData": false, "reactions": 9403, "daysRunning": 83, "variants": 6, "capturedAt": "2026-11-17T07:00:00.000Z"}, "media": {"kind": "video", "poster": "https://app.ad-radar.dev/api/media/radar-posters/3f1c…e9.jpg", "video": "https://app.ad-radar.dev/api/media/radar-videos/8a02…41.mp4", "durationS": 41}, "links": {"radar": "https://app.ad-radar.dev/a/meta%3A1204518837711490", "library": "https://www.facebook.com/ads/library/?id=1204518837711490", "libraryPage": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=ALL&view_all_page_id=104218839201744", "post": null, "landing": "https://hearthandfield.example/skillet"}, "snapshotAt": "2026-11-18T09:12:44.103Z"}
{"type": "end", "ads": 2288, "total": 2288, "generatedAt": "2026-11-18T09:00:00.000Z", "resumeCursor": null}
- 200NDJSON stream.
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The endpoint needs a higher plan.
- 429Request quota, rate limit, or the daily export limit (
code: export_limit). - 500Our side failed. The request is refunded.
09Account
Your plan, quota and usage.
Plan, quota and usage
GET/meNot counted
Your plan, quota, requests used and left, period end, rate limit and features. Doesn't count as a request, and answers even without a Data API plan (plan: none).
Request
curl "https://app.ad-radar.dev/api/v1/me" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json
{
"plan": "builder",
"planName": "Builder",
"unlimited": false,
"quota": {
"limit": 10000,
"used": 126,
"remaining": 9874,
"window": "period",
"periodStart": "2026-11-16T09:30:00.000Z",
"resetsAt": "2026-12-14T09:30:00.000Z"
},
"rateLimit": {
"perMinute": 60
},
"maxPageSize": 100,
"features": {
"rest": true,
"mcp": true,
"feed": false,
"export": false,
"resale": false,
"whiteLabel": false
},
"subscription": {
"status": "active",
"cancelAtPeriodEnd": false,
"renewsAt": "2026-12-14T09:30:00.000Z"
},
"links": {
"dashboard": "https://app.ad-radar.dev/settings/api",
"docs": "https://ad-radar.dev/docs/api",
"upgrade": "https://app.ad-radar.dev/checkout?plan=api-scale"
},
"tracking": true,
"workspace": {
"name": "Acme Growth"
},
"appAccess": true
}
- 200OK
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 500Our side failed. The request is refunded.
10Reference
Taxonomy and this specification.
Taxonomy and categories
GET/taxonomy
Dimensions and values usable in tags, and brand categories usable in category.
Request
curl "https://app.ad-radar.dev/api/v1/taxonomy" \
-H "Authorization: Bearer $AD_RADAR_KEY"
Response 200 · application/json
{
"dimensions": [
{
"slug": "awareness",
"label": "Awareness level",
"multiValue": false,
"description": "How aware of the problem the ad assumes the viewer is.",
"values": [
{
"slug": "problem-aware",
"label": "Problem-Aware"
},
{
"slug": "unaware",
"label": "Unaware"
}
]
}
],
"categories": [
{
"slug": "kitchen",
"brands": 64
}
]
}
- 200OK
- 400Invalid parameter. Validation errors don't count as a request.
- 401Missing, invalid, revoked or expired API key.
- 403The key can't be used here: no Data API plan (
plan_required, nothing is counted), wrong scope, or the account is no longer active. - 429Rate limit (per minute) or request quota reached. Never a silently shortened list: the body says which limit and how to raise it.
- 500Our side failed. The request is refunded.
This specification
GET/openapi.jsonNot countedNo key needed
The OpenAPI 3.1 document of the Data API. Public, no key needed.
Request
curl "https://app.ad-radar.dev/api/v1/openapi.json"
Response 200 · application/json
{}
- 200OpenAPI document.