# Serpstat · Referring domains

Get SEO and search ranking data with Serpstat · Referring domains from Alexandria through one Spiral API key. List the domains that link to a domain or URL, with linking pages and Serpstat domain rank. 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/backlinks/referring-domains`
- Page: https://spiral.ai/tools/alexandria/serpstat/backlinks/referring-domains

## 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 |
| --- | --- | --- | --- | --- |
| `query` (required) | text |  | — | Domain (or URL with searchType url or part_url) to analyse. |
| `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` | one of | domain_links, domain_from, domain_rank, check | — | Sort field. Serpstat's default is check. |
| `order` | one of | asc, desc | — | Sort direction. |
| `searchType` | one of | domain, domain_with_subdomains, url, part_url | domain_with_subdomains | domain, domain_with_subdomains (sent when omitted), url, or part_url (URLs that start with query). |
| `complexFilter` | JSON |  | — | One group of conditions combined with AND, such as {field, compareType, value} or {additional_filters}. Sent to Serpstat as complexFilter: [group]. |

## 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/backlinks/referring-domains",
    "input": {
      "query": "<query>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=serpstat%2Fbacklinks%2Freferring-domains

## Common questions

### Serpstat · Referring domains

**How much does Serpstat · Referring domains 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 · Referring domains through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "serpstat/backlinks/referring-domains"` 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 · Referring domains?**

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

**Can my AI agent use Serpstat · Referring domains?**

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

