# Rank tracking API: track Google positions by keyword and country

> How a rank tracking API works, a 40-line tracker you can run today, what tracking costs at every keyword count, and when you need city and device targeting from another provider.

Canonical: https://keirolabs.cloud/rank-tracking-api · Updated: 2026-11-20

> **Quick answer.** A **rank tracking API** checks where a domain ranks on Google for a keyword, so you can record positions daily without scraping. Tracking **1,000 keywords daily in the top 10 is about 30,000 searches a month**: about $18 on DataForSEO's standard queue, $30 to $50 on Serper or Bright Data, **$99.99 on Keirolabs** and $275 on SerpApi.
>
> **Keirolabs `/search/google` is the simplest way to start**: one POST returns Google's top 20 in rank order for any country and language, live, and the **40-line tracker below** runs as-is. Plans cover about **180 keywords tracked daily on Essential ($29.99), 550 on Pro ($49.99) and 1,850 on Startup ($99.99)**, and signup gives **500 free checks with no card**. The same key adds web search, page extraction and AI answers, so an SEO tool can run on one bill. Keirolabs tracks by **country and language only: no city-level location and no mobile versus desktop**; for local SEO or device splits, use DataForSEO, SerpApi or Bright Data.

## What a rank tracking API does

A rank tracker asks one question many times: **for keyword K, searched from country C, at what position does my domain appear?** A rank tracking API answers it by running the search on Google and returning the results in order. You find your domain in the list, store the position with a date, and chart the history.

Everything else, such as share of voice, competitor movement and SERP volatility, is computed from that same table of `(date, keyword, country, url, position)`.

## How Keirolabs handles rank tracking

Keirolabs has no separate rank tracking product. You use its **Google SERP endpoint**, which returns Google's organic results in rank order:

| | Keirolabs `/search/google` |
| :--- | :--- |
| Positions returned | 1 to 20 per call (`maxResults`) |
| Location | Country (`country`), plus `cr` to restrict to sites from a country |
| Language | `lang`, such as `en`, `de`, `pt-BR` |
| City or ZIP targeting | **No** |
| Device (mobile / desktop) | **No** |
| Ads, local pack, featured snippets, People also ask | **No**, organic results only |
| Price | 2 credits per check: $5.33 per 1,000 (Essential) to $1.78 (Startup) |
| Free | 1,000 credits at signup: 500 checks, no card |

That makes it a fit for **national** rank tracking, such as SaaS, publishers, ecommerce in one or a few countries, and a poor fit for **local SEO**, where rankings differ from one city to the next.

## Build a rank tracker in 40 lines

This tracks a keyword list daily in one or more countries and stores positions in SQLite:

```python
import os, sqlite3, datetime, requests

API = "https://api.keirolabs.cloud/api/v2/search/google"
HEADERS = {"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"}
DOMAIN = "example.com"
KEYWORDS = ["crm for startups", "best crm", "crm pricing"]
COUNTRIES = ["US", "GB"]

db = sqlite3.connect("ranks.db")
db.execute("""CREATE TABLE IF NOT EXISTS ranks (
    day TEXT, keyword TEXT, country TEXT, position INTEGER, url TEXT,
    PRIMARY KEY (day, keyword, country))""")

def check(keyword, country):
    r = requests.post(API, headers=HEADERS, timeout=30,
                      json={"query": keyword, "country": country, "maxResults": 20})
    r.raise_for_status()
    for pos, item in enumerate(r.json()["results"], start=1):
        if DOMAIN in item["url"]:
            return pos, item["url"]
    return None, None  # not in the top 20

today = datetime.date.today().isoformat()
for kw in KEYWORDS:
    for cc in COUNTRIES:
        pos, url = check(kw, cc)
        db.execute("INSERT OR REPLACE INTO ranks VALUES (?,?,?,?,?)",
                   (today, kw, cc, pos, url))
db.commit()
```

Run it once a day from cron (`0 6 * * * python track.py`). A `NULL` position means "not in the top 20". To chart a keyword: `SELECT day, position FROM ranks WHERE keyword = ? AND country = ? ORDER BY day`.

**Match the domain carefully.** `DOMAIN in url` also matches `notexample.com`. In production, parse the host with `urllib.parse.urlparse(url).hostname` and compare it to your domain and its subdomains.

## What rank tracking costs

The budget rule: **one keyword checked daily in one country is 30 checks a month.**

| Keywords tracked daily (one country) | Checks a month | Keirolabs credits | Keirolabs plan |
| :--- | :--- | :--- | :--- |
| 15 | 450 | 900 | free signup credits |
| 180 | 5,400 | 10,800 | Essential, $29.99 |
| 550 | 16,500 | 33,000 | Pro, $49.99 |
| 1,850 | 55,500 | 111,000 | Startup, $99.99 |

Weekly tracking costs about a seventh as much: 1,000 keywords weekly is about 4,300 checks a month, inside Essential.

### Compared with other rank tracking APIs

For **1,000 keywords checked daily in the top 10** (30,000 requests a month):

| Provider | Price per 1,000 | Monthly cost | City targeting | Device |
| :--- | :--- | :--- | :--- | :--- |
| DataForSEO, standard queue | $0.60 | about $18 | Yes | Yes |
| DataForSEO, live | $2.00 | about $60 | Yes | Yes |
| Serper | $1.00 to $0.30 by pack | about $30 (from a $50 pack) | Yes | No |
| Bright Data | $1.50 pay as you go | about $45 | Yes | Yes |
| **Keirolabs `/search/google`** | $5.33 to $1.78 by plan | **$99.99** (Startup) | No | No |
| SerpApi | $25 to $3.75 by plan | $275 (Big Data, 30,000) | Yes | Yes |

DataForSEO, Bright Data and Serper figures are from their pricing pages as checked in October 2026 for our [SERP tracking API cost guide](https://keirolabs.cloud/blog/serp-tracking-api); SerpApi and Keirolabs were checked November 20, 2026.

**Honest read:** on price alone for pure rank tracking, DataForSEO's queue and Serper are cheaper than Keirolabs, and DataForSEO, SerpApi and Bright Data do more (city, device, full SERP features). Keirolabs makes sense when rank tracking is one job among several, such as an SEO tool that also needs web search, page extraction or AI answers on the same key and bill.

## Why tracking the top 100 costs more

Google stopped serving 100 results on one page in **September 2025**, when it removed the `num=100` parameter. Every provider now pays for each page of results, and passes that on. Keirolabs returns at most 20 positions per check. If you need the top 100, use a provider that paginates (DataForSEO, SerpApi) and budget roughly ten times the top-10 price.

Most teams don't need the top 100 daily. Track the top 20 daily for the keywords you are actively fighting for, and run a weekly deep sweep elsewhere for discovery.

## Location and device: when you need more than country

| Your situation | Country-level enough? | Pick |
| :--- | :--- | :--- |
| SaaS, publisher or national ecommerce | Yes | Any, including Keirolabs |
| Multi-country site (US, UK, DE...) | Yes, one check per country | Any, including Keirolabs |
| Local business, franchise, "near me" terms | **No**, rankings vary by city | DataForSEO, SerpApi, Bright Data, Serper |
| Mobile-first market where mobile rankings differ | **No**, needs a device split | DataForSEO, SerpApi, Bright Data |

## Tips for reliable rank data

- **Check at the same time each day.** Rankings fluctuate during the day; a fixed schedule makes the trend meaningful.
- **Store the ranking URL, not just the position.** When a different page of yours starts ranking (cannibalization), the URL tells you.
- **Treat one-day moves of one or two positions as noise.** Use a 7-day average for reporting.
- **Retry empty responses.** Keirolabs returns an empty result list on upstream timeout rather than hanging; retry once before recording "not ranked".
- **Track competitors from the same response.** One check gives you every domain in the top 20 at no extra cost.

## Verdict

Keirolabs `/search/google` is a simple, honest rank tracking source for **national** rankings: positions 1 to 20, by country and language, at $1.78 to $5.33 per 1,000 checks, with 500 free checks to start. It does not do city, ZIP or device targeting, and it is not the cheapest feed for rank tracking alone. Choose it when rank tracking sits alongside other search work; choose DataForSEO, SerpApi or Bright Data for local SEO and device splits.

## FAQ

### What is a rank tracking API?

An API that runs a Google search for a keyword from a chosen location and returns the results in order, so you can find and store your domain's position every day without scraping.

### How much does a rank tracking API cost?

Tracking 1,000 keywords daily in the top 10 is about 30,000 requests a month: about $18 on DataForSEO's standard queue, $60 on its live mode, $30 to $50 on Serper or Bright Data, $99.99 on Keirolabs' Startup plan and $275 on SerpApi.

### Can Keirolabs track rankings by city or device?

No. Keirolabs /search/google targets by country (country, cr) and language (lang) only, and returns positions 1 to 20. For city, ZIP or mobile versus desktop rankings, use DataForSEO, SerpApi or Bright Data.

### How many keywords can I track on each Keirolabs plan?

Checked daily in one country: about 180 keywords on Essential ($29.99), 550 on Pro ($49.99) and 1,850 on Startup ($99.99). The 1,000 free signup credits cover 500 checks.

### Why does tracking the top 100 cost more?

Google removed the num=100 parameter in September 2025, so each page of 10 results is a separate request and providers bill per page. Keirolabs returns up to 20 positions per check.

### How often should I check rankings?

Daily for keywords you are actively competing on, weekly for the long tail. Check at the same time each day and use a 7-day average for reporting, since one-day moves of one or two positions are mostly noise.

### What is the cheapest rank tracking API?

For Google rankings alone, DataForSEO's standard queue at about $0.60 per 1,000 checks, followed by Serper at $0.30 to $1.00. Keirolabs costs $1.78 to $5.33 per 1,000 and fits when rank tracking runs alongside other search work on one key.

### Do I need a rank tracking API or a rank tracking tool?

A tool (Ahrefs, Semrush and similar) gives you dashboards and history out of the box. An API is cheaper per keyword and lets you put rankings in your own product or database, but you build the scheduling, storage and charts.

## Related

- [Keirolabs SERP API](https://keirolabs.cloud/serp-api): Google organic results as JSON by country and language.
- [SERP tracking API costs](https://keirolabs.cloud/blog/serp-tracking-api): Nine providers priced for 1,000 keywords a day.
- [Google search API](https://keirolabs.cloud/google-search-api): Every way to get Google results by API after Custom Search ends.
- [Cheapest SERP API](https://keirolabs.cloud/blog/cheapest-serp-api): SERP APIs ranked by price per 1,000.
- [What is a SERP API?](https://keirolabs.cloud/blog/what-is-a-serp-api): How SERP APIs work and how to choose one.
