TrackSERPs
Log in

Build a Custom Rank Tracking Dashboard with a REST API

Quick answer

Building an internal or client rank tracking dashboard requires reliable, structured search data delivered via REST API. Using TrackSERPs API v1 and the official TypeScript SDK (@trackserps/sdk), developers query project metadata, retrieve paginated keyword rankings with 7-day and 30-day changes, and inspect full top-100 SERP snapshots with AI Overview citations. Authentication uses secure Bearer tokens, with test keys (ts_test_...) allowing complete sandbox development without spending search credits.

Key facts

  • The TrackSERPs REST API provides endpoints for projects, keyword rankings, top-100 SERP snapshots, and on-demand search runs.Source: trackserps.com
  • API responses use strict snake_case JSON fields and cursor-based pagination for high-volume ranking datasets.Source: spec.openapis.org
  • Test-mode API keys (ts_test_...) return realistic demo account datasets for sandbox dashboard development without spending credits.Source: developers.google.com

Why build a custom rank tracking dashboard?

While pre-built SEO software dashboards serve standard agency workflows, engineering teams and high-growth businesses often need to embed search engine ranking data directly into proprietary tools:

  • Internal executive portals: Displaying organic market share alongside internal revenue, CRM conversion rates, and paid ad spend in a unified data warehouse.
  • Custom client portals: Embedding white-labeled keyword trendlines into customer SaaS accounts without directing users to external platforms.
  • Automated algorithmic trading or pricing: Adjusting lead generation bids or product pricing based on local organic search rankings.

Using a dedicated rank tracking API gives you structured, unpersonalized ranking data without running your own search collection.

Complete dashboard integration workflow

Building a custom rank tracking dashboard with the TrackSERPs REST API involves four structured steps:

  1. Generate API keys in Settings

    Log into your TrackSERPs account and navigate to Settings → API Keys. Click Create API Key. Enter a label (e.g., Custom Dashboard Backend), select scopes (projects:read, rankings:read), and choose between Live mode (ts_live_...) for real production tracking or Test mode (ts_test_...) for development. Copy the token immediately, as it is displayed only once.

  2. List projects to retrieve tracking scopes

    Call GET /v1/projects to fetch all projects accessible to the key. Each project payload returns the target domain, search engine (Google or Bing), location code, language, configured devices (desktop and mobile), and tracking schedule.

  3. Query latest keyword rankings and position changes

    Call GET /v1/projects/{projectId}/rankings/latest to retrieve current keyword positions, 7-day and 30-day changes, active SERP features, and Google AI Overview citations. Pass limit=50 and handle next_cursor to paginate across large keyword lists.

  4. Inspect full top-100 SERP snapshots on demand

    When dashboard users drill down into a specific keyword, call GET /v1/projects/{projectId}/keywords/{keywordId}/serp to retrieve the complete top-100 organic result set, visual feature badges, and cited AI Overview references.

Node.js dashboard implementation with @trackserps/sdk

The official @trackserps/sdk package provides typed TypeScript interfaces, automatic cursor pagination, and built-in retry backoff for rate limits.

1. Install the SDK

pnpm add @trackserps/sdk
# or: npm install @trackserps/sdk

2. Fetch projects and rankings

import { TrackSERPs } from "@trackserps/sdk";

const ts = new TrackSERPs({
  apiKey: process.env.TRACKSERPS_API_KEY!, // ts_live_... or ts_test_...
});

export async function getDashboardData() {
  // 1. Retrieve all projects accessible to this key
  const { projects } = await ts.projects.list();
  if (projects.length === 0) {
    return { error: "No projects found" };
  }

  const primaryProject = projects[0]!;
  console.log(`Loading dashboard for ${primaryProject.name} (${primaryProject.domain})`);

  // 2. Fetch latest rankings with limit
  const { rankings, next_cursor } = await ts.rankings.latest(primaryProject.id, {
    limit: 50,
  });

  // 3. Compute dashboard summary metrics
  const totalKeywords = rankings.length;
  const top3 = rankings.filter((r) => r.rank !== null && r.rank <= 3).length;
  const top10 = rankings.filter((r) => r.rank !== null && r.rank <= 10).length;
  const citedInAio = rankings.filter((r) => r.ai_overview.cited === true).length;

  return {
    project: {
      id: primaryProject.id,
      name: primaryProject.name,
      domain: primaryProject.domain,
      engine: primaryProject.engine,
      totalKeywords,
      top3,
      top10,
      citedInAio,
    },
    keywords: rankings.map((r) => ({
      keywordId: r.keyword_id,
      phrase: r.phrase,
      device: r.device,
      rank: r.rank,
      absoluteRank: r.rank_absolute,
      url: r.ranking_url,
      features: r.serp_features,
      aiOverviewCited: r.ai_overview.cited,
      change7d: r.change_7d,
      change30d: r.change_30d,
    })),
  };
}

REST API request and response specifications

If you are developing against the REST endpoints directly using standard HTTP clients (such as fetch or Axios):

Fetching latest rankings via cURL

curl -X GET "https://api.trackserps.com/v1/projects/cmwc18tij0005rquydas1a5z5/rankings/latest?limit=5" \
  -H "Authorization: Bearer ts_test_zwd5jy1d_Vd5NTPaoDIOtsk5ZoPUSgjrtiUT6B1v9" \
  -H "Accept: application/json"

Example JSON response payload

{
  "rankings": [
    {
      "keyword_id": "cmwc18tj00007rquy8ws16bcy",
      "phrase": "emergency plumber",
      "device": "desktop",
      "date": "2026-11-11",
      "rank": 8,
      "rank_absolute": 8,
      "ranking_url": "https://example-plumbing.com/emergency/",
      "serp_features": [
        "local_pack",
        "people_also_ask"
      ],
      "ai_overview": {
        "present": false,
        "cited": false,
        "cited_url": null
      },
      "change_7d": -1,
      "change_30d": 12,
      "checked": true
    }
  ],
  "next_cursor": null
}
TrackSERPs API Response Fields
CapabilityField NameTypeDescription
rankinteger | nullProgrammatic organic position (#1 through #100), or null if unranked
rank_absoluteinteger | nullVisual DOM placement from the top, including ads, maps, and AI Overviews
serp_featuresstring[]Array of detected features: featured_snippet, local_pack, paa, ai_overview
ai_overview.citedboolean | nullTrue when your domain or tracked URL is cited in Google's generative answer
change_7d / change_30dinteger | nullSigned position movement delta (positive indicates improvement, e.g. +4)

Handling rate limits and network retries

Production dashboards must gracefully handle rate limits and transient network hiccups:

  • HTTP 429 Too Many Requests: When request frequency exceeds your plan allowance, inspect the Retry-After header. It specifies the integer seconds to sleep before retrying.
  • Idempotent POST requests: For write operations (like adding keywords or triggering runs), TrackSERPs requires an Idempotency-Key header with a unique UUID. The SDK automatically handles idempotency key injection.
  • Client-side caching: Cache GET /v1/projects metadata for 10–30 minutes in Redis or in-memory caches, as project configuration changes infrequently.

To explore building data pipelines in Python, read our companion tutorial on rank tracking with Python, or learn how to receive automated push alerts via ranking drop webhooks.

Frequently asked questions

What endpoints are required to build a rank tracking dashboard?
Core endpoints include GET /v1/projects (lists project domains and configuration), GET /v1/projects/{id}/rankings/latest (fetches current positions and movements), and GET /v1/projects/{id}/keywords/{id}/serp (returns full top-100 snapshots).
How do I test my dashboard integration without spending credits?
Generate an API key with Test Mode enabled (starting with ts_test_...). Test keys query a synthetic 90-day demo dataset containing realistic keyword movements, SERP features, and AI Overviews with zero credit cost.
How does pagination work when retrieving thousands of keywords?
The API uses cursor-based pagination via the next_cursor response field. Pass cursor into subsequent requests until next_cursor returns null, or use the AutoPagingPromise in the Node SDK.
What rate limits apply to the TrackSERPs REST API?
API requests are governed by per-minute sliding window rate limits based on your subscription tier. If exceeded, the API returns HTTP 429 with a standard Retry-After header indicating wait seconds.

Sources & references

  1. OpenAPI Specification 3.1.0(checked 2026-11-11)
  2. Google Search Central — How Search Works(checked 2026-11-11)

Get product updates and SEO tips

We will email you a link to confirm your address before anything else is sent.