# Web crawling and scraping API, 99.9% of 1,000 URLs | Spider

In one run, Spider's web crawling and scraping API returned content for 999 of 1,000 URLs and 249 of 250 protected ones. Get Markdown, HTML or JSON.

Canonical: https://spider.cloud/web-crawling-and-scraping/

## Crawl a website. 999 of 1,000 pages came back with content.

In [our run of 1,000 URLs](https://spider.cloud/benchmarks/#api-1000-urls-2026-02-11), 249 of the 250 protected pages came back too. That was one run from one cloud machine on February 11, 2026, and a page counted when it answered 200 with a non-empty body. Spider's web crawling and scraping API follows links across a site or scrapes a single page. It returns Markdown, HTML, or JSON, and opens a native browser for pages that need one.

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

Example crawl of https\://doc.rust-lang.org/book/, and the JSON it returned for one of its 30 pages, trimmed, from a capture made on Sep 9, 2026.

```
curl https://api.spider.cloud/crawl \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/jsonl" \
  -d '{"url": "https://doc.rust-lang.org/book/", "limit": 30,
       "return_format": "markdown", "request": "smart",
       "country_code": "de",
       "whitelist": ["doc\\.rust-lang\\.org/book/"],
       "blacklist": ["print\\.html","/stable/"]}'
```

Response /ch00-00-introduction.html

```
[
  {
    "url": "https://doc.rust-lang.org/book/ch00-00-introduction.html",
    "status": 200,
    "content": "# The Rust Programming Language\nNote: This edition of the book is the same as [The Rust Programming\nLanguage](https://nostarch.com/rust-programming-language-3rd-edition) available in print and ebook format from [No Starch\nPress](https://nostarch.com/).\nWelcome to *The Rust Programming Language*, an introductory book about Rust.\nThe Rust programming language helps you write faster, more reliable software.\n…"
  }
]
```

1 request · 30 pages · 319 KB · captured Sep 9, 2026 [Open in playground](/playground/?mode=crawl\&url=https%3A%2F%2Fdoc.rust-lang.org%2Fbook%2F\&format=markdown\&p.limit=30\&p.request=smart\&p.country_code=de\&src=home-trace)

1,000 URLs through the API, 2026-02-11

- URLs that returned usable content, 99.6% on the protected 250

  99.9%

- throughput over the whole corpus, 182 pages/s on static pages

  74 pages/s

- time to first result on a static page

  45 ms

Sample: 400 static pages, 350 JavaScript-heavy apps and 250 protected pages, shuffled once. The API was called from one cloud machine in us-east-2, so latency includes the network round trip. Throughput is pages returned divided by wall time, retries included. Usable content means HTTP 200 with a non-empty body. Throughput depends on this URL mix and on concurrency.

benchmark

Browser Fidelity Bench V1, 80 tasks.

## 100% engine pass rate.

Spider passed 80/80 tasks on Sep 18, 2026, each a real page on a protected production site. Other providers retain the March 22, 2026 readings published in the blog; they were not re-measured.

Spider 100%

Browser Use Cloud 81%

Anchor 74%

- 100%

  999-URL pass 254 domains, 18 categories

- 0.8s

  To connect median, Nov 17, 2026

- 44ms

  To close a session median, Nov 17, 2026

[Read the March 22, 2026 benchmark](/blog/spider-browser-stealth-benchmark/)

## Three rendering strategies. Switch per request.

The HTTP and browser figures come from 29 documentation, news and store product pages we fetched both ways on November 16, 2026. We took the median pay as you go charge per request for each kind of page, times 1,000, and show the cheapest kind, named under the figure. Cost varies by site, and store pages cost more. We wrote up [what a plain fetch returned against a rendered one](https://spider.cloud/web-scraping/). The smart figure is from [a separate cost run on November 6, 2026](https://spider.cloud/benchmarks/#cost-by-page-kind-2026-11-06). On documentation, article, store and reference pages, smart came within a cent of HTTP per 1,000 pages. The Unlimited plan bills by requests at once instead of by the page, starting at $40 a month for 2 requests at once in http mode.

| Mode                                                                               | What it does                                                         | Per 1,000 requests                        |
| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ----------------------------------------- |
| HTTP Direct fetch, no browser. Static sites, blogs, docs.                          | Direct fetch, no browser. Static sites, blogs, docs.                 | from $0.25 documentation pages            |
| Smart default Detects when JS rendering is needed. Browser only when it has to be. | Detects when JS rendering is needed. Browser only when it has to be. | Within a cent of HTTP November 6 cost run |
| Browser Full browser rendering. SPAs, lazy loading, infinite scroll.               | Full browser rendering. SPAs, lazy loading, infinite scroll.         | from $0.67 documentation pages            |

## Same payload in any language.

To read a response before you write any code, paste a URL into [the scraper that runs in the page](https://spider.cloud/web-scraper/).

request

POST /crawl

```
curl -X POST https://api.spider.cloud/crawl \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://doc.rust-lang.org/book/",
    "limit": 30,
    "return_format": "markdown"
  }'
```

```
import requests

response = requests.post(
    "https://api.spider.cloud/crawl",
    headers={
        "Authorization": f"Bearer {SPIDER_API_KEY}",
    },
    json={
        "url": "https://doc.rust-lang.org/book/",
        "limit": 30,
        "return_format": "markdown",
    },
)

pages = response.json()
print(f"Crawled {len(pages)} pages")
```

```
const response = await fetch("https://api.spider.cloud/crawl", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.SPIDER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://doc.rust-lang.org/book/",
    limit: 30,
    return_format: "markdown",
  }),
});

const pages = await response.json();
console.log(`Crawled ${pages.length} pages`);
```

### What comes back

- HTML

  Raw or cleaned, with optional tag filtering

- Markdown

  Clean Markdown for LLMs and RAG pipelines

- Plain text

  Stripped text content, no markup

- JSON

  Typed extraction via AI-powered schemas

- Screenshot

  Full-page PNG or viewport capture

- PDF

  Browser-rendered PDF of any page

## One crawl call returned 74 documentation pages in 5.1 seconds.

what runs it

### One crawl call per site

One crawl call returned 74 pages of a documentation site in 5.1 seconds. Scraping every URL in that crawl's response, six at a time, took 36.0 seconds. That list held URLs that answered 404 as well as the 74 pages. Both ways returned the same markdown for each of the 74 pages. Each way ran once, over plain HTTP with the cache off, on November 16, 2026.

### Proxy rotation

Automatic IP rotation across residential proxies.

### Native browser

A real browser engine built for automated work. Pages that need JavaScript render completely on the first request.

### HTTP caching

Previously crawled pages are cached and served instantly on repeat requests.

### Webhooks

Fires as pages are discovered. Process the stream without waiting for the whole crawl.

## Web crawling and scraping questions.

What is web crawling?

Automated discovery of pages by following links. A crawler starts from one or more seed URLs, fetches the page, extracts links, and repeats. Spider does the full loop behind one API call: you pass a URL and get structured data back from every reachable page.

Is web scraping legal?

Scraping publicly available data is generally legal in the United States (hiQ Labs v. LinkedIn). Respect robots.txt, terms of service, and rate limits; do not scrape personal data without consent. Spider honours robots.txt by default and includes built-in rate limiting.

How many pages can Spider crawl?

Set limit to the most pages to crawl per site. Left unset or at 0, a crawl takes every page it finds. In the 1,000-URL run of February 11, 2026, Spider returned 74 pages a second over the whole set and 182 a second on static pages. Throughput depends on the page mix and on concurrency.

What's the difference between crawling and scraping?

Crawling is discovery: following links to find pages. Scraping is extraction: pulling specific data from those pages. Spider does both: it walks the target site and returns clean output (HTML, Markdown, plain text, JSON, screenshot, or PDF) per page.

Does Spider handle JavaScript-rendered pages?

Yes. Three modes: HTTP (fast static fetch), Smart (auto-detects whether JS rendering is needed), and Browser (full browser rendering for SPAs, lazy loading, and interactions).

How do I scrape a website without getting blocked?

Spider loads pages in its native browser, a real browser engine rather than a patched headless one, so the page renders the way it does for a person. Requests go out through residential proxies. Crawls respect robots.txt and rate limits by default, which keeps request volume at a level the site accepts.

## Make your first request.

Create an API key and start with one URL.

[Get an API key](https://spider.cloud/register/) [Read the quickstart](https://spider.cloud/docs/quickstart/)

See also [Cloud browser](https://spider.cloud/browser/) [AI Studio](https://spider.cloud/ai/) [Residential proxies](https://spider.cloud/residential-proxies/) [API docs](https://spider.cloud/docs/api/)
