# Web scraper online: URL to markdown and JSON | Spider

Paste a URL and run a web scraper in your browser, with no API key or signup. Read the markdown and JSON, then send the same request from curl, Python or Node.

Canonical: https://spider.cloud/web-scraper/

## The web scraper for AI agents, built to scale.

Spider runs on its own browser engine and network, so it stays fast and reliable under load. Pay as you go starts at 10,000 requests per minute and rises through four levels to 80,000 as the account uses more. Paste a URL and press Run to try it before you sign up.

Request

POST api.spider.cloud/scrape

url

A sample, until you press Run: example.com, sent from this page on 2026-11-16. Your run replaces it, and the readings beside it.

Example Domain

This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.

- Elapsed

  1.287 s

- Cost

  $0.0000223

- Status and size

  - 200
  - 171 B

An attempt bills only the bandwidth it used and the time it ran. [Get an API key](/register/)

Try

Keyless access is /scrape only. It is rate limited. On a 429, honor Retry-After. Get a key for anything sustained.

```
[
  {
    "content": "Example Domain\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
    "costs": {
      "ai_cost": 0,
      "ai_cost_formatted": "0",
      "bytes_transferred_cost": 4.14984375e-7,
      "bytes_transferred_cost_formatted": "0.0000004149843749999999903398",
      "compute_cost": 0.00000228534375,
      "compute_cost_formatted": "0.0000022853437500000001602884",
      "file_cost": 8.114062500000002e-7,
      "file_cost_formatted": "0.0000008114062500000001156887",
      "total_cost": 0.000022261734375000002,
      "total_cost_formatted": "0.0000222617343750000013071510",
      "transform_cost": 0.000018750000000000002,
      "transform_cost_formatted": "0.0000187500000000000010408341"
    },
    "duration_elasped_ms": 716,
    "error": null,
    "metadata": {
      "automation_data": null,
      "crawl_id": null,
      "description": "",
      "domain": "example.com",
      "extracted_data": null,
      "file_size": 171,
      "final_url": null,
      "keywords": null,
      "og_image": null,
      "original_url": "https://example.com/",
      "pathname": "/",
      "resource_type": ".md",
      "title": "Example Domain",
      "url": null,
      "user_id": "00000000-0000-0000-0000-000000000000"
    },
    "status": 200,
    "url": "https://example.com/"
  }
]
```

Published 2026-11-16, updated 2026-11-18.

## Paste a web address and get the page back as text.

You do not need to write code to use the box above. Paste the address of any public page and press Run, and the page comes back as markdown, which is plain text that keeps the headings and the links. Trying it here costs nothing, and it is rate limited. With an account, pay as you go starts from $0.27 per 1,000 pages. That is what documentation pages cost on 2026-11-06, and the price moves with the kind of site.

The [cost table](#ws-cost) has the three kinds of site we measured.

The row under the result saves it to your computer. Markdown is the file to keep, or to paste into a document or a chat with an AI model. Links CSV is a sheet with one row for each link on the page, and it opens in Excel, Numbers or Google Sheets. JSON is the whole response, for the developer who asks you for it.

[Free web scraper: three ways to scrape a page without paying](/blog/free-web-scraper/) sets this tool beside two other ways to scrape a page for free. When a single page is not enough, [How to scrape a website, step by step](/blog/how-to-scrape-a-website/) goes from the first request to a whole site.

## What is a web scraper?

A web scraper is a program that fetches a web page and returns its content in a form a person or another program can use, such as plain text, markdown, JSON or the rows of a spreadsheet. The one on this page takes an address and returns the page as markdown: the words, headings and links, without scripts or styling.

Web scrapers come in four kinds, and they differ most in what you have to keep working.

kinds of web scraper

| Kind                          | Who it suits                                                               | What you maintain                                    | Where it breaks                                                                                                               |
| ----------------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Browser extension             | Someone who wants a table from pages they can open, and writes no code.    | A recipe of clicks for each site.                    | It runs in your own browser, so a large job ties up your computer. The recipe stops working when the site changes its layout. |
| No-code desktop or cloud tool | A team that wants scheduled exports to a spreadsheet and has no developer. | A visual workflow for each site.                     | A site the builder has no step for, and every workflow you rebuild after a redesign.                                          |
| Library you run yourself      | A developer who wants every part on their own machines.                    | The code, the browsers, the retries and the servers. | Upkeep grows with volume. Pages that need a browser need one you keep running.                                                |
| Hosted API                    | A developer or an AI agent that wants a page back from one request.        | The code that calls it.                              | It is not point and click. Past a single page you write a request, and the bill follows usage.                                |

Spider is the fourth kind, a hosted [web scraper API](/api/scrape/), and the box at the top of this page is the part of it that needs no code. If you want to click a table on a page and collect every product in a category into a spreadsheet without writing anything, a browser extension or a no-code tool fits better than Spider does. If you want the code on your own machines, the spider crawler is the third kind, and it is on the [open source page](/open-source/).

## How to scrape a website with this tool.

1. Paste the address of a public page into the field and press Run.
2. Read the result. The markdown view shows the page as text with its headings and links. The JSON view shows the whole response, with the status, the final URL and the cost of the request. The Download row under it saves the markdown, the JSON, or the page's links as a CSV file.
3. Copy the request into your code. The [next section](#ws-code) has it in curl, Python and Node.js.
4. Get a key for anything past single pages. Crawling a site, search, and extraction with a schema or a prompt all need one. For a whole site, the [Crawl API reference](/docs/api/crawl/) has the parameters that bound a crawl.

## The same request from Python, Node.js or curl.

Install a client with `pip install spider-client` or `npm install @spider-cloud/spider-client`, or skip the install and use curl.

The curl works as written, with no key. The Python and Node clients read `SPIDER_API_KEY` from the environment. The three send the same `url`, `return_format` and `metadata`.

The response is a JSON array with one object for each page. `content` holds the page in the format you asked for. `status` is what the site answered with. `costs.total_cost` is the price of the request in dollars, to more decimal places than you will want.

The time field is spelled `duration_elasped_ms` in the API, so spell it that way in your code. Every parameter is in the [Scrape API reference](/docs/api/scrape/), and the [web scraping API page](/api/scrape/) lists the output formats and the extraction options. The methods and the steps behind the request are in [the guide to web scraping](/web-scraping/).

```
curl -X POST \
  https://api.spider.cloud/scrape \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "return_format": "markdown",
    "metadata": true
  }'
```

```
from spider import Spider

client = Spider()

pages = client.scrape_url(
    "https://example.com",
    params={"return_format": "markdown", "metadata": True},
)

print(pages[0]["content"])
```

```
import { Spider } from "@spider-cloud/spider-client";

const client = new Spider();

const pages = await client.scrapeUrl("https://example.com", {
  return_format: "markdown",
  metadata: true,
});

console.log(pages[0].content);
```

## Ten pages came back 15 times smaller as markdown.

On 2026-11-05 we fetched ten public pages as raw HTML and as markdown and counted the tokens in each. Markdown was 15x smaller at the median. The range was wide. The Hacker News front page is already mostly text and shrank 2.9x. A Kubernetes documentation page, a short chapter inside 480 KB of navigation, scripts and inline SVG, shrank 47x. The ten pages, the tokenizer and the curl are in [What a web page costs in tokens](/blog/what-a-web-page-costs-in-tokens/).

A second run on 2026-11-06 took 60 documentation pages from one site. The HTML was 7,428,798 tokens and the markdown was 202,123, about 37 times smaller. That run is in [Build a fine-tuning dataset from the web in two API calls](/blog/build-fine-tuning-dataset-from-the-web/).

## Named fields by CSS selector, or the JSON a page already carries.

Markdown is the page for a model to read. When you want a title and a price as values, the same endpoint takes two more parameters. Both need a key.

`css_extraction_map` picks fields by CSS selector. You give each field a name and a list of selectors, under a URL path. The `/` key matches every page. Any other key matches only the page whose path is exactly that key. The fields come back under `css_extracted`, an object on that page's entry in the response array.

`return_json_data` is a boolean. Set it and each page also carries `json_data`, the JSON found in the script tags the site uses for server rendering. Send it once before you write selectors, because a page that embeds its data this way may not need any.

For a well-known site, check the [scraper directory](/scrapers/) before you write selectors. It lists scraper configs by the name of the site.

request body

```
{
  "url": "https://example.com",
  "css_extraction_map": {
    "/": [
      { "name": "title", "selectors": ["h1"] },
      { "name": "price", "selectors": [".price .value"] }
    ]
  },
  "return_json_data": true
}
```

POST it to /scrape with a key. It asks for two fields on every page and for the embedded JSON.

## The smart default cost the same as plain HTTP on 100 pages.

Some pages send their content in the first HTML response. Others send a shell and build the page with JavaScript, and a plain fetch of those returns almost nothing. With a key, the `request` field decides how Spider fetches. We counted both kinds on 39 pages in [the guide to what each kind of fetch returns](/web-scraping/).

On 2026-11-06 we sent four sets of 25 pages in `http` mode and again in `smart`, the default. The cost per 1,000 pages matched on all four sets, within a cent. That run compared those two modes and no other. The sets and the figures are in [Web scraping at scale: cost per 1,000 pages by kind of site](/blog/true-cost-of-web-scraping-at-scale/).

## The browser passed 80 of 80 tasks on 2026-09-18.

For the browser itself, on 2026-09-18 we ran a third party's 80-task fidelity bench with its harness unchanged and passed 80 of 80. Each task opens a site, does one basic interaction and reads the content. The harness checks one thing per task, which is whether the page loaded for the browser.

That is one day's reading, and the sites it tests change on their own schedule. Some later run will go worse than this one. The configuration we ran and the rest of the commands are in [Spider Browser passes 80/80 on Browser Fidelity Bench](/blog/spider-browser-stealth-benchmark/), and the [benchmarks page](/benchmarks/) keeps this run in a dated record with the others we have published.

run it yourself

```
git clone https://github.com/spider-rs/benchmark.git
```

The public repository holds the bench and our results. You need a key to run it.

## A documentation page cost a fifth of a product page.

Pay as you go starts from $0.27 per 1,000 pages, and the kind of site moves that figure. Behind it are two meters: from $1 per GB of bandwidth and $0.0001 per minute a request runs. Spider bills a page by what it weighs, so a heavier page costs more. On 2026-11-06 we scraped 25 pages of each kind in smart mode with markdown output. It was the first day of a daily run reported through 2026-11-17, and the rule that picked each set is in [Web scraping at scale: cost per 1,000 pages by kind of site](/blog/true-cost-of-web-scraping-at-scale/).

An attempt bills only the bandwidth it used and the time it ran. A blocked page usually costs a fraction of a cent. Pay as you go starts at 10,000 requests per minute and rises through four levels to 80,000 as the account uses more.

Unlimited is the flat option. You buy requests at once and run unlimited requests through them. It starts at $40 a month for 2 requests at once in http mode. Both plans are on the [pricing page](/pricing/).

per 1,000 pages

| Kind of page        | Pay as you go |
| ------------------- | ------------- |
| Documentation       | $0.27         |
| Articles            | $0.33         |
| Store product pages | $1.38         |

We ran the measurements on this page between 2026-09-18 and 2026-11-06. Apart from the sample in the tool, every number comes from one of the four posts linked above, and each post holds its method.

## What to look for in a web scraper.

- It saves the browser for the pages that need one. A browser downloads every script a page asks for, so a scraper that renders everything bills you for work many pages do not need. On Spider the smart default decides page by page.
- It returns what your next step reads. A language model wants markdown and a database wants named fields. In the token run above, the median page was 72,093 tokens as raw HTML and 4,384 as markdown.
- Its bill follows the page. Ask what a heavy page costs and what a blocked one costs before you run a million of them. The table above answers the first and the FAQ below answers the second.
- It reads robots.txt by default. On Spider the respect_robots parameter is true unless you change it.
- It grows from one page to a whole site. With a key, /crawl follows links from a starting URL and /search finds pages from a query, and both return the same formats as /scrape.

The first point and the last each have a post behind them. [How web scraping works: what a plain fetch gets and misses](/blog/how-web-scraping-works/) lists the pages we fetched both ways and what each fetch returned. [Web scraping vs web crawling: when to crawl and when to scrape](/blog/web-scraping-vs-web-crawling/) sets one crawl call against a scrape call for each URL it returned.

## Questions before the first request.

Is this web scraper free to use?

You can run it here without an account. Keyless access is /scrape only. It is rate limited. On a 429, honor Retry-After. Get a key for anything sustained. Without a key, every route other than /scrape returns 402, except /unlimited/\*, which returns 401. The tool at the top of this page sends that keyless request. The spider crawler behind it is also open source under the MIT license, if you would rather run it on your own machines.

Does the web scraper return JSON?

Every response is JSON. It is an array with one object per page, and each object carries the content, the status, the final URL and the cost of that request. The JSON view in the tool shows the whole body, indented. With a key, the same endpoint takes css_extraction_map, which returns named fields picked by CSS selector under css_extracted, and return_json_data, which returns the JSON a site embeds in its script tags. Extraction with a schema or a prompt also needs a key.

What formats can the web scraper return?

The return_format parameter takes raw, bytes, text, html2text, markdown, commonmark, xml, empty and screenshot. raw is the default, and it is the unmodified HTML. The parameter also takes an array of formats. A value the API does not recognize falls back to raw, so check the spelling when you asked for markdown and got HTML. The tool on this page also saves a result as a .md file, a .json file or a CSV of the links.

Why did a page come back empty?

The usual cause is a page that builds its content with JavaScript. A plain HTTP fetch of that page returns the shell and little else. The next answer has the setting that renders it. If the status field says the site refused, read the answer after that.

Does the web scraper run JavaScript?

With a key, the request parameter decides. http runs no JavaScript. browser renders the page. smart, the default, tries http and moves to a browser only when the page needs it. The section on the smart default has what smart cost against http on 2026-11-06.

Why did a site return a 403?

The site refused the request. The status field of each page is the page's own HTTP status, so the API can answer 200 while the page inside the response says 403. A blocked page usually costs a fraction of a cent.

Does it follow robots.txt?

Yes, by default. The respect_robots parameter is true unless you change it. The cost run on this page left it at the default for all of its pages.

Can it scrape a whole website?

Yes, with a key. /crawl takes a starting URL and follows its links. On 2026-11-06 one crawl call returned 60 documentation pages as markdown in 6.5 seconds. If you have a question and no URL, /search takes a query and can return each result with its page content. On the same day one search call returned ten results as markdown in 4.5 seconds for $0.0041.

Can it scrape pages behind pagination or infinite scroll?

With a key, in two ways. When the next page is a link, /crawl follows links from the starting URL and returns one object per page, and the limit parameter bounds the crawl. When the page loads more as you scroll, the scroll parameter scrolls the page as new content loads, for up to the number of milliseconds you set. scroll needs a browser request.

Is web scraping legal?

It depends on the jurisdiction, on the site's terms and on the kind of data, and this page does not decide it for you. What a site asks of crawlers is in its robots.txt, and the guide to web scraping counts what 67 top sites ask for in theirs.

How many tokens does a scraped page take in a model's context?

It depends on the page and the format. In our run of ten public pages on 2026-11-05, the median page was 72,093 tokens as raw HTML and 4,384 as markdown, counted with the o200k_base encoding. Markdown keeps the links and headings, which an agent uses to decide what to fetch next. Plain text was smaller than markdown on 8 of the 10 pages.

Do I need coding skills to use a web scraper?

No, not to scrape one page. Paste a URL, press Run, and download the markdown, the JSON or a CSV of the links. Crawling a whole site and pulling named fields go through the API, and that means a curl command or a few lines of Python or Node.js. If you want to point at a table and collect many pages into a spreadsheet with no code at all, a browser extension or a no-code tool is the better fit.

Can I export scraped data to Excel for free?

You can open it in Excel. The Links CSV button under the tool saves one row for each link on the page, with its text and its address, and Excel, Numbers and Google Sheets all open a CSV. The file is built in your browser from the response you already have, so it sends no request and adds no charge. There is no .xlsx export. For rows of named fields, such as a price for each product, use css_extraction_map with a key and turn the JSON into rows yourself.

Can a web scraper scrape websites that require a login?

The tool on this page fetches public pages only, and it has no login step. With a key, the cookies parameter takes a Cookie header value and sends it with each request, for pages that need a session. You copy that value from a browser where you are signed in. Use it only with an account that is yours, and inside the terms of the site.

Can I schedule web scraping jobs automatically?

Not from this page. The tool runs when you press Run, and a /scrape or /crawl request runs once, when you send it. To repeat a job, call the API from a scheduler you already have, such as cron or a workflow runner.

How do I avoid getting blocked when scraping?

Fetch only the pages you need, space your requests out, and follow what the site asks in its robots.txt, which Spider does by default. An empty page is not always a refusal. A page that builds itself with JavaScript comes back empty from a plain fetch, and with a key the smart default loads it in a browser. Some sites will still say no, and the status field on that page tells you so.

What is a free AI web scraper?

An AI web scraper takes the names of the fields you want, or a sentence that describes them, where an ordinary scraper takes CSS selectors. A model then finds the values on the page. On Spider that is AI Scrape, part of AI Studio, which is a paid add-on to pay as you go, so it is not the free part. The free part is the tool on this page. It returns a page as markdown, and you can paste markdown into any AI model.

How many requests can I send?

Pay as you go starts at 10,000 requests per minute and rises through four levels to 80,000 as the account uses more. Each response carries your current limit in the RateLimit-Limit header. Past the limit the API answers 429. Wait the number of seconds in Retry-After, then send the request again.

The crawler in the first answer is MIT licensed. Its repositories and the install command are on the [open source page](/open-source/). For the question on AI scrapers, [AI Scrape returns the fields you name as JSON](/ai/scrape/).

## A key is for anything sustained.

Pay as you go from $1 per GB of bandwidth plus $0.0001 per minute a request runs. No subscription. Top up from $5.

[Get an API key](https://spider.cloud/register/)
