The short answer
A useful competitor ad tracker answers four questions each week: how many ads a rival is running, what it launched, which ads just became winners, and whether its hooks changed. On the Ad Radar Data API that is three requests per competitor per run (/brands/{id}, /winners?since=, /brands/{id}/hooks), and the Node script below does it in about 100 lines. Building the same tracker on scrapers means months of Page ID mapping, daily snapshots, transcription and tagging before the first useful report.
In this article10 sections
What a competitor ad tracker should tell you
A competitor ad tracker is only worth building if it tells you something you would not see by scrolling the Meta Ad Library once a month. The library will show you every ad a rival is running. It will not tell you which of those ads are working, what changed since last week, or which hook they suddenly started repeating. Those are the questions that change your next brief.
So before any code, decide what the tracker reports. Four things, per competitor, per week:
| Question | Signal | Why it matters |
|---|---|---|
| Are they spending more or less? | Active ads now vs a week ago, estimated spend trend | A rising count usually means a push: a launch, a season, a new offer |
| What did they launch? | New ads in the last 7 and 30 days, date of the newest | Bursts of launches mark tests and new angles |
| What is working for them? | Ads that just entered the winner tier | The ads they will keep scaling, and the ones worth studying |
| Did their message change? | Hook patterns, mechanisms and angles, compared with last week | A new hook appearing across several ads is a strategy shift |
Movement matters more than inventory. "Brand X has 40 active ads" is trivia. "Brand X launched 11 ads this week, two older ads just became winners, and before/after hooks went from 3 ads to 9" is a brief.
How to see competitor ads by hand
For one brand, once, the manual route is fine. Open the Meta Ad Library, pick a country and All ads, then search the brand name. You can also open the brand's Facebook Page, scroll to Page transparency and follow the link to its ads. You get every active ad with its start date, copy and creative.
What you do not get, for commercial ads, is any sign of performance. Meta publishes spend only for political and social issue ads, so a test that launched yesterday sits next to the brand's biggest ad of the year, and they look identical. You also lose everything that stops running: outside the EU, an ad leaves the library when it stops. Our guide to finding winning Facebook ads shows how to read the library's indirect signals by hand. A tracker is what you build when doing that every week stops being reasonable.
Option A: build it on scrapers
This is the route most first trackers take, and where most of them stall. To track competitors from the raw library you need:
- Page ID mapping. Brands advertise from several Pages: the main brand, founders, creators, partnerships. A name search picks the wrong one often enough to ruin a report. Someone maps every competitor to all its Page IDs, by hand, and keeps the list current.
- A daily scrape. Meta's official
ads_archiveAPI returns commercial ads only if they delivered in the EU, so a US competitor never comes back. That leaves a scraper: Apify's Facebook Ads Scraper at $5.80 per 1,000 ads on its free plan and $3.40 on Business (checked November 2026), or a per-request API. - A snapshot table. "New this week" and "active vs last week" only exist if you stored last week. History starts the day you start, and nothing you buy later brings back the ads you did not record.
- A performance model. Without spend, you need your own score from engagement, days running and variants, and a rule for what counts as a winner.
- Transcripts and tags. Hooks live in the first seconds of a video. Detecting "their hooks changed" means downloading every video before its signed Meta URL expires, transcribing it, and tagging it against a fixed vocabulary with an LLM.
- Maintenance. Scrapers read a page built for people, and the page changes without notice. Each break is a hole in your snapshots.
That is not an afternoon. It is the core of an ad intelligence product, and our ad spy tool architecture guide breaks down the months it takes. A tracker is the report on top. You want to write the report, not the pipeline.
Option B: build it on the Ad Radar Data API
The Ad Radar Facebook ads API already does steps 1 to 6. It serves Meta ads (Facebook and Instagram) with $50k+ estimated spend, built from the public Meta Ad Library and refreshed daily, with each brand's activity history, each ad's score, tier, transcript and tags on ten dimensions. The tracker becomes three calls per competitor:
| Endpoint | What it gives the tracker |
|---|---|
GET / | Resolves a name, slug, domain or Facebook Page id to a brand id (once, then cache it) |
GET / | stats (active ads, active winners, new ads in 7 and 30 days, median days running), a daily activeAdsTrend for 90 days with ads added and removed, and a weekly spendTrend for 12 weeks |
GET / | Only that brand's ads that entered the winner tier since your last run |
GET / | The hook patterns, hook mechanisms and angles the brand uses most, with ad counts |
2,761
Meta ads with $50k+ estimated spend
782
brands with daily history
3
requests per competitor per run
~100
lines of code
Authentication is a Bearer key, responses are JSON, lists use cursor pagination with up to 100 results per page. The full reference is in the API docs.
The tracker, in one file
Node 18 or later, no dependencies. It reads a list of competitors, resolves them once, pulls the three endpoints for each, compares the hook mix with the previous run, posts a digest to Slack, and saves its state to a JSON file.
// tracker.mjs
// run: AD_RADAR_KEY=... SLACK_WEBHOOK=https://hooks.slack.com/... node tracker.mjs
import { readFile, writeFile } from "node:fs/promises";
const BASE = "https://app.ad-radar.dev/api/v1";
const COMPETITORS = ["competitor-one.com", "Competitor Two", "1042188392017"]; // name, domain or Page id
const STATE_FILE = "./tracker-state.json";
async function get(path, params = {}) {
const url = new URL(BASE + path);
for (const [k, v] of Object.entries(params)) if (v != null) url.searchParams.set(k, String(v));
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.AD_RADAR_KEY}` } });
const body = await res.json();
if (!res.ok) throw new Error(`${path}: ${res.status} ${body.error}`);
return body;
}
const usd = (n) => "$" + Math.round(n ?? 0).toLocaleString("en-US");
const state = JSON.parse(await readFile(STATE_FILE, "utf8").catch(() => "{}"));
state.ids ??= {};
state.hooks ??= {};
const since = state.lastRun ?? new Date(Date.now() - 7 * 864e5).toISOString();
const lines = [`*Competitor ad tracker* since ${since.slice(0, 10)}`];
for (const name of COMPETITORS) {
// 1. resolve once, then reuse the id
if (!state.ids[name]) {
const found = await get("/brands", { q: name, limit: 1 });
if (!found.data.length) { lines.push(`\n*${name}*: not tracked yet`); continue; }
state.ids[name] = found.data[0].id;
}
const id = state.ids[name];
// 2. activity: active ads now vs 7 days ago, launches, spend trend
const brand = await get(`/brands/${id}`);
const trend = brand.activeAdsTrend;
const now = trend.at(-1)?.active ?? brand.stats.activeAds;
const weekAgo = trend.at(-8)?.active ?? now;
const weeks = brand.spendTrend;
const spendDelta = weeks.length > 1 ? weeks.at(-1).spendEstimate - weeks.at(-2).spendEstimate : 0;
// 3. ads that entered the winner tier since the last run
const winners = await get("/winners", { brand: id, since, limit: 100, sort: "spend" });
// 4. hook mix, compared with last run
const { hooks } = await get(`/brands/${id}/hooks`);
const before = state.hooks[id] ?? {};
const moved = hooks
.map((h) => ({ ...h, prev: before[`${h.dimension}:${h.slug}`] ?? 0 }))
.filter((h) => h.ads - h.prev >= 2)
.map((h) => `${h.label} ${h.prev} → ${h.ads}`);
state.hooks[id] = Object.fromEntries(hooks.map((h) => [`${h.dimension}:${h.slug}`, h.ads]));
lines.push(
`\n*${brand.name}*: ${now} active ads (${now - weekAgo >= 0 ? "+" : ""}${now - weekAgo} vs last week), ` +
`${brand.stats.newAds7d} new in 7 days, ${brand.stats.activeWinners} active winners, ` +
`weekly est. spend ${spendDelta >= 0 ? "+" : "-"}${usd(Math.abs(spendDelta))}`
);
if (moved.length) lines.push(` Hooks moving: ${moved.join(", ")}`);
for (const ad of winners.data.slice(0, 5)) {
const opener = (ad.transcript || ad.body || ad.headline || "").split(/(?<=[.!?])\s/)[0].slice(0, 120);
lines.push(` New winner: "${opener}" · ${usd(ad.spendEstimate)} est. · ${ad.metrics.daysRunning} days · ${ad.metrics.variants} variants · ${ad.links.radar}`);
}
}
const text = lines.join("\n");
console.log(text);
if (process.env.SLACK_WEBHOOK) {
await fetch(process.env.SLACK_WEBHOOK, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text }),
});
}
state.lastRun = new Date().toISOString();
await writeFile(STATE_FILE, JSON.stringify(state, null, 2));
What each part does:
- Resolve once.
/brands?q=accepts a name, slug, domain or Facebook Page id. The id goes into the state file, so later runs skip the lookup and spend three requests per competitor, not four. - Activity.
activeAdsTrendon the brand detail is daily for the last 90 days, withactive,addedandremovedper day, so "vs last week" is just the 8th entry from the end.stats.newAds7dandnewAds30dare precomputed.spendTrendis weekly for 12 weeks: the difference between the last two weeks shows whether the brand's estimated spend is accelerating. - New winners.
sincereturns only ads that entered the winner tier (top 10% by score, running 21+ days) after that moment. Passing the last run's timestamp means each winner shows up in exactly one report. - Hook changes.
/brands/{id}/hooksreturns the brand's most used hook patterns, hook mechanisms and angles with ad counts. Storing last run's counts turns that into a diff: a hook that jumps by two or more ads gets flagged. - The opener. Video ads carry the full
transcript, so the first sentence of the script is the actual hook, not the caption.
A report line looks like this:
*Competitor Two*: 46 active ads (+9 vs last week), 11 new in 7 days, 5 active winners, weekly est. spend +$212,400
Hooks moving: Before / After 3 → 9
New winner: "I used to own nine pans." · $184,205 est. · 83 days · 6 variants · https://app.ad-radar.dev/a/meta%3A...
Run it every Monday
Cron on any machine:
0 8 * * 1 cd ~/tracker && AD_RADAR_KEY=... SLACK_WEBHOOK=... node tracker.mjs >> tracker.log 2>&1
Or GitHub Actions, with the key and webhook stored as repository secrets and the state file committed back after each run:
name: competitor-ad-tracker
on:
schedule: [{ cron: "0 8 * * 1" }]
workflow_dispatch:
permissions:
contents: write
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }
- run: node tracker.mjs
env:
AD_RADAR_KEY: ${{ secrets.AD_RADAR_KEY }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- run: |
git config user.name tracker-bot
git config user.email tracker-bot@users.noreply.github.com
git add tracker-state.json && git commit -m "tracker state" || true
git push
If you prefer a visual builder, the same three calls fit in an n8n workflow: our n8n Facebook Ads Library workflow shows the HTTP Request, pagination and Slack setup.
Extensions worth the extra hour
- Daily for your closest rivals. Run a second copy every morning with only three or four brands. Tiers are recomputed once a day, so daily is the useful maximum.
- Newcomer radar. Call
/brandswithcategory=<your category>andsort=recent(latest launch) orsort=newest(newest brands) to catch brands that just entered your space, before they are on your list. Category slugs come fromGET /taxonomy. - Keyword watch.
/ads/search?q=<your product word>&tier=winner&started_after=<last week>searches headline, body and transcript, so you see any brand that starts talking about your category, tracked or not. - Pattern context.
/patternstells you which tag values reach the winner tier more often than the baseline. When a competitor's hook shift lines up with a high-lift pattern, it deserves a test of your own. - A dashboard. The same JSON feeds a small web page: one card per competitor, the 90-day active ads sparkline from
activeAdsTrend, the latest winners with theirmedia.posterthumbnails. Posters and videos are public URLs served by Ad Radar, not expiring Meta links, so nothing breaks next week. - An AI summary. Pipe the report into Claude with "what changed in this market and what should we test" and you have a weekly memo. Or skip the script and connect the MCP server with the same key; our competitor ad monitoring guide has a digest prompt for it.
What it costs
One HTTP call is one request. Twenty competitors on a weekly run is about 60 requests; four rivals daily adds about 340 per 4-week period. Even with extensions, a tracker uses a small share of the Builder plan's quota, which leaves room for search, alerts and agents on the same key.
| Plan | Price, every 4 weeks | Requests | What you can do |
|---|---|---|---|
| Builder | $299 | 10,000 | Trackers, alerts, dashboards, use inside your product (no raw redistribution); includes the web app |
| Scale | $799 | 50,000 | Builder plus /feed to mirror every change into your own database, higher rate limit |
| Reseller | From $2,000 | Custom | Full export, resale, white-label |
Over quota you get a 429 with an upgrade link, never an overage charge, and X-Quota-Remaining on every response tells you where you stand. Full plan details are on the pricing section.
Not a developer?
You do not need the script. The Ad Radar web app, included with Builder, shows the same brands with their active ad trends, winners, hooks and transcripts, ready to browse and filter. The API is for teams that want the tracker inside their own Slack, sheet or product.
The fastest way to a tracker that tells you something
A competitor ad tracker built on the raw library spends its first months collecting history and its next months fixing scrapers. Built on data that is already ranked, transcribed and tagged, it is an afternoon of code and a Monday message your team actually reads. Start on Builder, drop your competitors into COMPETITORS, and run the script: the first report shows who is pushing, what they launched, which ads just won, and which hooks they are betting on.
Figures marked as estimated spend come from Ad Radar's model of engagement on public Meta Ad Library ads. They are estimates, labeled as such, and are best used to rank ads against each other. How the board is built.