Skip to main content

How many requests per second to send when you crawl a site

No one rate fits every site. Start at one request per second to one host, then pick a delay from a small crawl we timed at three settings.

From our run on
  1. /crawl at 2026-11-20T17:30:31+00:00, 10 pages in 2.8 s, limit 10
  2. /crawl at 2026-11-20T17:30:34+00:00, 10 pages in 13.9 s, limit 10
  3. /crawl at 2026-11-20T17:30:49+00:00, 10 pages in 23.3 s, limit 10
How-to 7 min read

No single number of requests per second is safe for scraping every site, so start at one request per second to one host, with one request open at a time, and go faster only when the site says you may. A small site on one server may want less than that, and a large one may publish a ceiling many times higher.

The sites that publish a number show how wide the range is. The Wikimedia Foundation's robot policy tells crawlers of its wikis to "keep the average requests per second below 20", and gives its smaller services a far lower limit: "Always keep a total concurrency of at most 1, and use a delay between requests of at least 1 second." One operator wrote both rules, and they differ by a factor of twenty. For a site that has told you nothing, use the second.

What a rate is made of

This clip times requests to one host with no pause and with a 1 second pause, then shows what a 429 and a server error change.

How fast to send requests. 1 min 2 s, no sound. The words are on screen, and the captions button shows them at your own text size.
Read the transcript

How fast to send requests. One host, one request open at a time, and a pause after each answer.

With no pause, the next request leaves the moment an answer arrives. A time line of requests to one host, numbered 1 to 4. Each answer takes 0.3 s. The next request starts the moment an answer arrives. 0 s: pause after each answer. 0.3 s: from one request to the next. 3.3: requests a second.

Each answer takes 0.3 s. A 1 s pause after it means one request every 1.3 s. A time line of requests to one host, numbered 1 to 4. Each answer takes 0.3 s. After each answer the client waits 1 s before the next request, so requests start 1.3 s apart. 1 s: pause after each answer. 1.3 s: from one request to the next. 0.77: requests a second.

On a 429, wait out Retry-After. Then come back with twice the pause. A time line of requests to one host, numbered 1 to 5. Each answer takes 0.3 s. After each answer the client waits 1 s before the next request, so requests start 1.3 s apart. Request 3 gets a 429 with Retry-After: 10. The client sends nothing for 10 s, counted from that answer, then resumes at 12.9 s with a pause of 2 s, twice the old one. 10 s: Retry-After, from the answer. 2 s: the new pause, twice the old.

A server error is a reason to stop for a while. Answer: 503 Service Unavailable. 503: Wait out Retry-After if sent. 5xx: Pause at least 15 minutes. Then: Come back with twice the pause.

Read the full page. The page is at spider.cloud/learn/request-rate.

In any web scraping tool, two settings decide how many requests a host gets from you each second. Concurrency is the number of requests you have open at once. Delay is how long you wait after one request before you send the next.

With one request open at a time, each page costs the server's response time plus your delay. If a page takes 0.3 seconds to arrive and you wait 1 second, you send one request every 1.3 seconds. Open ten at once with no delay and that server gets about 33 requests a second, for as long as it keeps answering in 0.3 seconds. The Wikimedia policy sets a limit on each setting. Beside its ceiling of 20 a second, it asks that "the maximum concurrent number of requests is fewer than 10 overall".

Check what your tool does when you set nothing. Scrapy, the open source Python crawler, lists the first design goal of its AutoThrottle extension as to "be nicer to sites instead of using default download delay of zero". A crawler with no delay sends the next request as soon as it can.

The same crawl at three delay settings

We wanted numbers for this choice, so we crawled ten pages of books.toscrape.com three times through the Spider API. That site is a catalogue of made-up books, built for scraping practice. Between runs we changed one value, delay. The API reference describes it this way: "Milliseconds to wait between requests, up to 60000. Turns off concurrency."

This is the second of the three requests. Put your API key in SPIDER_API_KEY before you paste it.

curl -s https://api.spider.cloud/crawl \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://books.toscrape.com/", "limit": 10, "request": "http", "return_format": "markdown", "cache": false, "delay": 1000, "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}'

We ran all three on 2026-11-20. request set to http fetches each page over plain HTTP with no browser. cache set to false turns off the API's HTTP cache. A cached page would come back without a fresh fetch and spoil the timing, so we turned the cache off and every run fetched the pages again. user_agent names the client, with the same string in all three. Our client printed two lines per run: the time it waited for the whole API call, and the body it sent.

/crawl at 2026-11-20T17:30:31+00:00, 10 pages in 2.8 s, limit 10
request body as sent: {"url": "https://books.toscrape.com/", "limit": 10, "request": "http", "return_format": "markdown", "cache": false, "delay": 0, "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}

/crawl at 2026-11-20T17:30:34+00:00, 10 pages in 13.9 s, limit 10
request body as sent: {"url": "https://books.toscrape.com/", "limit": 10, "request": "http", "return_format": "markdown", "cache": false, "delay": 1000, "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}

/crawl at 2026-11-20T17:30:49+00:00, 10 pages in 23.3 s, limit 10
request body as sent: {"url": "https://books.toscrape.com/", "limit": 10, "request": "http", "return_format": "markdown", "cache": false, "delay": 2000, "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}

All 30 pages came back with status 200 and a null error. These are the first three objects from the run with the 1000 millisecond delay, with the content field left out.

[
  {"url": "https://books.toscrape.com/", "status": 200, "error": null},
  {"url": "https://books.toscrape.com/catalogue/category/books/fantasy_19/index.html", "status": 200, "error": null},
  {"url": "https://books.toscrape.com/catalogue/category/books/young-adult_21/index.html", "status": 200, "error": null}
]

The first three columns below come from the runs. The last two are our division.

delay, in mspageswall timeseconds per pagepages per second
0102.8 s0.283.6
10001013.9 s1.390.72
20001023.3 s2.330.43

With a delay of 0, all ten requests reached the site inside 2.8 seconds. That is fine for a site built to be practiced on. It is a lot for a small shop's server.

A delay is a floor under the time each page takes. Nine pauses of one second add up to 9 seconds, and that run took 13.9. The other 4.9 seconds went to fetching pages one after another and to the API call itself. At 2000 milliseconds the pauses add up to 18 seconds and the run took 23.3, so the remainder was 5.3 seconds. The remainder moved between runs, and we ran each setting once. Read these as three measurements, not as a benchmark.

So the rate you get is lower than the delay suggests. A one second delay gave 0.72 pages per second here, and a two second delay gave 0.43.

The three runs did not return the same ten pages. A limit of ten stops the crawl at the first ten pages it reaches, and the order changed from run to run.

Pick a rate from the numbers

Multiply your page count by the seconds per page. The practice catalogue's home page says it holds 1,000 books. At the pace of these runs, 1,000 pages would take about 5 minutes with no delay, 23 minutes with a one second delay, and 39 minutes with two seconds.

We would take the 23 minutes. The fast setting saves 18 of them, and to save them a server you do not run has to answer three or four requests a second from you alone. Few jobs need a result that soon.

Size changes the sum. At 1.39 seconds per page, 100,000 pages take about 39 hours. When a polite rate turns a job into days, turning the delay down is the wrong fix. Look for a way to make fewer requests. The Wikimedia policy opens its rules with that advice: "Consider if dumps are more efficient than live requests." A sitemap, a data dump, an official API, or an email to the operator can each shrink the job or raise your limit.

Where a site states its rate

Look for a stated rate before you settle on a delay.

  1. The robots.txt file. Some files carry a Crawl-delay line, which asks for a pause between requests. Its value is in seconds and the API's delay is in milliseconds, so Crawl-delay: 2 means a delay of at least 2000. Our page on how a well-behaved client reads robots.txt covers the rest of the file.
  2. The site's terms and its pages for developers or bot operators. The Wikimedia policy quoted above is one of these. A stated limit is the most the site will accept, so stay under it.
  3. The responses. A 429 status means you are sending too much. Wikimedia asks crawlers to "respect the delay specified by the Retry-After header sent with the response".

When to slow down

Watch status codes and response times while the crawl runs. If pages start to arrive more slowly than they did at the start, or errors appear, your crawl may be the cause.

A crawler with a fixed short delay does the wrong thing here. Error pages often come back faster than real ones, so it speeds up as the server struggles. The Scrapy documentation names the problem and the answer: "in case of errors it makes more sense to slow down: these errors may be caused by the high request rate."

For a server error, Wikimedia's rule for its smaller services is a good one to borrow: "Pause crawling for at least 15 minutes if you receive a 5xx status code." When you start again, double the delay you had.

Do this, avoid this

Do this

  • Start at one request per second to each host, with one request open at a time.
  • Read robots.txt and the site's terms for a stated limit before the first crawl.
  • Time ten pages at your chosen delay, then multiply to see how long the whole job takes.
  • Wait out Retry-After on a 429, pause on a 5xx, and come back with twice the delay.
  • Look for a sitemap, a data dump or an API when a polite rate makes the job take days.

Avoid this

  • Running with no delay against a site you know nothing about.
  • Judging the rate by the delay alone. Ten open requests with a short pause is still a high rate.
  • Keeping the same pace while error pages come back.
  • Splitting one crawl across many addresses so each stays under the site's limit.
  • Aiming for a published ceiling instead of staying under it.

Write the delay you chose next to the site's name, with the date and the seconds per page you measured. Time ten pages again before the next large crawl, because a server that was quick last month may not be quick now.

Sources

  1. Wikimedia Foundation, Robot policy, Wikitech Read
  2. Scrapy 2.20.0 documentation, AutoThrottle extension Read
  3. Spider OpenAPI file, the delay parameter Read

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.