# Crawl budget: how many pages a crawler reads, and which ones

A crawl budget is how many of a site's pages a crawler will fetch. A dated run with a page limit shows which sections of a docs site it returned and which it did not.

Canonical: https://spider.cloud/learn/crawl-budget/

A crawl budget is the number of a site's pages a crawler will fetch in one pass. Two different things carry the name: the allowance a search engine gives your site, which you do not set, and the page cap you put on a crawl of your own, which you do. Either way, pages past the line are not fetched, so the way a crawler picks pages matters as much as the size of the number.

Google defines the term for its own crawler. In the 2017 post on its Search Central blog, the team writes "we define crawl budget as the number of URLs Googlebot can and wants to crawl." That is the first kind, set from outside by a search engine. The rest of this page is about the second kind, the cap you set, and about how to see what it left out.

## Google's budget and your cap

Google's current guide splits its budget into a capacity limit, which keeps the crawler from overloading your server, and demand, which is how much the crawler wants what you have. The guide says the part a site owner controls most is the list of addresses the crawler knows about: "Without guidance from you, Google tries to crawl all or most of the URLs that it knows about on your site." Duplicates waste that time, and the same guide warns that "If Google spends too much time crawling URLs that it shouldn't, Google's crawlers might not explore the rest of your site".

Google also says who this is for. The guide calls itself an advanced guide aimed at large sites, and gives its figures as rough estimates, not exact thresholds. The 2017 post adds that "most of the time it will be crawled efficiently" for a site with fewer than a few thousand URLs. So Google's budget is a concern for big or fast-changing sites. It is not a rule that every crawler everywhere works the same way.

The cap you set is a different mechanism with a similar effect. In the API it is the `limit` field, a maximum count of pages per site. The `url` field takes several start addresses separated by commas, and each site gets its own `limit`. Raising it lets a crawl return more pages, but it does not promise more, because the crawl can only return pages it finds. With `limit` unset or 0, the run covers every page it finds, capped by your remaining credit balance. A second setting, `depth`, bounds how many links deep the crawl goes. Its documented default is 25 and 0 removes it. Either bound can end a crawl, so a run that returns fewer pages than its `limit` may have hit `depth` or run out of links.

## What a limit does to a site

This clip walks a small sample site link by link and shows what a depth limit, a page limit and a page no link reaches each leave out.

How a crawler spends its budget. 1 min 8 s, no sound. The words are on screen, and the captions button shows them at your own text size.

Read the transcript

How a crawler spends its budget. The pages it fetches in one pass, and the ones past the line.

The crawler starts at one address and follows links. Each step out is one more link deep. The crawl starts at /. Depth 1 finds /guide/, /api/, /faq/. Depth 2 finds /install/, /start/, /errors/. Depth 3 finds /advanced/. 8 pages fetched. 3 links to the deepest page.

An address it has already seen is not fetched again, and a # does not make a new page. Depth 1 finds /guide/, /api/, /faq/. Depth 2 finds /install/, /start/, /errors/; / is already seen; /start/#auth is the same page as /start/. Depth 3 finds /advanced/. 2 links skipped, already seen. 8 pages fetched.

A depth limit stops the walk. Pages past it are not fetched. Depth 1 finds /guide/, /api/, /faq/. Depth 2 finds /install/, /start/, /errors/; / is already seen; /start/#auth is the same page as /start/. /advanced/ is past the limit and not fetched. 7 pages fetched. 1 page past the limit, not fetched.

A page that no link reaches is never found, so no crawl of the site returns it. Depth 1 finds /guide/, /api/, /faq/. Depth 2 finds /install/, /start/, /errors/; / is already seen; /start/#auth is the same page as /start/. Depth 3 finds /advanced/. /changelog/ is on the site, but no page links to it, so the crawl never finds it. 1 page no link reaches.

Either bound can end a crawl. A limit does not choose which pages fill it. Settings: "limit": 12, "depth": 2. limit: Stops at a count of pages. depth: Stops this many links deep.

Read the full page. The page is at spider.cloud/learn/crawl-budget.

A limit stops the crawl at a count. It says nothing about which pages make up that count. The crawler starts at the address you give it and follows links from there. When the count is reached, the response holds the pages that were returned and does not list the ones that were not. You learn what is missing only by comparing the response against a list of what the site has.

Most documentation sites hold such a list on the front page, and a second crawl with a higher limit gives another. So the check is simple: crawl with a small limit, group the returned addresses by section, and compare the groups with the larger list. Strip any prefix every address shares first. On the site below every path starts with `/en/latest/`, so the section is the part after it. Count the start page on its own, and count links that differ only by a `#` fragment as one page.

## One docs site, one limit

The site is the documentation for Python's Requests library, which is meant to be read. The request sets `limit` to 12, names the client in `user_agent` and sets `delay` to 1000 milliseconds, so the crawler waits a second between pages. It needs an API key in `SPIDER_API_KEY`.

```bash
curl -s https://api.spider.cloud/crawl \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://docs.python-requests.org/en/latest/", "limit": 12, "delay": 1000, "return_format": "markdown", "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)"}'
```

The answer is a JSON array with one object per page, each with `url`, `status`, `error` and `content`. On 2026-11-21 at 03:02 UTC the call returned 12 pages in 14.9 seconds. Every page had status 200 and a null `error`. These are the addresses in the order they came back.

```text
200  https://docs.python-requests.org/en/latest/
200  https://docs.python-requests.org/en/latest/user/quickstart/
200  https://docs.python-requests.org/en/latest/community/faq/
200  https://docs.python-requests.org/en/latest/user/install/
200  https://docs.python-requests.org/en/latest/community/release-process/
200  https://docs.python-requests.org/en/latest/user/authentication/
200  https://docs.python-requests.org/en/latest/community/vulnerabilities/
200  https://docs.python-requests.org/en/latest/api/
200  https://docs.python-requests.org/en/latest/community/out-there/
200  https://docs.python-requests.org/en/latest/dev/authors/
200  https://docs.python-requests.org/en/latest/community/support/
200  https://docs.python-requests.org/en/latest/user/advanced/
```

Each object also carries the page text. This is the start of the `content` field for the third page, the FAQ, without its title line.

```text
# Frequently Asked Questions
This part of the documentation answers common questions about Requests.
## Encoded Data?
Requests automatically decompresses gzip-encoded responses, and does
its best to decode response content to unicode when possible.
```

Fifteen minutes earlier, the same request with `limit` set to 30 stopped at 24 pages, under its limit. Nine of the 24 sit under `/_modules/`, the library's source code shown as pages, which the front page's contents list does not include. Counting the other 15 by section, with the `/en/latest/` prefix stripped, and setting them beside the 12 addresses above gives this.

| Section of the path | Pages in the larger crawl | Pages in the 12 returned |
| ------------------- | ------------------------- | ------------------------ |
| front page          | 1                         | 1                        |
| `/user/`            | 4                         | 4                        |
| `/community/`       | 7                         | 5                        |
| `/api/`             | 1                         | 1                        |
| `/dev/`             | 2                         | 1                        |
| Total               | 15                        | 12                       |

## What the counts show

Three of the 15 pages did not come back: `/community/recommended/`, `/community/updates/` and `/dev/contributing/`. The response held 12 pages, the limit, and the larger crawl found 15 outside `/_modules/`. The response shows nothing about why those three were the ones left out. It does show that the missing pages sit in `/community/` and `/dev/`, while all four `/user/` pages came back.

The order of the response is not the order of the crawl. The API streams each page back as it finishes, so a slow page can come back after a fast one found later. The response order also differs from the front page's list, with a community page third and a development page tenth, but that shows only when the pages finished. What the run does show is which 12 pages fill the limit, and the next run may fill it with a different 12. A limit is not a way of choosing which pages you get.

One more limit on the reading: this check only sees pages the larger crawl found. A page no link reaches would be missing from both crawls and from the comparison alike.

## What you can change

The start address decides where discovery begins, because the crawler follows links outward from it. Starting at a section page is therefore a different crawl from starting at the front page. It does not rank that section's pages ahead of the rest. If you want to keep a crawl inside part of a site, the `whitelist` field takes the paths to allow, and everything else is skipped. Regular expressions work in it.

Before you raise a limit, read the addresses a crawl returned and look for repeats. A site that serves one article at three addresses, or adds a sort order or session id to every link, can spend a limit of 30 on ten pages. The [canonical URL page](/learn/canonical-url/) covers how duplicates are named, and the [pagination page](/learn/pagination/) covers numbered pages that keep going. The [sitemaps page](/learn/sitemaps/) covers the list a site publishes for crawlers, which is a second list to compare against.

The 2017 post names the kinds of address that eat a search engine's budget: faceted navigation and session identifiers, on-site duplicate content, soft error pages, hacked pages, infinite spaces and proxies, and low quality or spam content. Google says wasting server resources on such pages "will drain crawl activity from pages that do actually have value".

A bigger cap reaches more pages and gives no further permission. Check the site's robots.txt and terms before you raise one, and keep the `delay`. The [web scraping guide](/web-scraping/) covers where a page limit sits in the larger job.

## Do this, avoid this

### Do this

- Put a limit on every crawl before the first run, even a test.
- Group the returned addresses by section, after the prefix they all share, and compare with a list of what the site has.
- Raise the limit in steps and rerun, and compare which sections are still short.
- Use whitelist to keep a crawl inside the section you mean to read.

### Avoid this

- Reading a full count as full coverage. Pages nothing links to are not in the list you compare against.
- Expecting a small limit to return the first pages of the sidebar.
- Raising the limit to fill a gap that comes from missing links.
- Letting sort, filter and session variants of one page use up the cap.

## Run it with a smaller limit

Copy the request, change the start address to a site you are allowed to read, and set `limit` to a number below what the front page lists. Group the returned addresses by path and see which section is short. Then rerun with a higher limit, or with `whitelist` set to that section, and compare again.

## Sources

1. [Google Search Central, Optimize your crawl budget](https://developers.google.com/search/docs/crawling-indexing/large-site-managing-crawl-budget) Read November 20, 2026
2. [Google Search Central Blog, What Crawl Budget Means for Googlebot, 16 January 2017](https://developers.google.com/search/blog/2017/01/what-crawl-budget-means-for-googlebot) Read November 20, 2026
