Read a whole website
Up to 500 pages of a site as clean text, in one request.
Chab starts at a page and follows its links on the same site, up to 500 pages. Your agent gets each page as clean text with its title. You can keep it to one part of the site, like the docs. Or give it your own list of pages. Chab reads one page at a time and keeps to the rules in the site's robots.txt. You pay for the pages it read. That is 1 credit a page, or 10 when a page has to be opened in a browser.
Paste this into your AI agent
Set up Chab for me: fetch https://www.chab.ai/agent-setup.md?v=497c0f and follow it. Then use Chab to read the first 10 pages of the Python tutorial at https://docs.python.org/3/tutorial/ and tell me in one sentence what each page teaches.
Your agent connects Chab and then runs it. Price: 1 credit per page, 10 credits when it opens the page in a browser. The free credits cover a first try. How it works in each app
- Returns
- JSON result
- REST endpoint
POST /v1/scrape/crawl- Over MCP
- Call
chab_operation_startwith"scrape.crawl"
What you get
Example request
{ "url": "https://docs.python.org/3/tutorial/", "max_pages": 2}Example result
{ "data": { "result": { "url": "https://docs.python.org/3/tutorial/", "max_pages": 2, "pages_read": 2, "pages_failed": 0, "pages_skipped": 0, "pages_left": 16, "stopped_because": "max_pages", "credits_used": 2, "pages": [ { "url": "https://docs.python.org/3/tutorial/", "status": 200, "title": "The Python Tutorial", "rendering": "direct", "markdown": "Tip\n\nThis tutorial is designed for *programmers* that are new to the Python language, **not** *beginners* who are new to programming.\n\nPython is an easy to learn, powerful programming language..." }, { "url": "https://docs.python.org/3/tutorial/appetite.html", "status": 200, "title": "1. Whetting Your Appetite", "rendering": "direct", "markdown": "If you do much work on computers, eventually you find that there’s some task you’d like to automate..." } ] }, "artifacts": [], "warnings": [], "result_expires_at": "2026-11-19T10:48:14+00:00" }, "meta": { "request_id": "req_123" }}You can also run this tool on a schedule as a monitor. Chab then keeps every result and emails you when it changes. Monitors need bought credits or a monthly plan. How monitors work
Inputs
| Field | Type | Details |
|---|---|---|
url | string | Where the crawl starts. It follows links on the same site, within the folder of this URL unless include_paths says otherwise.Up to 2048 characters |
urls | array of string | Read exactly these pages instead, on any sites. No links are followed. |
max_pages | integer | Most pages to read, 1 to 500. With urls, the default is the length of the list.Default 10. Min 1 max 500 |
include_paths | array of string | Follow only links whose path starts with one of these, such as /blog/. "*" matches any characters. The default is the folder of url. |
exclude_paths | array of string | Never follow links whose path starts with one of these. |
include_subdomains | boolean | Also follow links to subdomains of the site.Default false |
rendering | string | direct: fetch each page (1 credit). browser: open each page in a browser first, for sites drawn by JavaScript (10 credits). auto: fetch first; on Pro and Scale open a page in a browser when it cannot be read.One of direct, browser, auto. Default "direct" |
timeout_ms | integer | Time limit per page, in milliseconds.Default 10000. Min 1000 max 60000 |
max_credits | integer | Most credits the crawl may use. It stops when the next page would go over. At least 10 with browser rendering.Min 1 max 100000 |
How to call it
AI apps use it through hosted MCP. Coding agents can also use the CLI, and your own code can call the API. Each call starts a job, and your agent picks up the result when it is ready.
curl -X POST https://www.chab.ai/v1/scrape/crawl \ -H "Authorization: Bearer CHAB_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: scrape-crawl-001" \ -d '{"url":"https://docs.python.org/3/tutorial/","max_pages":2}'Read a whole website result
{ "data": { "result": { "url": "https://docs.python.org/3/tutorial/", "max_pages": 2, "pages_read": 2, "pages_failed": 0, "pages_skipped": 0, "pages_left": 16, "stopped_because": "max_pages", "credits_used": 2, "pages": [ { "url": "https://docs.python.org/3/tutorial/", "status": 200, "title": "The Python Tutorial", "rendering": "direct", "markdown": "Tip\n\nThis tutorial is designed for *programmers* that are new to the Python language, **not** *beginners* who are new to programming.\n\nPython is an easy to learn, powerful programming language..." }, { "url": "https://docs.python.org/3/tutorial/appetite.html", "status": 200, "title": "1. Whetting Your Appetite", "rendering": "direct", "markdown": "If you do much work on computers, eventually you find that there’s some task you’d like to automate..." } ] }, "artifacts": [], "warnings": [], "result_expires_at": "2026-11-19T10:48:14+00:00" }, "meta": { "request_id": "req_123" }}Price: 1 credit per page, 10 credits when it opens the page in a browser. See all prices
More in Read web pages
Want to try Chab with your agent?
Copy the prompt and paste it into your AI. Your agent starts with free credits and doesn't need an account.