Skip to main content

Web scraping vs web crawling: when to crawl and when to scrape

The difference between web scraping and web crawling, timed on one docs site, and which call to use for a URL list, a whole site or only a question.

Updated 6 min read

The difference between crawling and scraping is how the pages are found. A crawl starts at one page and follows its links, so one request finds the pages and fetches them. A scrape fetches the pages you name, one request each.

We timed both on the Typer documentation site through the Spider API on November 16, 2026. One crawl call returned 74 pages in 5.1 seconds. Scraping every URL in that crawl’s whole response, one scrape call per URL with six in flight, took 36.0 seconds, and the markdown came back identical on all 74 pages. It was one static site, timed once.

The steps inside one fetch are the same for both calls, and our guide to web scraping measures them step by step.

One crawl call against one scrape call per URL

MeasureOne crawl callOne scrape call per URL
Requests the client sent1One for each URL in the crawl’s response
Distinct pages with status 2007474
Wall time at the client5.1 s36.0 s with six in flight
Markdown of the 74 pages701,514 characters701,514 characters

Both arms asked for markdown with a plain HTTP fetch and the cache off. Wall time for the crawl is the one call, and for the scrape arm it runs from the first request sent to the last answer read. Both cover every URL in the crawl’s response.

For the 74 pages alone, the scrape requests add up to 90.7 seconds of single request time. Packed perfectly into six lanes that is about 15 seconds, an ideal we computed and did not time.

Why one crawl call is faster

On the 74 pages the median scrape request took 1.0 second at the client. The API’s own timer for those requests, the duration_elasped_ms field, had a median of 484 milliseconds. By those two medians, about half of a typical call passed outside that timer, while the request went out and the answer came back.

The scrape arm paid for that trip once per URL, and the crawl paid for it once. Sending more scrapes at a time hides part of that cost, and our setting was six.

Does a crawl return the same content as a scrape?

The script compared the two markdown strings for each page and counted a pair as identical only when the strings were equal. All 74 pairs were. Each arm returned 701,514 characters for those pages, which is 84,742 words. The content was the same, so what separates the two calls is how the pages are found and how many times the client goes to the API.

One page skews the totals. The median page was 4,433 characters of markdown, and the release notes page was 148,563, about a fifth of the total. Estimate a job from the median page and not from the total.

The markdown converter changed later that day. It now drops the permalink sign this site puts after every heading, and it gives each table a delimiter row. We sent the crawl call again on November 17, 2026 at 14:05 UTC with the same settings, and it returned 74 distinct pages with status 200 again, 718,781 characters and 84,550 words. Expect a repeat to land near those counts. The scrape arm ran on November 16 only, so the equal markdown result carries that date.

Do you need a crawler if the site has a sitemap?

The crawl started at the homepage with no list of URLs, and each of the 74 pages it returned with status 200 is in the site’s sitemap. To compare the two lists the script lower-cased the host and dropped fragments, index.html and the trailing slash.

So on this site, following links found nothing the sitemap lacked. A current sitemap is a URL list you can scrape from, and when a site has none, following links is how you find the pages. The crawl endpoint also has a sitemap option, which the API reference describes as “Add pages from the sitemap to the crawl. Default false.” Set it to true and the crawl adds the sitemap’s pages to the ones its links reach.

Pick the call by what you already have

You haveCallWhat we measured
A list of URLsOne scrape per URL, several in flightMedian request 1.0 s on 74 pages
One site and no listOne crawl from its start page74 pages in one call of 5.1 s
A question and no siteSearch with fetch_page_content3 results with their pages in 2.7 s, in the agents guide on November 17, 2026

In a workflow the third row comes first. A crawl needs a start page and a scrape needs a URL, and a web search API call is how you get them when all you have is a question. The API reference says the search route returns ranked results for a query and, with fetch_page_content set to true, fetches each result as well.

A job that keeps a copy of a site current uses both calls. On Typer, one crawl call returned 74 pages in 5.1 seconds. After that, checking a page for changes takes one scrape, at a median of 1.0 second a request. Both calls returned the same content for those 74 pages.

The requests, and how we chose Typer

curl -s https://api.spider.cloud/crawl \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://typer.tiangolo.com/", "limit": 200, "return_format": "markdown", "request": "http", "metadata": true}'
curl -s https://api.spider.cloud/scrape \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://typer.tiangolo.com/tutorial/arguments/", "return_format": "markdown", "request": "http", "metadata": true}'

The crawl returned fewer objects than its limit of 200, so the limit did not cut it short. The run sent one more field in both bodies, cache set to false, so that neither arm could read a stored copy. Add it to repeat the measurement. For other work leave the cache on, which is the default. The scrape arm sent the second request once for each URL in the crawl’s response, six at a time.

The run went out between 12:20 and 12:21 UTC. We wrote the rule for picking a site before the first request. Ten documentation sites of open source projects went on a list in a fixed order. A site qualified when its robots.txt, read through the API, allowed the start URL and set no crawl delay over 5 seconds for all agents, and when its sitemap listed 50 to 150 URLs under the start path. The first site to qualify was the one we used, and Typer was first on the list. The request for Typer’s robots.txt returned no robots file, and the rule reads that as no restrictions.

Run both calls on your own site

This was 74 pages of one static documentation site, fetched without a browser and timed once, with six scrapes in flight. To time both calls on a site you know, create an API key and send the two requests above. The scrape request also runs on one URL, with no key, in the web scraper.

Frequently asked questions

What is the difference between web scraping and web crawling?

Scraping fetches pages you name. Crawling starts from one page, follows its links and fetches what it finds. In a run on November 16, 2026, one crawl call returned 74 pages of a documentation site in 5.1 seconds, and a scrape of each page returned the same markdown on all 74. The difference was in how the pages were found and how many requests the client sent.

Is one crawl call faster than scraping the same pages one by one?

Yes. On one documentation site on November 16, 2026, one crawl call returned 74 pages in 5.1 seconds at the client. One scrape call for each URL in the crawl's whole response, six in flight, took 36.0 seconds. Both times cover the same URLs. For the 74 pages alone, their scrape requests come to about 15 seconds packed perfectly into six lanes, an ideal we computed and did not time.

Does a crawl return different content than a scrape of the same page?

No, the content was the same. On November 16, 2026 both calls asked for markdown with a plain HTTP fetch and the cache off, and the markdown strings were equal on all 74 pages, 701,514 characters in total.

Do I need a crawler if the site has a sitemap?

Not to find the pages, if the sitemap is current. Every page this run's crawl returned with status 200 was already in the site's sitemap. One crawl call fetched them in 5.1 seconds. Scraping those 74 from a list comes to about 15 seconds across six lanes in the ideal case, which we computed from their request times. The crawl's sitemap option adds the sitemap's pages to the ones its links reach.

Sources

  1. Measured run, 2026-11-16, 12:20 to 12:21 UTC: one crawl call on one documentation site, then one scrape call for each URL the crawl returned, through the Spider API
  2. Spider OpenAPI file, the crawl, scrape and search routes and the limit, cache and sitemap options
  3. The Typer documentation sitemap, the list the crawl's pages were compared with
  4. Repeat of the crawl call, 2026-11-17, 14:05 UTC, same settings, after the markdown converter changed, through the Spider API
  5. Web scraping for AI agents: the search call with page content, measured 2026-11-17

Keep reading

Run this on a page you care about

The playground sends the request this page describes and shows you the response. Keyless runs work without an account and are rate limited.