# Scrape a web page.

> Scrape a public web page into Markdown, links, tables and fields your agent reads in fewer tokens than raw HTML, with an Evidence Record of where each result came from.

The page: /scrape/

Give Octocrawl a public URL. You get the page as Markdown, its links and tables, the fields you name, and an Evidence Record of where each one came from.

## What you get

- **Clean Markdown** (Built for LLMs): Menus, ads, sidebars and footers are stripped away. Your model reads the content and nothing else.
- **Precise selection** (Just the part you need): Point at sections with CSS selectors and leave the rest of the page behind.
- **Structured JSON** (Fields with receipts): Describe the fields in a JSON Schema. Each value comes back typed, with the exact spot on the page it was read from. No guessing, no made-up values.
- **Every table, ready to use** (Tables as data): Each data table comes back as rows for a dataframe, a spreadsheet or a prompt.
- **JavaScript, rendered** (Real browser): Pages built with React, Vue or Next.js open in a real browser automatically, so content drawn by scripts comes back too.
- **PDFs and files** (Docs to data): PDFs come back as Markdown, page by page. CSV, JSON and text files come back as text.

## Built for

- **Web access for any agent** (Agents · MCP): Give Claude Code, Codex, Cursor, OpenCode or any MCP client a scrape tool. It reads clean Markdown and knows when a read failed instead of guessing.
- **Clean input for every model** (Pipelines · SDK): Pages become Markdown and tables your RAG pipeline can index straight away, each output hashed so you know exactly what you stored.
- **Data that stays current** (Monitoring · Webhooks): Pull prices, specs and tables as typed JSON. Run Octocrawl on your own computer to read them again on a schedule and get every change at your webhook.

## How it reads a page

1. **HTTP**: Octocrawl first asks the site for the page’s HTML, the way a search engine does: no browser and nothing to install, the quickest and cheapest way to read a page. In one early user’s list of 72 pages, 60 stopped here. (Hosted and on your computer; 1 credit hosted)
2. **A browser**: Some pages send almost empty HTML and build themselves with JavaScript. Octocrawl sees the thin result, opens the page in Chromium, lets its scripts run and reads what a person would see. (Hosted and on your computer; 5 credits hosted; Locally: npx playwright install chromium)
3. **Your installed Chrome**: Some sites check whether a real browser is visiting and turn automated ones away. With enhanced access set up on your computer, Octocrawl goes on to read those in the Google Chrome installed there: real Chrome, with its own identity and a fresh, empty profile for every page. (On your computer; access: "enhanced" with an access grant)
4. **Your own Chrome**: For pages behind your sign-in, you can choose to read them in the Chrome you already use, signed in as you. Octocrawl fetches nothing itself: your Chrome loads the page, and only on the sites you allowed with a click. (On your computer; You choose it: access: "my-browser")

## The Evidence Record

- **Where it came from**: The URL you asked for, the URL it was read from, and every redirect in between.
- **When, and was it allowed**: When it was fetched, the HTTP status, what the site’s robots.txt said, and which step read it.
- **A fingerprint of every byte**: SHA-256 hashes of the page’s bytes and of the Markdown and JSON you got. Change one byte and the hash changes.
- **Even a refusal**: A page Octocrawl won’t read still gets a record that says why, and costs nothing.

## What it costs

The three pages above were read over HTTP: 1 credit each on an account, or within the 20 free pages a day without a key. A free account gets 500 credits a month. On your own computer there is no limit. Paid credit packs aren’t sold yet.

| Result | Credits |
| --- | --- |
| Page read over HTTP | 1 |
| Page read in a browser | 5 |
| Page not found (404, 410) | 1 |
| Blocked, not allowed, or nothing read | 0 |

## Questions

### What’s the difference between scrape, map and crawl?

Scrape reads one page. Map lists a site’s URLs without reading each page. Crawl follows links from a start page and scrapes each one; with an account it runs on hosted Octocrawl up to 500 pages, as does batch up to 1,000 URLs, and larger jobs run on your own computer with `npx octocrawl serve`.

### Does it read pages that need JavaScript?

Yes. It reads over HTTP first and switches to a browser when the HTML is an empty shell. Hosted, browser reads need an API key and cost 5 credits.

### Does it respect robots.txt?

Hosted, yes: it never requests a disallowed page. On your own computer, a URL you give it is read, and the robots.txt decision is recorded.

### Can it read PDFs?

The text layer, page by page. No OCR. Files up to 5 MiB hosted.

### Does it use an LLM?

Not by default. Markdown, tables and fields come from the page itself. A model fallback for fields is available and off unless you turn it on.

Try a page of your own: [URL to Markdown](/tools/url-to-markdown/), five a day without signing up.
