POST
cURL
Start a crawl. It runs in the background: keep the id and check it with Get Crawl Status. For a guide with examples, see Crawl.

Authorizations

Authorization
string
header
required

Your API key from the dashboard. It starts with sr-.

Body

application/json
url
string
required
Example:

"https://docs.python.org/3/tutorial/"

limit
integer
default:10

Most pages to read.

Required range: x <= 10000
includePaths
string[]

Only follow URL paths that match these regular expressions.

maxDiscoveryDepth
integer

How many links deep to go from the start URL.

scrapeOptions
object

Options for every page. Defaults to Markdown.

Response

The crawl started.

success
boolean
Example:

true

id
string

The crawl's id.

url
string

Where to check the crawl: GET /crawl/{id}.

creditsReserved
integer

Credits held for the crawl until it ends.