> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# If an SEO API call times out or disconnects, did I get charged and how do I recover the result?

> 400 and 503 SEO responses are never charged; pass an Idempotency-Key header on retriable calls and use GET /v1/tasks/{request_id} to recover a completed SEO result without paying twice.

Validation errors (`400`) and temporary server failures (`503`) are never charged, so retrying a `503` with backoff will not double-bill you. If your client drops the connection before reading a `200` response, send an `Idempotency-Key` header on retriable requests, or call `GET /v1/tasks/{request_id}` if you already captured the `request_id`.

## Which responses cost money vs `$0`

| Status / outcome                                                          | Charged?                                              | Safe next step                                                 |
| ------------------------------------------------------------------------- | ----------------------------------------------------- | -------------------------------------------------------------- |
| `400 bad_request`                                                         | No (`$0`)                                             | Fix the field named in `error.message`; do not retry unchanged |
| `503 processing_unavailable` / `processing_timeout` / `processing_failed` | No (`$0`)                                             | Retry with exponential backoff                                 |
| `429 rate_limit_exceeded`                                                 | No (`$0`)                                             | Wait `retry_after_seconds` before retrying                     |
| `200` with `has_data: false` or `0` rows                                  | Yes (base fee, or 1 month on `domain-rating-history`) | Record “not on record” locally; do not retry the same domain   |

## Prevent double-billing in scripts and workflows

1. **Attach `Idempotency-Key` on every automated SEO call:** Generate a stable key per logical query (for example, a hash of endpoint + request JSON + date). Reusing the same key with a **different** request body returns `409 idempotency_conflict`.
2. **Recover a lost response with `GET /v1/tasks/{request_id}`:** Every SEO response carries a `request_id`. Calling `GET https://api.beatapi.io/v1/tasks/{request_id}` with your BeatAPI key returns the exact same payload under `output` so a lost downstream step does not force a second paid call.
3. **Log `usage.price_usd` and `billed_rows`:** Save both beside your CSV or JSON artifact to reconcile spend on [BeatAPI pricing](https://beatapi.io/pricing).

## Related

* [Row billing](/faq/seo-row-billing) · [Markets, URLs & 400 errors](/faq/seo-market-and-url-errors) · [SEO API reference](/seo)

[Back to SEO questions](/faq/seo).