Quickstart

Quickstart

Go from zero to your first scrape and structured extraction in three calls. Everything below uses real endpoints and the x-api-key header.

Base URL: https://api.superscraper.dev · all endpoints are versioned under /v1/.

1. Get an API key

You have two ways to get a key.

Dashboard (humans)

Sign in at app.superscraper.dev (opens in a new tab), then go to API Keys → Create key. Copy the key immediately. The plaintext is shown only once.

Self-serve provisioning (agents / scripts)

POST /v1/keys/provision mints a fresh free-tier tenant and key with no sign-in. This is the path for AI agents that need to bootstrap themselves. It is IP-rate-limited and free-tier only.

curl -X POST https://api.superscraper.dev/v1/keys/provision \
  -H "Content-Type: application/json" \
  -d '{"label": "my-agent"}'

Response (HTTP 201). The key is shown once:

{
  "apiKey": "ss_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "tenantId": "8f3c…",
  "tier": "free",
  "credits": { "scrape": 1000, "enrich": 1000, "kyb": 0, "state": "ok", "period": "2026-09" },
  "quota": { "pages": 1000, "extractions": 50 },
  "creditsGranted": ["scrape", "enrich"],
  "note": "Free tier. For more credits, upgrade to a paid plan with POST /v1/billing/checkout (plans and prices: GET /v1/pricing)."
}

Store the apiKey value. It cannot be retrieved again. See Authentication for how the key is passed and kept secret.

credits.state says whether the free grant has landed (ok, grant_pending, grant_failed or reconciling). To upgrade to a paid plan, use POST /v1/billing/checkout.

2. Your first scrape

Turn any URL into clean markdown. By default the engine also runs the free JSON-LD listing extraction (no LLM cost).

curl -X POST https://api.superscraper.dev/v1/scrape \
  -H "x-api-key: ss_live_xxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'
{
  "url": "https://example.com",
  "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
  "listing": null,
  "metadata": {
    "fetchMethod": "plain",
    "latencyMs": 312,
    "cached": false
  },
  "ok": true
}

metadata.fetchMethod tells you how the page was fetched: "plain", "playwright", or "stealth". The engine escalates automatically when a page needs JavaScript. See /v1/scrape for cookies, headers, formats[], content shaping, and caching options.

3. Your first extraction

/v1/extract returns the data plus how complete it is and which layer read it.

Schema-free runs the free JSON-LD → regex cascade (no LLM cost) and returns _completeness, _extraction_method, and _provenance:

curl -X POST https://api.superscraper.dev/v1/extract \
  -H "x-api-key: ss_live_xxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.iana.org/about"}'
{
  "url": "https://www.iana.org/about",
  "data": {
    "name": "About IANA",
    "description": "...The Internet Assigned Numbers Authority (IANA) maintains the authoritative public registries that record these allocations and definitions...",
    "_completeness": 0.215,
    "_extraction_method": "regex-cascade",
    "_provenance": "regex-cascade"
  }
}

That page has no schema.org markup, so only a name and description are found. A business page that publishes schema.org JSON-LD returns phone, address, rating and more, with _extraction_method: "json-ld".

Pass a schema to extract an exact JSON shape with an LLM (the model is picked for you). See /v1/extract for the completeness + provenance fields in full, and credits.

Next steps