# Serpstat · Top pages by traffic

Get SEO and search ranking data with Serpstat · Top pages by traffic from Alexandria through one Spiral API key. List a domain's pages with the most estimated organic traffic and ranking keywords. Use domains/keywords for the keywords behind one page. 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/domains/top-pages`
- Page: https://spiral.ai/tools/alexandria/serpstat/domains/top-pages

## Pricing

Up to $0.034918 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. |
| `domain` (required) | text |  | — | Domain to analyse, such as nike.com, without a scheme or path. |
| `page` | number | 1 to … | — | 1-based page. Serpstat returns at most the first 60,000 rows of a report. |
| `size` | number | 1 to 150 | 15 | Rows per page, from 1 to 150. Serpstat allows up to 1000; this connector stops at 150 so a call stays within 100 Firecrawl credits. Omitting it requests 15. |
| `sort` | JSON |  | — | One sort field and direction, for example {"traffic": "desc"} (traffic or keywords). |
| `filters` | JSON |  | — | Serpstat filters for this method, combined with AND. Keys include traffic_from, keywords_from, url_prefix, url_contain, and url_not_contain. |

## 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/domains/top-pages",
    "input": {
      "se": "<se>",
      "domain": "<domain>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=serpstat%2Fdomains%2Ftop-pages

## Common questions

### Serpstat · Top pages by traffic

**How much does Serpstat · Top pages by traffic cost?**

Up to $0.034918 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 · Top pages by traffic through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "serpstat/domains/top-pages"` 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 · Top pages by traffic?**

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

**Can my AI agent use Serpstat · Top pages by traffic?**

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

