Skip to main content

Overview

Use the Scraper API when you already have a URL and need page content. It supports:
  • markdown for LLM-ready text
  • html for raw rendered markup
  • screenshot for a base64 PNG capture
PDF URLs are not scraped by this endpoint. Use the PDF Content API for PDF text extraction.

Endpoint

POST /api/v2/scrape

Quickstart

Formats

You can request multiple formats in one call:
pdf is accepted by some clients for backward compatibility, but this endpoint does not generate PDF output. Direct PDF URLs return a validation error. Use /api/v2/get_pdf_content.

Request Parameters

HTTP requests use snake_case. The TypeScript SDK uses camelCase, for example advancedProxy and mainContentOnly.

Response

Pricing

Base cost is $0.001 per requested supported format. Advanced proxy adds $0.004 when enabled.

Errors

See Errors & Refunds for the shared error format.

More Examples

Search + Scrape Pipeline

Search the web, scrape pages, and answer from collected context.

Extract API

Use structured extraction when you need schema-shaped data.