Getting Started

Credits & Billing

The billing rules in one page: verified misses cost once, upstream failures cost nothing, and every response reports what was charged.

Every response includes meta.creditsCharged5xx = 0 credits / verified miss = 1x
auth: x-api-keycontent-type: application/jsonenvelope: data + meta
request.sh
# A verified miss is still a completed lookup.
curl -s "https://api.cleanfetch.dev/v1/instagram/profile?url=https://www.instagram.com/this_account_does_not_exist" \
  -H "x-api-key: cf_live_your_key_here"
response.json
200 OK / application/json
{
  "data": {
    "platform": "instagram",
    "profile": null
  },
  "meta": {
    "requestId": "req_cf_01j9k9b22bb",
    "lookupStatus": "not_found",
    "creditsCharged": 1,
    "latencyMs": 1430,
    "cached": false
  }
}

What one lookup costs

Current endpoint prices run from 1 credit for Google Trends to 20 credits for LinkedIn email lookup. Profile lookups cost 3 to 10 credits and transcripts cost 2. The pricing page and the response meta.creditsCharged are the source of truth; cache hits cost zero.

Verified miss

A public page that does not exist returns HTTP 404 with lookupStatus not_found and costs the endpoint price. The upstream was reached and the answer is real. Repeated polling of the same missing page is cached briefly.

Upstream failure

HTTP 5xx, timeouts and blocked upstreams return lookupStatus upstream_error and cost zero credits. Retry with exponential backoff. A failed request never silently consumes a pack.

Plans and packs

Monthly plans refill at the start of each billing period and unused plan credits do not roll over. One-time packs are valid for 365 days. Every response reports the charge so reconciliation does not depend on a separate invoice line.

ready