APIs / Web Scraper / Crawl

Web Scraper: Crawl

Crawl from Web Scraper as JSON. 1–110 credits per successful call.

POST /v1/web-scraper/crawl

Parameters

Send parameters in the JSON body.

ParameterTypeRequiredAllowed values
urlstringRequiredUp to 2,048 characters
limitintegerOptionalAny
max_depthintegerOptionalAny
include_pathslist of stringOptionalUp to 200 characters
exclude_pathslist of stringOptionalUp to 200 characters
formatstringOptionalmarkdown, html
include_subdomainsbooleanOptionalAny

Example request

Web Scraper
POST/v1/web-scraper/crawl
{
  "success": true,
  "data": {
    "start_url": "https://www.python.org",
    "pages_returned": 3,
    "truncated": true,
    "pages": [
      {
        "url": "https://www.python.org/",
        "depth": 0,
        "status": 200,
        "title": "Welcome to Python.org",
        "content": "**Notice:** This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.\n\n\n\n  [Skip to content](#content \"Skip to content\")\n\n [ ▼ Close ](#pyth…",
        "content_truncated": false,
        "links": [
          "https://www.python.org/",
          "https://www.python.org/psf/",
          "https://docs.python.org"
        ]
      },
      {
        "url": "https://www.python.org/psf-landing/",
        "depth": 1,
        "status": 200,
        "title": "Python Software Foundation",
        "content": "**Notice:** This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.\n\n\n\n  [Skip to content](#content \"Skip to content\")\n\n [ ▼ Close ](#pyth…",
        "content_truncated": false,
        "links": [
          "https://www.python.org/",
          "https://www.python.org/psf/",
          "https://docs.python.org"
        ]
      },
      {
        "url": "https://www.python.org/jobs/",
        "depth": 1,
        "status": 200,
        "title": "Python Job Board | Python.org",
        "content": "**Notice:** This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.\n\n\n\n  [Skip to content](#content \"Skip to content\")\n\n [ ▼ Close ](#pyth…",
        "content_truncated": false,
        "links": [
          "https://www.python.org/",
          "https://www.python.org/psf/",
          "https://docs.python.org"
        ]
      }
    ]
  },
  "meta": {}
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Run this endpoint in the playground with your own parameters. 1–110 credits per successful call (1 credit per page fetched, 3 per page that needs a browser, at most 110 per call); failed calls are free.

Response fields

data has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
start_urlurl
pages_returnedinteger
truncatedboolean
pagesobject[]