---
title: "SEO API for AI Agents: Rank Tracker, Backlinks"
description: "An SEO API for your AI agent: rank tracker on live Google results, backlinks, organic keywords and top pages from Ahrefs. Seven jobs, one real run for $1.5572."
canonical: "https://dev.monid.ai/tutorial/how-to-monid-seo"
---

# Where does my page actually rank?

> An SEO API for your AI agent: rank tracker on live Google results, backlinks, organic keywords and top pages from Ahrefs. Seven jobs, one real run for $1.5572.

- Web page: https://dev.monid.ai/tutorial/how-to-monid-seo
- Tools for this job: [SEO](https://dev.monid.ai/tools/seo.md)

## Set up

Paste this to your agent once. It installs the Monid skill and asks for an API key from app.monid.ai.

```text
set up https://monid.ai/SKILL.md
```

## Jobs

Each job is a sentence to paste into your agent. Replace the parts in angle brackets.

### 1. Who ranks for this keyword

Ask your agent:

```text
use monid to pull the live google results for <keyword> with litescrape, and give me the organic results with their urls. if you want what the ai overview cites, call the dedicated ai-overview endpoint as well: the search response carries the overview text and not one of its links
```

Listed price: $0.00015 per query.

Endpoints for this job:

- [`litescrape /google/search`](https://dev.monid.ai/tools/litescrape.md), $0.00015 (the one this guide ran)
- [`mrscraper /serp/google`](https://dev.monid.ai/tools/mrscraper.md), $0.001
- [`cloro /google/search`](https://dev.monid.ai/tools/cloro.md), $0.008 / 10 results
- [`ahrefs /serp-overview/serp-overview`](https://dev.monid.ai/tools/ahrefs.md), $0.0129 / result

What a real run returned:

- **the page**: nine organic results, HubSpot first and Mailgun second
- **the absence**: neither the subject domain nor its competitor is anywhere in the top nine
- **the overview has no links**: the search response does carry an ai overview block, and on a second keyword it held text, snippets and highlights with zero urls in it; the citations come from a separate endpoint at the same price, which returned nine references
- **ten is not on offer**: asking for ten results returned eight, and asking for a hundred returned the same eight, so write the sentence around what is on the page rather than a count
- **the comparison**: the cheapest paid endpoint that answers this is $0.06 a result, 400x the price

### 2. Is my page where the tool says it is

Ask your agent:

```text
check the live google results for <keyword> with monid and tell me my domain's actual position, then compare it to the position my seo tool reports. read the positions off page one only: asking for the second page renumbers its rows from one, so a domain at 14 reports as 4
```

Listed price: $0.00015 per check.

Endpoints for this job:

- [`litescrape /google/search`](https://dev.monid.ai/tools/litescrape.md), $0.00015 (the one this guide ran)
- [`ahrefs /site-explorer/organic-keywords`](https://dev.monid.ai/tools/ahrefs.md), $0.01548 / result (the one this guide ran)

What a real run returned:

- **the snapshot**: the paid keyword list puts the domain at position 1
- **the live page**: the same day, the results page puts it at position 2, behind another vendor
- **what it cost**: the check that caught it was a hundredth of a cent
- **it can be worse than a gap**: on a second domain the paid report said position 1 and the live page did not contain the domain anywhere in eighteen results; it was on the page, cited inside the ai overview rather than ranked
- **the paging trap**: requesting the second page returns positions numbered one to ten rather than eleven to twenty, so an agent that pages until it finds you will report a number that is ten too small
- **the lesson**: a rank in a paid report is a claim about the past; run the query before you act on it

### 3. What a keyword is worth

Ask your agent:

```text
get the search volume, difficulty and cpc for <keyword> with ahrefs on monid. cpc comes back as integer cents, so divide it by 100 before you quote it
```

Listed price: $0.126 per keyword.

Endpoints for this job:

- [`ahrefs /keywords-explorer/overview`](https://dev.monid.ai/tools/ahrefs.md), $0.02709 / result (the one this guide ran)
- [`ahrefs /keywords-explorer/related-terms`](https://dev.monid.ai/tools/ahrefs.md), $0.01419 / result (the one this guide ran)

What a real run returned:

- **the keyword**: 250 searches a month, difficulty 0, CPC $7.00
- **the read**: difficulty 0 against a $7.00 click is the shape of a keyword worth writing for
- **related terms**: $0.198 for three, and two of them were noise at 1.9M a month
- **the gotcha**: the response says 700 for the CPC, which is cents, not dollars, and the unit appears nowhere in the endpoint's own schema
- **it is one provider's rule**: this divide-by-a-hundred applies to this provider only; another in the same aisle returns decimal dollars as a string, and applying the same rule there under-reports by a hundred times
- **and it disagrees with itself**: on a second keyword two of this provider's own endpoints returned a CPC of 1000 and 988 and a volume of 75,000 and 93,000, so quote the endpoint as well as the number

### 4. How big is this domain

Ask your agent:

```text
pull the backlink counts for <domain> with ahrefs on monid, passing today's date, which the endpoint requires and does not default: live backlinks and live referring domains, with the all-time numbers next to them
```

Listed price: $0.036 per domain.

Endpoints for this job:

- [`ahrefs /site-explorer/backlinks-stats`](https://dev.monid.ai/tools/ahrefs.md), $0.00774 / result (the one this guide ran)

What a real run returned:

- **live**: 162,445 backlinks from 29,783 referring domains
- **all time**: 267,560 from 38,888, so about a third has been lost or removed
- **why first**: this is the cheapest way to size a domain before spending on row-level reports

### 5. What a site already ranks for

Ask your agent:

```text
list the organic keywords for <domain> with ahrefs on monid, passing today's date, which the endpoint requires and does not default, and set the row limit explicitly to eight. it bills per row and the limit DEFAULTS TO A HUNDRED, so a call without one bills $1.548
```

Listed price: $0.576 eight rows at $0.072.

Endpoints for this job:

- [`ahrefs /site-explorer/organic-keywords`](https://dev.monid.ai/tools/ahrefs.md), $0.01548 / result (the one this guide ran)
- [`ahrefs /site-explorer/pages-by-internal-links`](https://dev.monid.ai/tools/ahrefs.md), $0.001935 / result

What a real run returned:

- **the top**: the brand name itself, 13,000 a month and 3,088 estimated visits
- **the best non-brand**: one two-word product term at position 1, 700 a month
- **the shape**: brand terms dominate the traffic, which the backlink count alone would hide
- **the trap is the default**: the row limit defaults to a hundred, so one call with no limit set bills $1.548 at the listed $0.01548 a row; the limit also caps at a hundred, so a thousand rows is ten calls and $15.48. Our own run predates a repricing and billed $0.576 for eight rows, at $0.072 each
- **and the date is required**: this endpoint and the backlink one both list date as required with no default, which is why the sentences here pass today's; leave it out and the first paste errors

### 6. What the competitor ranks for and you do not

Ask your agent:

```text
list the organic keywords for <competitor> with ahrefs on monid and diff them against mine, eight rows each with today's date and the limit both set explicitly. check how much the two lists overlap before you read anything into the difference
```

Listed price: $1.152 two lists of eight.

Endpoints for this job:

- [`ahrefs /site-explorer/organic-keywords`](https://dev.monid.ai/tools/ahrefs.md), $0.01548 / result (the one this guide ran)

What a real run returned:

- **the gap**: the competitor holds position 1 for a head term at 5,700 a month and its plural at 700
- **what it is worth**: about 580 estimated visits a month that the subject domain does not rank for at all
- **the diff can be empty**: on a second pair the two eight-row lists overlapped on zero keywords and thirteen of the sixteen rows were brand navigational terms, so the comparison cost $1.152 and told you nothing
- **the price**: $1.152 makes this the most expensive job here, and it is still two calls; before paying it, check that the rows you get back are not mostly brand terms

### 7. Which pages carry the site

Ask your agent:

```text
pull the pages of <domain> by internal links with ahrefs on monid, five rows, sorted by links_to_target:desc. name that field and that direction: the endpoint sorts either way and takes url_to as well. without it the five rows are not the top five: on our run it dropped the genuine third and padded with the sixth, at the same price and the same status
```

Listed price: $0.045 five rows at $0.009.

Endpoints for this job:

- [`ahrefs /site-explorer/pages-by-internal-links`](https://dev.monid.ai/tools/ahrefs.md), $0.001935 / result (the one this guide ran)

What a real run returned:

- **the top**: the homepage at 1,198 internal links
- **next**: login at 1,003 and signup at 938, so the site points at the product, not the content
- **the one content page**: a docs introduction at 936, ahead of pricing at 571
- **the wrong five, silently**: a naive five-row call returned a set that omitted the page genuinely ranked third and included the one ranked sixth, with no error and the same $0.045
- **and the answer is navigation**: on both domains the real top five are global nav and login, so this endpoint sizes the shell of a site rather than telling you what it points at
- **the price**: at $0.009 a row this is the cheapest ahrefs call in the aisle

## More

- [Every how-to guide](https://dev.monid.ai/tutorial.md)
- [Connect an agent to Monid](https://dev.monid.ai/index.md)
