Skip to main content

Overview

Use Crawl when you need content from multiple pages under one site. The endpoint streams Server-Sent Events as pages finish, so your application can process pages without waiting for the full crawl to complete. The public crawl endpoint currently returns markdown page content only.

Endpoint

POST /api/v2/crawl_stream

Quickstart

Request Parameters

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

Stream Events

Each SSE frame contains a JSON object under data:.

Page

Usage

Done

Error

Pricing

Crawl reports usage as $0.001 per successfully scraped page in the usage event. Advanced proxy can improve success rates on protected sites. Use the emitted usage.cost and your dashboard ledger as the billing source of truth.

When to Use Map First

Use Map before Crawl when you want to inspect or filter URLs before fetching page content.

Errors

See Errors & Refunds for the shared error format.

More Examples

Streaming Crawl Recipes

Persist pages, handle usage events, and retry failures.

Map API

Discover URLs before crawling content.