Tools / Ad libraries / API
Send query, platform and limit to ads.search and get back public ads as JSON: advertiser, headline, text, format, start date, a library link and a preview URL. Switch platform from meta to google and the record stays the same, so one parser covers both. RouterGrowth is independent of Meta and Google; this is not their official API.
Ask your agent
Call the ad library API for robot vacuum on Meta, then list the advertisers and the format each one uses.
Connect RouterGrowth once, then ask in plain words. New workspaces start with $1 of credit. Get a key or read the setup guide.
A real run
One call to ads.search (competitor ad creatives), run through RouterGrowth on November 2, 2026. These are the first rows it returned; fields that name a person are masked.
| advertiser | headline | text | format | started |
|---|---|---|---|---|
| Dyson | Dyson R3 Nurovi Spot+Scrub™ UV robot vacuum | The robot's UV light reveals what you can’t see, before cleaning with forensic precision. | DCO | 2026-09-30 |
| House Beautiful | This Dyson Robot Vacuum is 60% Off on Amazon Right Now | You can save hundreds. | IMAGE | 2025-11-17 |
| Tiron World | Tiron World | 🏠 Smart Cleaning Starts Here! Looking for the perfect cleaning solution for your home? Whether you need a Robot Vacuum, Wet & Dry Vacuum… | CAROUSEL | 2026-07-14 |
A keyword search for robot vacuum on Meta returned five ads from four advertisers, including a magazine's affiliate ad and two ads not in English; match came back as keyword.
Step by step
Create a RouterGrowth key and send it as a Bearer header to the run endpoint, or add the MCP server to your agent.
On meta, query is a keyword, an advertiser name or a Facebook page URL. On google, query is the advertiser's domain or an Ads Transparency Center URL.
Each item has advertiser, headline, text, url, started_at, format and preview_url, whichever platform answered.
Meta results carry match: advertiser when the ads come from an advertiser named like the query, keyword otherwise.
Price
List prices on Meta Ad Library, read from the catalog when this page was built. The exact figure is quoted before every run, and a monthly plan lowers it.
In practice
You describe the job; the agent picks the calls, shows the price and runs them.
Call the ad library API for robot vacuum on Meta, then list the advertisers and the format each one uses.
Pull ads for this domain from Google and for the same brand's Facebook page from Meta, and put both in one table with a platform column.
Take the advertisers from this ad search and add the size and industry of each.
Connect
One MCP server for Claude, ChatGPT, Claude Code, Codex and Cursor, or the same call over the CLI and REST with the input above.
claude mcp add --transport http routergrowth https://api.routergrowth.com/mcp
npm install -g routergrowth && routergrowth setup
routergrowth run -c ads.search -i '{"query": "robot vacuum", "platform": "meta", "limit": 5}'curl -X POST https://api.routergrowth.com/v1/run \
-H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
-d '{"capability": "ads.search", "input": {"query": "robot vacuum", "platform": "meta", "limit": 5}}'Worth knowing
The output has one shape, but Google reads a domain and Meta reads a keyword, a name or a page URL. A keyword sent to Google is not what the input expects.
The records describe the creative and its start date. They hold no spend, reach or conversion figures.
preview_url points at a file on the platform's servers. Store a copy of anything you want to keep.
FAQ
No. RouterGrowth is an independent service that returns public ad library data. You use a RouterGrowth key, not an app or a token from Meta or Google.
JSON with an ads array. The run also reports its provider, its duration and what it was charged.
The quote scales with limit and the charge follows the ads returned. A search with no ads is not billed.
The input is query, platform and limit. Filter on started_at or on the text after the call.
More on Ad libraries
Reading this as an agent? This page as markdown: /tools/ad-library/api.md
Connect your agent once. The first calls run on the $1 that comes with signup.