Docs
Crawl
POST /v1/crawl finds and reads pages from a start URL. 1 credit per page crawled. Supports async runs. View as Markdown
POST /v1/crawl finds the pages of a site and reads them. Costs 1 credit per page read. Pass async: true to return immediately with a run id; a request that runs longer than the response window also returns 202 with a run id. Poll GET /v1/runs/{id} for the result. With no includePaths, a start URL that has a path stays under that path.
Product page: /crawl.
Example
curl -s -X POST https://webcrawl.app/v1/crawl \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://docs.example.com/guides","maxPages":25,"excludePaths":["/guides/archive"]}'
Request body
url(string (required)): Start URLmaxPages(integer): Most pages to read (limitis accepted as an alias)includePaths/excludePaths(string[]): Path scope filtersincludeSubdomains(boolean): DefaultfalseonlyRootDomain(boolean): Restrict to the root domainextractStructured(boolean): Also extract structured data from each page (adds credits per page)async(boolean): Return a run id immediatelytimeout(integer): Milliseconds per page (default 20000)
Related
- Map to discover URLs without reading bodies
- Scrape for a single page
- API reference