TrackSERPs
Log in

Rank Tracking API for Developers: Build on Stored Rank Data

Quick answer

TrackSERPs is a rank tracking API for developers who want stored, scheduled rankings instead of raw SERP JSON. You get a REST API, a TypeScript SDK, signed webhooks and an MCP server. Checks are queued and take about 10 to 20 minutes, so design for async. A pipeline you build yourself can cost less per check at scale; you pay us for the code you would otherwise write.

Key facts

  • Google says the relevance of its results can depend on the searcher's location, language and device (desktop or phone).Source: developers.google.com
  • HTTP status 202 Accepted means a request was accepted for processing but the processing has not been completed.Source: rfc-editor.org
  • Search Console's average position is the average position of the topmost result from your site, not a check for a chosen city and device.Source: support.google.com
  • The Model Context Protocol is an open-source standard for connecting AI applications to external systems such as data sources, tools and workflows.Source: modelcontextprotocol.io

The short answer, and our position

Our position: build on a tracker API when the thing you are building is a product or workflow on top of rankings, and build your own SERP pipeline when the pipeline itself is your product.

That is not modesty. A rank tracker is mostly plumbing around a results page: scheduling, storage, history, same-day reuse, alerting, signed webhooks, and here the SDK and MCP server on top. If you do not need those, you are paying for a layer you will not use.

Three facts shape every design on this page:

  • Checks are asynchronous. A new check normally takes 10 to 20 minutes, even for one keyword. It is never instant unless the same search was already fetched today. Nothing in this API is real-time, and nothing here should be built as if it were.
  • Reading is free, checking costs credits. One credit per phrase per device per check.
  • Everything is plain HTTPS and JSON. Bearer auth, snake_case fields, cursor pagination, an OpenAPI 3.1 spec. No SDK is required.

What you get: four interfaces over one data set

InterfaceWhat it isUse it for
REST API v1Projects, keywords, latest rankings, history, SERP snapshots, runs, one-off lookups, competitors, share of voice, webhooksAnything server-side, in any language
@trackserps/sdkTyped TypeScript client with retries, cursor iterators, automatic idempotency keys and webhook verificationNode and Next.js backends
WebhooksSigned push events when runs and lookups finish, rankings change, alerts fire or credits run lowReplacing polling
MCP server@trackserps/mcp over stdio, plus a hosted endpoint at https://api.trackserps.com/mcpAI assistants and agents that need rankings as tools

There are also an n8n node for no-code flows and a Postman collection for exploring the API by hand.

The data model is small. A project is a domain tracked in one location, language, search engine (google or bing, fixed at creation) and device set, with a daily or weekly schedule. Keywords belong to a project and can carry tags and tracked URLs. A run checks keywords. A lookup answers a one-off question without a project and is deleted after 30 days. Rankings carry rank (organic position), rank_absolute (position counting ads and SERP features, see absolute rank) and ranking_url, down to position 100.

Tracker API vs your own SERP pipeline: who does what

The honest comparison is a list of jobs. In the first column you build and run each piece yourself, on top of whatever source of raw results pages you choose.

JobYour own pipelineTrackSERPs API
Fetch a Google or Bing results page to depth 100You source and parse itYes, via a check
Receive resultsYour queue, callbacks and retriesWebhook or polling, our handler
Schedule daily or weekly checksYou write the schedulerA project setting
Store history and query itYour databaserankings/history, serp, serp/compare
Match your URL (exact, prefix, domain) in the resultsYour parserTracked URLs
Reuse a result fetched earlier todayYour cacheBuilt in, shared across accounts
Alerts and signed outbound webhooksYou build bothBuilt in
Client-facing reports and share linksYou build themBuilt in
Per-check cost at high volumeCan be lowerCredits per check

None of those pieces is hard on its own. Each needs a handler, retries and tests, and then a database, a scheduler and a parser for the many result types that appear in modern SERPs. Location matters too: Google says the relevance of its results can depend on the searcher's location, language and device, so every check has to pin all three, and any cache you build has to key on them.

Estimating the cost in credits

Our credits are one per phrase per device per check. Here are three setups:

SetupChecks per monthTrackSERPs credits
150 keywords, desktop, weeklyabout 650about 650
200 keywords, desktop and mobile, weeklyabout 1,730about 1,730
500 keywords, desktop and mobile, dailyabout 30,420about 30,420

Weekly figures use 52 weeks over 12 months, about 4.33 checks per keyword and device each month; daily figures use 365 days over 12 months, about 30.4. The plan allowances are in the next section, and prices are on the pricing page.

Read those numbers against your own build cost. You do not get a discount for using our API. What you buy is the scheduler, storage, parsing, alerts and webhooks, and the maintenance of all of them. If an engineer's week is worth more than the difference, that is a good trade. If you already run a data platform, or you are checking tens of thousands of SERPs a month for your own SaaS product, the third row is where running your own pipeline can start to win on unit cost.

Plans, credits and limits for API work

Limits come from the plan files, not from marketing copy.

PlanMonthly creditsAPI accessAPI keysRequests per minute per keyAPI calls per monthWebhook endpoints
Starter1,240Read16010,0000
Growth3,390Read and write3120100,0002
Pro8,550Read and write10300500,0005
Agency18,750Read and write256002,000,00020

There are no per-seat or per-developer fees for API use in these tables. Keys and quotas are the limits. Starter is read-only, so it suits reading data tracked in the app, not creating projects or starting runs. Top-ups exist if you run out of credits mid-month. See pricing for amounts.

Worked example. A script tracks 200 keywords on desktop and mobile, weekly, for one client. That is 400 credits a run and about 1,730 a month, which fits inside Growth's 3,390 with room for one-off lookups. Now add a dashboard that refreshes every 10 minutes by calling bulk history: that endpoint counts as 5 requests against the monthly quota, so 4,320 refreshes a month cost 21,600 calls. That is far more than Starter's 10,000, and a fifth of Growth's 100,000, for data that changes weekly. Cache on your side, or call it after a run.completed webhook.

Behaviours that change how you design

Checks are queued

POST /projects/{project_id}/runs returns 202 with a run_id, a queued status and credits_held. Statuses then move through running to completed, partial, failed or paused_no_credits. Poll GET /projects/{project_id}/runs/{run_id} no more than occasionally, or subscribe to run.completed. One manual run per project every 10 minutes, and ten run requests per key per hour, are the safety limits.

Add ?dry_run=true to see how many credits a run would hold without starting it. The response has would_hold, balance_after and allowed.

Targeted and fresh runs

Pass keyword_ids (up to 500) to check only some keywords. Pass fresh: true to skip today's shared cache and always fetch a new results page. Use fresh only when you need data newer than earlier today, because it is the slow path. A targeted run does not count toward runs/latest or the project's last_run_at, which reflect full runs only.

One-off lookups

POST /lookups takes 1 to 100 items, each with phrase, domain and location_code, and holds 1 credit per item up front. If the account cannot cover all of them, nothing is created. A failed lookup is refunded, and one stuck for 60 minutes is marked failed and refunded. Over 500 lookup items per key per hour returns 429.

Test keys

A ts_test_ key validates every request and returns realistic fake data with test_ IDs. Nothing is saved and no credits are spent. Run your integration tests against one and assert the X-TrackSERPs-Test-Mode: true header, so a test can never be pointed at a live key by accident.

Idempotency, pagination and scopes

Every POST accepts an Idempotency-Key header, and retrying with the same key returns the original response. The SDK adds one automatically. List endpoints use a limit and a cursor, and return next_cursor. Keys carry scopes (rankings:read, projects:write, keywords:write, runs:write, shares:write, webhooks:write), and can be limited to specific projects or an IP allowlist. Give each service its own key with the narrowest scope.

Errors worth handling

Build the retry logic around these codes, which the API documents:

CodeMeaningWhat to do
402 insufficient_creditsNot enough credits to hold for the run or lookupDry-run first, alert a human, do not retry in a loop
403 plan_requiredThe plan's limit was reached, or the account has no active planUpgrade or remove the work
403 forbidden_scopeThe key lacks the scope the endpoint needsFix the key, not the code
422 validation_errorBad domain, location code or parameterFix the request
429 run_too_soonManual run within 10 minutes of the last oneWait for Retry-After
429 rate_limited or quota_exceededPer-minute bucket or monthly quota hitBack off using Retry-After; cache reads

The SDK retries 429 and 5xx responses for you and respects Retry-After. Every error carries a request_id. Log it, because it is what support will ask for.

Quickstart: create, estimate, read

Create a test key in Settings, API Keys. The secret is shown once.

curl -X POST https://api.trackserps.com/v1/projects \
  -H 'Authorization: Bearer ts_test_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: 5c1f6f0e-8a52-4c0e-9a55-0d2c4e5a7b11' \
  -d '{
    "name": "Acme Plumbing",
    "domain": "acmeplumbing.com",
    "folder_name": "Acme",
    "location_code": 2840,
    "devices": ["desktop"],
    "schedule": "weekly",
    "keywords": ["emergency plumber", "drain cleaning"]
  }'

curl 'https://api.trackserps.com/v1/projects/cmwc0f1yp0005rqk7w1plnab1/rankings/latest?limit=50' \
  -H 'Authorization: Bearer ts_test_YOUR_KEY'

Creating a project does not start a run. A scheduled run picks it up, or you call the runs endpoint. With a real key, rankings appear only after the first check completes. The test key returns demo data straight away.

Architecture patterns

These are patterns that match how the API behaves. None of them needs a long-lived connection.

1. Warehouse sync

Pull history into your own database once a day. Call GET /projects/{project_id}/rankings/history with start, end and updated_after, so each night fetches only what changed. It pages by keyword, 50 by default and 200 at most, and can return NDJSON with Accept: application/x-ndjson. Upsert on project, keyword, device and date. Because each call counts as 5 requests, filter by updated_after and keep the page size high, and the cost stays small. Set unranked_as=101 if you want an average rank change that treats a missing keyword as position 101.

2. Event-driven updates

Subscribe a webhook to run.completed or rankings.updated and write rows as they arrive. Nothing polls, and nothing sits idle for 15 minutes. The signature is HMAC-SHA256 in the TrackSERPs-Signature header, formatted t=<unix>,v1=<hex>. Verify it against the raw body:

import express from "express";
import { verifyWebhook } from "@trackserps/sdk";

const app = express();

app.post("/hooks/trackserps", express.raw({ type: "application/json" }), (req, res) => {
  const secrets = [
    process.env.TRACKSERPS_WEBHOOK_SECRET!,
    process.env.TRACKSERPS_WEBHOOK_PREVIOUS_SECRET,
  ].filter((s): s is string => Boolean(s));

  const ok = verifyWebhook(req.body, req.header("trackserps-signature") ?? "", secrets);
  if (!ok) return res.status(401).send("bad signature");

  const event = JSON.parse(req.body.toString("utf8"));
  // Queue the work and answer quickly: deliveries time out after 10 seconds.
  // hand the event to your own queue here
  void event;
  res.status(200).json({ received: true });
});

Deliveries that fail or time out are retried on a backoff schedule over about two days, and an endpoint that fails 20 times in a row is disabled. Return 2xx fast and do the work after. Accepting two secrets lets you rotate without downtime. The webhook docs cover the schedule, and the guide on ranking drop webhooks builds a full alert flow. The event types are run.completed, run.failed, rankings.updated, credits.low, credits.exhausted, alert.triggered and lookup.completed.

3. Post-deploy checks

You ship a migration and want to know whether a key page still ranks. Send one lookup per page with fresh: true, subscribe to lookup.completed, and compare result.rank with the last known value. Remember what this is: an answer in 10 to 20 minutes, not a CI gate that blocks the deploy. Run it as a follow-up job that opens a ticket if rank drops. A tracked URL with match set to exact tells you the specific page's rank, not just the domain's.

4. Internal dashboards

Read rankings/latest for the current state and rankings/history for trend lines, and cache both. Rankings only change when a check completes, so a refresh faster than your schedule returns the same numbers. The step-by-step build is in the dashboard API guide.

5. Agents and assistants

Give an assistant read-only access first. The MCP server exposes tools for projects, rankings, movement, keyword history, search volume, lookups and run status. Its write tools (add_keywords, run_check) run as a dry run unless you pass confirm: true, which is a sensible guard against an agent spending credits. Use a key limited to rankings:read unless you want writes. See MCP rank monitoring and the AI agents page.

When not to use TrackSERPs

State this plainly, because it saves you a week:

  • You need live answers in seconds. Checks here are queued and take minutes by design. A live SERP service fits that job; we are not one.
  • You need engines or data types beyond ours. Our API tracks Google and Bing rankings, depth 100. Anything else, such as backlinks or keyword research datasets, is outside this API.
  • You are building your own rank tracking product. At that point the pipeline is your product and the margin is in owning it.
  • You need to manage alert rules from code. The API reads alert results through webhooks, and rules are set in the app.
  • You only want to check your own site occasionally. Google Search Console reports the average position of your site's highest-placed result, which is a different measure from a fixed top-100 check for a chosen city and device.

Where to go next

Start with the API quickstart and a test key, then read the REST API overview. If you are weighing the build-versus-buy question for a team, the pricing page has the plan amounts to set against your build cost. For help choosing between TrackSERPs and other APIs, see the rank tracker API roundup.

Frequently asked questions

Why use a rank tracking API instead of building my own SERP pipeline?
Use it when you want the product around the data: scheduling, stored history, same-day cache reuse, alerts, signed webhooks and client reports. A raw results feed leaves those parts to you to build and run. Your own pipeline can be cheaper per check at high volume, if your engineers' time is free.
Are TrackSERPs checks real-time?
No. Checks are queued and normally take 10 to 20 minutes, even for one keyword. The exception is a result for the same phrase, location, language and device that was already fetched today, which returns at once. Build for async: poll sparingly or subscribe to a webhook.
How are API calls billed?
Reading data is free. Credits are spent when a check runs: one credit per phrase per device, including one-off lookups and results served from the same-day cache. Each plan also has its own per-minute rate limit and monthly call quota, listed in the rate limits docs.
Can I test without spending credits?
Yes. A key starting with ts_test_ runs in test mode. Requests are validated and return realistic fake data with test_ IDs, nothing is saved, and no credits are spent. Every response carries an X-TrackSERPs-Test-Mode header, so you can assert it in tests.
Which language should I use?
Any language that can send HTTPS requests with a Bearer header works. A typed TypeScript SDK, @trackserps/sdk, adds retries, pagination iterators and webhook verification. For Python there is no official SDK; the API is plain JSON with snake_case fields, so a few lines of requests or httpx cover it.
How do I get rankings into my own database?
Call the bulk history endpoint on a schedule with the updated_after filter, or subscribe a webhook to rankings.updated and write the changes as they arrive. Both are covered below, with the cost in API quota. Keep the cursor between pages and store the ranking date with each row.
Does the API expose alert rules?
Not as endpoints today. Alert rules are managed in the app, and the API delivers their results through the alert.triggered webhook event. If you need to create alert rules from code, the current answer is to evaluate rank changes yourself from rankings.updated payloads.

Sources & references

  1. Google Search Central: How Google Search works(checked 2026-11-11)
  2. RFC 9110 section 15.3.3: 202 Accepted(checked 2026-11-11)
  3. Google Search Console Help: Performance report, position(checked 2026-11-11)
  4. Model Context Protocol: What is MCP?(checked 2026-11-11)