What you send

POST a JSON body to /v1/scrape with your API key in the X-API-Key header.

url
A public http or https URL. Required.
options.formats
markdown (default), html, json, summary, links, screenshot, images, branding.
options.render
never, auto (default), or always. auto uses a browser when the page needs one.
options.timeoutMs
Time budget for fetching the page, 1–60 seconds (default 30).
options.waitForMs, waitForSelector
Wait for late content before capturing a rendered page.
options.location.country
Two-letter country code to fetch the page from.
options.json.schema
Your JSON Schema, required for the json format.

What you get back

result.outputs holds one entry per requested format, next to the final URL, HTTP status, and page metadata (title, description, language). Screenshots are private files you download with your API key.

ResponseAbridged.
{
  "success": true,
  "data": {
    "operation": "scrape",
    "state": "completed",
    "result": {
      "url": "https://example.com",
      "finalUrl": "https://example.com/",
      "statusCode": 200,
      "metadata": { "title": "Example Domain", "language": "en" },
      "outputs": {
        "markdown": "# Example Domain\n\nThis domain is for use in …",
        "links": [{ "url": "https://www.iana.org/domains/example", "text": "More information..." }]
      }
    },
    "usage": { "settledCredits": 1 }
  }
}

Scrape runs synchronously by default and waits up to the time budget plus 10 seconds (90 more with a summary). JSON extraction always runs as an asynchronous job you poll.

What Scrape costs

Before a job starts, its maximum cost is reserved. When it finishes, only what was delivered is charged and the rest is released. Failed pages and failed jobs are not charged.

Web Context credit costs
Operation or optionCreditsNotes
Scrape: each page1Includes Markdown, HTML, and links.
Browser rendering+2Charged when the page was rendered in a browser: render "always", a screenshot, or render "auto" deciding to render.
Screenshot+3Plus the +2 for rendering.
Summary or JSON extraction+2 per 40,000 characters, eachPriced by the page text the model reads (up to 120,000 characters, so at most +6). Most pages add +2.
Images or branding+1 each
Scrape served from cache1Instead of the per-format total. Screenshots are never served from the cache.

See plans and all credit costs →

Make your first request in minutes

Create an account, choose a monthly plan or one-time credits, and try any operation in the dashboard playground before you write code.