# SerpSummary Developer API

> Base URL: https://serpsummary.com/v1/api

Keyword data — search volume, CPC, competition, 12 months of history, keyword ideas — and site reports, from your own code. The same numbers the SerpSummary dashboard and Chrome extension show.

## Quickstart

1. **Get a key.** Sign in and open the [Developer API page](https://serpsummary.com/developer-api). Make a free **sandbox key** (`ss_test_…`) to try everything with sample data; a **live key** (`ss_live_…`) is available once API access is switched on for your account.
2. **Send a request.**

```bash
curl -X POST https://serpsummary.com/v1/api/keywords \
  -H "Authorization: Bearer ss_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["running shoes", "trail running shoes"], "country": "US"}'
```

3. **Read the answer.** Every data answer has `data`, plus `credits` with what was charged and what's left (also in the `X-Credits-Remaining` header).

You can send requests from this page too: open an endpoint below, paste your key under **Authentication**, and press **Send**. Your key stays in your browser and goes straight to our API.

## Authentication

Send your key in the `Authorization` header on every request:

```
Authorization: Bearer ss_live_…
```

Keys are shown once, when you make them; we store only a hash. Making a new key replaces the old one of the same kind at once, and revoking it stops it at once. Keep live keys on your server — never in a web page or app people can download.

| Key | Prefix | Data | Charged | Needs |
| --- | --- | --- | --- | --- |
| Live | `ss_live_` | Real, from Google Keyword Planner and our site index | API credits | API access switched on |
| Sandbox | `ss_test_` | Sample data, same shape | Nothing | Any account |

## Sandbox

A sandbox key answers every endpoint with **sample data** in exactly the live format — same fields, same validation, same errors — and never charges credits. Use it to build and test your integration, then swap the key for a live one. Sandbox answers carry `"sandbox": true` and the header `X-Sandbox: true`. Limits: 1 request a second and 500 a day per account.

## Credits and pricing

API credits are separate from dashboard plans: bought once, they never expire and aren't refilled.

| Request | Cost |
| --- | --- |
| `POST /keywords` | 1 credit per distinct keyword |
| `POST /keyword-ideas` | 1 credit per idea returned (`limit` is held while it runs; unused credits come back) |
| `POST /site` | 10 credits per report |
| `GET /account`, `GET /locations` | Free |

Credits cost **$0.20 per 1,000**, from 100,000 credits ($20.00). A request that fails is not charged — credits held for it are given back.

## Rate limits

- **1 request a second per account** across all its keys — put up to 1,000 keywords in one request rather than one per call.
- 120 requests a minute per IP address, checked before the key.
- Over a limit: **429** with a `Retry-After` header (seconds). Wait that long and send it again.

## Errors

Errors are JSON: `{ "error": "…" }`. A 400 names the field first (`"keywords: Array must contain at most 1000 element(s)"`). Request bodies are strict: an unknown field (a typo such as `"location"`) is a 400, never silently ignored.

| Status | Meaning | What to do |
| --- | --- | --- |
| 400 | The request is invalid | Fix the named field |
| 401 | Missing, unknown or revoked key | Check the `Authorization` header |
| 402 | Not enough API credits | Buy credits on the Developer API page |
| 403 | API access isn't switched on for this account | Request access, or use a sandbox key |
| 429 | Over a rate limit | Wait `Retry-After` seconds |
| 502 | The data provider failed | Try again; nothing was charged |
| 503 | Busy | Wait `Retry-After` seconds |

## For AI tools

The whole reference as one Markdown file for AI coding assistants: [llms.txt](https://docs.serpsummary.com/llms.txt). The OpenAPI document: [openapi.json](https://docs.serpsummary.com/openapi.json) — import it into Postman or generate a client with any OpenAPI generator.


## Endpoints

### Keyword data: POST https://serpsummary.com/v1/api/keywords

Search volume, CPC, competition and 12 months of search history for up to 1,000 keywords in one country and language. **Cost:** 1 credit per distinct keyword.

Body (JSON):
- `keywords` (string[], required): Up to 1,000 keywords, 1–80 characters each. Duplicates (any case) are looked up and charged once.
- `country` (string): Country of the search volumes: an ISO 3166-1 code, or "GLOBAL". Codes: GET /locations. — default "US"
- `language` (string): Language of the searches. Codes: GET /locations. — default "en"
- `network` ("GOOGLE_SEARCH" | "GOOGLE_SEARCH_AND_PARTNERS"): Google Search only, or Google Search + search partners (Keyword Planner's two networks). — default "GOOGLE_SEARCH"

Example request body:
```json
{
  "keywords": [
    "running shoes",
    "trail running shoes"
  ],
  "country": "US",
  "language": "en"
}
```

Example answer:
```json
{
  "data": [
    {
      "keyword": "running shoes",
      "volume": 5000,
      "cpc": 4.3,
      "cpcLow": 0.16,
      "cpcHigh": 8.44,
      "competition": 0.78,
      "competitionLevel": "HIGH",
      "trend": [
        {
          "month": "2025-11",
          "volume": 5720
        },
        {
          "month": "2025-12",
          "volume": 5872
        },
        {
          "month": "2026-01",
          "volume": 5863
        },
        {
          "month": "2026-02",
          "volume": 6382
        },
        {
          "month": "2026-03",
          "volume": 5829
        },
        {
          "month": "2026-04",
          "volume": 5914
        },
        {
          "month": "2026-05",
          "volume": 5062
        },
        {
          "month": "2026-06",
          "volume": 5050
        },
        {
          "month": "2026-07",
          "volume": 4879
        },
        {
          "month": "2026-08",
          "volume": 4149
        },
        {
          "month": "2026-09",
          "volume": 4001
        },
        {
          "month": "2026-10",
          "volume": 4816
        }
      ]
    },
    {
      "keyword": "trail running shoes",
      "volume": 100000,
      "cpc": 3.96,
      "cpcLow": 2.06,
      "cpcHigh": 5.86,
      "competition": 0.87,
      "competitionLevel": "HIGH",
      "trend": [
        {
          "month": "2025-11",
          "volume": 97464
        },
        {
          "month": "2025-12",
          "volume": 109666
        },
        {
          "month": "2026-01",
          "volume": 110581
        },
        {
          "month": "2026-02",
          "volume": 109803
        },
        {
          "month": "2026-03",
          "volume": 125216
        },
        {
          "month": "2026-04",
          "volume": 109758
        },
        {
          "month": "2026-05",
          "volume": 104149
        },
        {
          "month": "2026-06",
          "volume": 101141
        },
        {
          "month": "2026-07",
          "volume": 79624
        },
        {
          "month": "2026-08",
          "volume": 80020
        },
        {
          "month": "2026-09",
          "volume": 84100
        },
        {
          "month": "2026-10",
          "volume": 97227
        }
      ]
    }
  ],
  "country": "US",
  "language": "en",
  "credits": {
    "charged": 2,
    "remaining": 99998
  }
}
```

### Keyword ideas: POST https://serpsummary.com/v1/api/keyword-ideas

Keyword ideas with their data, from **one** of: seed keywords (related searches), a page URL (ideas for that page) or a domain (the keywords the site ranks for in Google, with positions). **Cost:** 1 credit per idea returned; `limit` credits are held while it runs and the unused part comes back.

Body (JSON):
- `keywords` (string[]): Seed keywords (1–20): ideas related to them.
- `url` (string): One page: keyword ideas for that page.
- `domain` (string): A whole site: the keywords it ranks for in Google, with positions.
- `limit` (integer): Most ideas to return. This many credits are held; unused ones are given back. — default 100
- `country` (string): Country of the search volumes: an ISO 3166-1 code, or "GLOBAL". Codes: GET /locations. — default "US"
- `language` (string): Language of the searches. Codes: GET /locations. — default "en"
- `network` ("GOOGLE_SEARCH" | "GOOGLE_SEARCH_AND_PARTNERS"): Google Search only, or Google Search + search partners (Keyword Planner's two networks). — default "GOOGLE_SEARCH"

Example request body:
```json
{
  "keywords": [
    "running shoes"
  ],
  "limit": 50,
  "country": "US"
}
```

Example answer:
```json
{
  "data": [
    {
      "keyword": "running shoes tool",
      "volume": 50000,
      "cpc": 7.34,
      "cpcLow": 2.85,
      "cpcHigh": 11.83,
      "competition": 0.82,
      "competitionLevel": "HIGH",
      "trend": [
        {
          "month": "2025-11",
          "volume": 49690
        },
        {
          "month": "2025-12",
          "volume": 55783
        },
        {
          "month": "2026-01",
          "volume": 56945
        },
        {
          "month": "2026-02",
          "volume": 55683
        },
        {
          "month": "2026-03",
          "volume": 55785
        },
        {
          "month": "2026-04",
          "volume": 54559
        },
        {
          "month": "2026-05",
          "volume": 46826
        },
        {
          "month": "2026-06",
          "volume": 49102
        },
        {
          "month": "2026-07",
          "volume": 46523
        },
        {
          "month": "2026-08",
          "volume": 46694
        },
        {
          "month": "2026-09",
          "volume": 43915
        },
        {
          "month": "2026-10",
          "volume": 42908
        }
      ]
    },
    {
      "keyword": "running shoes software",
      "volume": 10000,
      "cpc": 5.3,
      "cpcLow": 0.45,
      "cpcHigh": 10.14,
      "competition": 0.45,
      "competitionLevel": "MEDIUM",
      "trend": [
        {
          "month": "2025-11",
          "volume": 9579
        },
        {
          "month": "2025-12",
          "volume": 11389
        },
        {
          "month": "2026-01",
          "volume": 11143
        },
        {
          "month": "2026-02",
          "volume": 10609
        },
        {
          "month": "2026-03",
          "volume": 11551
        },
        {
          "month": "2026-04",
          "volume": 11457
        },
        {
          "month": "2026-05",
          "volume": 10803
        },
        {
          "month": "2026-06",
          "volume": 9606
        },
        {
          "month": "2026-07",
          "volume": 7668
        },
        {
          "month": "2026-08",
          "volume": 8390
        },
        {
          "month": "2026-09",
          "volume": 9531
        },
        {
          "month": "2026-10",
          "volume": 9201
        }
      ]
    },
    {
      "keyword": "running shoes free",
      "volume": 100,
      "cpc": 4.73,
      "cpcLow": 1.76,
      "cpcHigh": 7.69,
      "competition": 0.39,
      "competitionLevel": "MEDIUM",
      "trend": [
        {
          "month": "2025-11",
          "volume": 87
        },
        {
          "month": "2025-12",
          "volume": 96
        },
        {
          "month": "2026-01",
          "volume": 100
        },
        {
          "month": "2026-02",
          "volume": 112
        },
        {
          "month": "2026-03",
          "volume": 114
        },
        {
          "month": "2026-04",
          "volume": 111
        },
        {
          "month": "2
…
```

### Site report: POST https://serpsummary.com/v1/api/site

What the SerpSummary extension's result card shows for a site — authority, traffic, ranks, site checks, speed, what it is and sells, tech stack, analytics, ad pixels and ad libraries — and, given a `url`, that page's own numbers. A site we haven't read before is crawled first, which can take up to a minute. A part whose source failed is `null`. **Cost:** 10 credits per report.

Body (JSON):
- `url` (string): A page: its own numbers, plus its site's.
- `domain` (string): A whole site, e.g. "example.com".
- `country` (string): Country of the keyword and traffic numbers. Default "US". — default "US"

Example request body:
```json
{
  "domain": "example.com",
  "country": "US"
}
```

Example answer:
```json
{
  "data": {
    "domain": "example.com",
    "url": null,
    "keywordCountry": "us",
    "page": null,
    "authority": {
      "domainAuthority": 33,
      "domainAuthorityChange12m": 6,
      "domainAuthorityHistory": [
        27,
        28,
        28,
        29,
        29,
        30,
        30,
        31,
        31,
        32,
        32,
        33,
        33
      ],
      "domainRating": 50,
      "referringDomains": 19888,
      "referringDomainsSource": "moz",
      "backlinks": 1099008,
      "spamScore": 5,
      "linkPropensity": 34,
      "nofollowReferringDomains": 1976,
      "lostReferringDomains": 658,
      "pageRank": 6.55
    },
    "traffic": {
      "rankingKeywords": 73972,
      "monthlyTraffic": 69038,
      "topKeywords": [
        {
          "keyword": "example",
          "position": 1,
          "traffic": 34519
        },
        {
          "keyword": "example reviews",
          "position": 2,
          "traffic": 23013
        },
        {
          "keyword": "example login",
          "position": 3,
          "traffic": 17260
        },
        {
          "keyword": "best example alternatives",
          "position": 4,
          "traffic": 13808
        },
        {
          "keyword": "example pricing",
          "position": 5,
          "traffic": 11506
        }
      ],
      "visitors": {
        "month": "2026-11",
        "desktop": 37,
        "mobile": 57,
        "tablet": 6,
        "topCountries": [
          "US",
          "GB",
          "CA",
          "AU",
          "IN"
        ]
      }
    },
    "ranks": {
      "chromeRankBucket": 50000,
      "trancoRank": 263011,
      "majestic": {
        "rank": 570369,
        "previousRank": 778052,
        "referringSubnets": 19651
      },
      "registeredAt": "2019-05-12T00:00:00.000Z",
      "ageYears": 7,
      "firstArchivedAt": "2019-09-09T00:00:00.000Z",
      "pageCount": 1170,
      "isPageCountPartial": false,
      "subdomains": {
        "count": 3,
        "isTruncated": false,
        "list": [
          "blog.example.com",
          "help.example.com",
          "shop.example.com"
        ],
        "source": "common-crawl"
      }
    },
    "checks": {
      "sitemaps": {
        "count": 2,
        "kinds": [
          "page",
          "post"
        ],
        "urls": [
          "https://example.com/sitemap.xml",
          "https://example.com/post-sitemap.xml"
        ]
      },
      "robotsTxt": {
        "status": "found",
        "blocksGooglebot": false,
        "crawlDelay": null
      },
      "aiBots": [
        {
          "bot": "GPTBot",
          "owner": "OpenAI",
          "purpose": "training",
          "isBlocked": false
        },
        {
          "bot": "ClaudeBot",
          "owner": "Anthropic",
          "purpose": "training",
          "isBlocked": false
        },
        {
          "bot": "PerplexityBot",
          "owner": "Perplexity",
          "purpose": "search",
          "is
…
```

### Credits and limits: GET https://serpsummary.com/v1/api/account

API credits left and the limits that apply. **Free.**

Example answer:
```json
{
  "credits": 99983,
  "requestsPerSecond": 1,
  "maxKeywordsPerRequest": 1000,
  "maxIdeasPerRequest": 1000
}
```

### Countries and languages: GET https://serpsummary.com/v1/api/locations

The `country` and `language` codes the other endpoints accept. **Free.**

Example answer:
```json
{
  "countries": [
    {
      "code": "GLOBAL",
      "name": "All locations"
    },
    {
      "code": "US",
      "name": "United States"
    }
  ],
  "languages": [
    {
      "code": "en",
      "name": "English"
    }
  ]
}
```
