# Serpstat · Keyword metrics

Get SEO and search ranking data with Serpstat · Keyword metrics from Alexandria through one Spiral API key. Get search volume, CPC, competition, difficulty, SERP features, and intent for up to 150 keywords in one database. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: SEO
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `serpstat/keywords/info`
- Page: https://spiral.ai/tools/alexandria/serpstat/keywords/info

## Pricing

Up to $0.17459 per run.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `se` (required) | text |  | — | Serpstat search engine database: g_ plus a two-letter country (g_us, g_uk, g_de, g_fr, ...) or bing_us. |
| `keywords` (required) | list |  | — | Keywords to look up, 1 to 150. |
| `sort` | JSON |  | — | One sort field and direction, for example {"region_queries_count": "desc"}. |
| `filters` | JSON |  | — | Serpstat filters for this method, combined with AND. Keys include region_queries_count_from, cost_from, concurrency_to, found_results_from, and intents_contain. |
| `withIntents` | true or false |  | — | Add keyword intents. Serpstat supports it on g_us and g_ua only. |
| `includeMissingKeys` | true or false |  | — | List keywords Serpstat has no data for under result.not_found. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "serpstat/keywords/info",
    "input": {
      "se": "<se>",
      "keywords": [
        "<keywords>"
      ]
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=serpstat%2Fkeywords%2Finfo

## Common questions

### Serpstat · Keyword metrics

**How much does Serpstat · Keyword metrics cost?**

Up to $0.17459 per run. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Serpstat · Keyword metrics through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "serpstat/keywords/info"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use Serpstat · Keyword metrics?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Serpstat · Keyword metrics?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

