# Let your agent check Google itself, with a cost cap on every look

An agent working on market or SEO questions needs to see who ranks now, not what its training data remembers. seo.serp gives it the live Google results page for a keyword and place as JSON, over MCP, the CLI or REST, with a max_cost on each run. RouterGrowth is independent: this is not Google's API, and the agent never holds a Google key.

HTML page: https://www.routergrowth.com/tools/google-search/api-for-ai-agents
Part of: [Google Search tools](https://www.routergrowth.com/tools/google-search.md)

## The call

[`seo.serp`](https://www.routergrowth.com/catalog/seo.serp): Live Google or Bing results for a keyword and location, with SERP features and AI Overview presence.

Price on this network: $0.0035 per results page. The exact quote is shown before every run.

## What a real run returned

Run on 2026-11-04: 9 records in 7.2 s for $0.0026. Personal fields are masked. Google in Toronto for hr software for small business: nine results with an AI Overview, ads and a video block; vendors and review sites share the page.

| position | domain | title |
|---|---|---|
| 2 | www.agendrix.com | Top 10 HR Software for Small Business in Canada (2026) |
| 4 | www.zoho.com | HR software for small business / Zoho People |
| 8 | goklaim.com | Top HR Software for Small Canadian Businesses |

## How to do it

1. **Connect the agent.** Add the RouterGrowth MCP server, or give the agent the CLI or a key for REST.
2. **Let it find the call.** The agent runs discover and inspect, which give it the input schema and the price before it spends.
3. **Cap each run.** The agent sets max_cost on the run, so a loop of searches has a known ceiling.
4. **Hand it structured results.** It reads results, serp_features and ai_overview_sources as fields, with no HTML to parse.

## Ask it like this

- Check Google in Toronto for hr software for small business, tell me which vendors show up and which are review sites. (`seo.serp`)
- Before you write this comparison page, look up who ranks for our main keyword, read the top three and list what they all cover. (`seo.serp`, `web.scrape`)
- See if an AI Overview shows for our five main keywords, then check whether assistants name us for the same questions. (`seo.serp`, `aeo.mentions`)

## 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 seo.serp -i '{"keyword": "hr software for small business", "location": "Toronto,Ontario,Canada"}'
```

```bash
curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -d '{"capability": "seo.serp", "input": {"keyword": "hr software for small business", "location": "Toronto,Ontario,Canada"}}'
```

## Worth knowing

- **Tell the agent to read domain.** All nine url values in the example were google.com/goto links, and one result had no domain. Have the agent name sites from domain and fetch a page only when it needs it.
- **Results are not filtered for the place.** A city changes the page but not every result: a UK guide appeared for Toronto in the example. The agent should read titles before it reports a local list.
- **Budget for a pause.** The example took 15.1 seconds. An agent can run several searches at once instead of waiting on each.

## Questions

### Does the agent need its own Google credentials?

No. It uses a RouterGrowth key or the MCP connection. RouterGrowth is independent and is not Google's API.

### Which agents can use it?

Any client that speaks MCP, or anything that can run a CLI command or make an HTTP request.

### How do I stop a loop from overspending?

Set max_cost per run, and use a batch with a total cap for a list of keywords. A batch whose inputs times max_cost pass the total cap is not submitted.

### Can the agent open the results?

seo.serp returns snippets only. It can pass a URL to web.scrape to read the page.

## Related

- [Track Google rankings in real time with one SERP call per keyword](https://www.routergrowth.com/tools/google-search/serp-tracker-api.md)
- [Find the position a business website holds for one keyword on Google](https://www.routergrowth.com/tools/google-search/serp-rank-checker.md)
- [See which sites Google shows for a keyword today, in order](https://www.routergrowth.com/tools/google-search/serp-checker.md)
- [See what Google shows UK searchers for a keyword today](https://www.routergrowth.com/tools/google-search/serp-checker-uk.md)
- [A SERP API your agent calls: the live Google results page, as JSON](https://www.routergrowth.com/tools/google-search/serp-api.md)
- [Give Claude, Cursor or Claude Code live Google results over MCP](https://www.routergrowth.com/tools/google-search/serp-api-mcp.md)
- [Check what Google shows for a service keyword searched from a given city](https://www.routergrowth.com/tools/google-search/local-serp-checker.md)
- [Check the Google page for many keywords in one batch](https://www.routergrowth.com/tools/google-search/bulk-serp-checker.md)
- [Check who ranks on Bing for a keyword, position by position](https://www.routergrowth.com/tools/google-search/bing-serp-checker.md)
- [Get a live Google results page for any keyword and country in JSON](https://www.routergrowth.com/tools/google-search/api.md)
- [See which Reddit threads Google ranks for a keyword](https://www.routergrowth.com/tools/google-search/reddit.md)
- [Scrape the Google results page without proxies, CAPTCHAs or parsers](https://www.routergrowth.com/tools/google-search/serp-scraping-api.md)
