Get data from pages
Say what you need from a page, and get it back as data.
Tell it in plain words what you need from a page, like the price of a product and whether it is in stock. Or give it the exact fields as a JSON schema. Chab reads the page and returns the data in that shape, with the address of the page. Your agent can send up to 20 pages at once to build a table across many shops. A page costs about 2 or 3 credits.
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 get the latest Python version and its release date from https://www.python.org/downloads/.
Your agent connects Chab and then runs it. Price: From 2 credits per page, by its length. The free credits cover a first try. How it works in each app
- Returns
- JSON result
- REST endpoint
POST /v1/scrape/extract- Over MCP
- Call
chab_operation_startwith"scrape.extract"
What you get
Example request
{ "urls": [ "https://www.python.org/downloads/", "https://www.python.org/downloads/windows/" ], "prompt": "The latest stable Python 3 version on this page and its release date.", "schema": { "type": "object", "properties": { "version": { "type": "string" }, "release_date": { "type": [ "string", "null" ] } }, "required": [ "version", "release_date" ], "additionalProperties": false }}Example result
{ "data": { "result": { "results": [ { "url": "https://www.python.org/downloads/", "final_url": "https://www.python.org/downloads/", "status": 200, "title": "Download Python | Python.org", "data": { "version": "3.15.2", "release_date": "Oct. 25, 2026" }, "error": null }, { "url": "https://www.python.org/downloads/windows/", "final_url": "https://www.python.org/downloads/windows/", "status": 200, "title": "Python Releases for Windows | Python.org", "data": { "version": "3.15.2", "release_date": "Oct. 25, 2026" }, "error": null } ], "pages": 2, "extracted": 2, "failed": 0, "usage": { "input_tokens": 46764, "output_tokens": 68 } }, "artifacts": [], "warnings": [], "result_expires_at": "2026-11-19T10:49:02+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 | The page to read.Up to 2048 characters |
urls | array of string | Up to 20 pages, each read and answered on its own. |
prompt | string | What to get from each page, in plain words, such as "product name, price and whether it is in stock".Up to 4000 characters |
schema | object | A JSON schema for the data of one page, with type object at the root. Each answer is checked against it and repaired once when it does not match. |
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 "auto" |
timeout_ms | integer | Time limit per page, in milliseconds.Default 10000. Min 1000 max 60000 |
max_output_tokens | integer | Most tokens of the answer for each page.Default 2048. Min 16 max 8192 |
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/extract \ -H "Authorization: Bearer CHAB_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: scrape-extract-001" \ -d '{"urls":["https://www.python.org/downloads/","https://www.python.org/downloads/windows/"],"prompt":"The latest stable Python 3 version on this page and its release date.","schema":{"type":"object","properties":{"version":{"type":"string"},"release_date":{"type":["string","null"]}},"required":["version","release_date"],"additionalProperties":false}}'Get data from pages result
{ "data": { "result": { "results": [ { "url": "https://www.python.org/downloads/", "final_url": "https://www.python.org/downloads/", "status": 200, "title": "Download Python | Python.org", "data": { "version": "3.15.2", "release_date": "Oct. 25, 2026" }, "error": null }, { "url": "https://www.python.org/downloads/windows/", "final_url": "https://www.python.org/downloads/windows/", "status": 200, "title": "Python Releases for Windows | Python.org", "data": { "version": "3.15.2", "release_date": "Oct. 25, 2026" }, "error": null } ], "pages": 2, "extracted": 2, "failed": 0, "usage": { "input_tokens": 46764, "output_tokens": 68 } }, "artifacts": [], "warnings": [], "result_expires_at": "2026-11-19T10:49:02+00:00" }, "meta": { "request_id": "req_123" }}Price: From 2 credits per page, by its length. 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.