Skip to navigation

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

View as Markdown

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 / outcomeCharged?Safe next step
400 bad_requestNo ($0)Fix the field named in error.message; do not retry unchanged
503 processing_unavailable / processing_timeout / processing_failedNo ($0)Retry with exponential backoff
429 rate_limit_exceededNo ($0)Wait retry_after_seconds before retrying
200 with has_data: false or 0 rowsYes (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.

Back to SEO questions.