# One request shape for the Meta Ad Library and the Google Ads Transparency Center

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.

HTML page: https://www.routergrowth.com/tools/ad-library/api
Part of: [Ad libraries tools](https://www.routergrowth.com/tools/ad-library.md)

## The call

[`ads.search`](https://www.routergrowth.com/catalog/ads.search): Public ad creatives from the Meta Ad Library (advertiser or keyword) or the Google Ads Transparency Center (advertiser domain). On Meta a name is a keyword search: when some ads come from an advertiser named like the query, only those are returned and match is advertiser, otherwise match is keyword. For one advertiser's ads for certain, pass its Facebook page URL.

Price on this network: $0.00875 per search, $0.002 minimum a call. The exact quote is shown before every run.

## What a real run returned

Run on 2026-11-02: 5 records in 23.5 s for $0.05. Personal fields are masked. 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.

| 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 |

## How to do it

1. **Get one key.** Create a RouterGrowth key and send it as a Bearer header to the run endpoint, or add the MCP server to your agent.
2. **Choose the platform.** 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.
3. **Parse result.ads.** Each item has advertiser, headline, text, url, started_at, format and preview_url, whichever platform answered.
4. **Read match on Meta.** Meta results carry match: advertiser when the ads come from an advertiser named like the query, keyword otherwise.

## Ask it like this

- Call the ad library API for robot vacuum on Meta, then list the advertisers and the format each one uses. (`ads.search`)
- 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. (`ads.search`)
- Take the advertisers from this ad search and add the size and industry of each. (`ads.search`, `company.enrich`)

## Connect

MCP server: `https://api.routergrowth.com/mcp`

```bash
claude mcp add --transport http routergrowth https://api.routergrowth.com/mcp
```

```bash
npm install -g routergrowth && routergrowth setup
routergrowth run -c ads.search -i '{"query": "robot vacuum", "platform": "meta", "limit": 5}'
```

```bash
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

- **Same record, different input.** 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.
- **No spend or results data.** The records describe the creative and its start date. They hold no spend, reach or conversion figures.
- **Keep what you need.** preview_url points at a file on the platform's servers. Store a copy of anything you want to keep.

## Questions

### Is this Meta's or Google's official API?

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.

### What does it respond with?

JSON with an ads array. The run also reports its provider, its duration and what it was charged.

### How is a call charged?

The quote scales with limit and the charge follows the ads returned. A search with no ads is not billed.

### Can I filter by country or date?

The input is query, platform and limit. Filter on started_at or on the text after the call.

## Related

- [Search the Meta Ad Library for a keyword and read every ad that comes back](https://www.routergrowth.com/tools/ad-library/facebook-ads-library-search.md)
- [Give your agent a domain and read that advertiser's Google ads as a list](https://www.routergrowth.com/tools/ad-library/google-ads-transparency-tool.md)
- [Query the Ads Transparency Center by advertiser domain and get JSON back](https://www.routergrowth.com/tools/ad-library/google-ads-transparency-api.md)
- [See what a rival is running on Meta by pointing your agent at its Facebook page](https://www.routergrowth.com/tools/ad-library/competitor-ads.md)
- [Turn a rival's ads into a table of offers, angles and formats you can argue with](https://www.routergrowth.com/tools/ad-library/competitor-ads-analysis.md)
- [Pull a brand's Facebook and Instagram ads without running a scraper](https://www.routergrowth.com/tools/ad-library/facebook-ads-library-scraper.md)
- [Query the Meta Ad Library from your code without a Meta developer app](https://www.routergrowth.com/tools/ad-library/facebook-ads-library-api.md)
