# Web scraping glossary: the terms, each in a sentence or two

Plain definitions of the words you meet when you scrape or crawl: crawler, depth, sitemap, user agent, rate limit and more, with one real run to read them against.

Canonical: https://spider.cloud/learn/glossary/

Web scraping is the work of requesting a page from a program and keeping the part of it you need, such as a price, a title or a block of text. This page defines the words that work uses, a sentence or two each, in the order you are likely to meet them.

The terms are grouped by where they turn up: the request, the crawl, the rules of the site, and the output. They are the words the [web scraping guide](/web-scraping/) and the other pages in [the learning center](/learn/) use without stopping to explain. Read the run near the end once, then come back to the entries it touches.

## The request

**Request.** One message from your program to a server that asks for one address. A page is one request, and a site of a hundred pages is at least a hundred.

**URL.** The address of a page. A crawl starts from one URL, called the seed, and finds the rest.

**Status code.** The three-digit number a server sends back with its answer. 200 means the page came back, 404 means there is no such page, and a 5xx means the server failed. A status outside the 2xx range means you did not get the page you asked for, whatever body came with it. A 200 can still carry an empty page, so check the content too.

**Redirect.** A 3xx answer that points the client to another address in its `Location` header. A 301 says the move is permanent and a 302 says it is temporary, and the [status codes page](/learn/http-status-codes/) says which address to store for each.

**ETag and 304.** An ETag is a tag a server sends with a page to name that version of it. Send the tag back in an `If-None-Match` header, and a server whose page has not changed answers 304 Not Modified with no body, so you keep the copy you already have. The [ETag page](/learn/etag/) reads the tag from ten real pages.

**Retry-After.** A header a server can send with a 429 or a 503 to say how long to wait before you ask again. It holds a number of seconds or a date, and the [Retry-After page](/learn/retry-after/) works out the wait for both.

**Plain fetch and browser render.** A plain fetch sends one HTTP request and keeps whatever the server sends back. A browser render loads the page in a browser, so scripts run and the text they add is there to read. Both use HTTP, and [static vs rendered](/learn/static-vs-rendered/) fetches one page both ways.

**User agent.** The name your client puts in the `User-Agent` header of each request. A site reads it to see who is asking, and robots.txt groups are written against it. Say who you are, in the format the [user agent page](/learn/user-agent/) builds.

## The crawl

**Scrape.** To fetch one known page and read it.

**Crawl.** To start from one page and follow its links to find more pages. A scrape takes the address you give it, and a crawl discovers the addresses.

**Crawler.** The program that does the crawling. RFC 9309 defines them in four words: "Crawlers are automated clients."

**Depth.** How many links away from the seed a crawl may go, adding one for each link followed. Tools count it differently, and in the Spider API `depth: 0` removes the limit, so read your tool's reference before you set it. [Lesson 8](/learn/course/set-the-depth/) sets it on a real crawl.

**Limit.** A cap on how many pages one crawl may fetch. Set it small while you test, because a crawl with no cap runs until the site runs out of links. The [crawl budget page](/learn/crawl-budget/) is about spending it well.

**Link.** An address inside a page that points to another page. Links are what a crawl follows, and the set of them on a page is that page's outbound links.

**Pagination.** A long list split over many pages, such as results 1 to 20 on the first and 21 to 40 on the second. A crawler reaches the later pages by following the link to the next one.

**Sitemap.** A file where a site lists its own pages. The format is defined at sitemaps.org, which says that "all URLs in a Sitemap must be from a single host". Start from it when you want the pages a site wants found. The [sitemaps page](/learn/sitemaps/) reads one.

**Duplicate page.** The same content under more than one address. In the run below, the home page is fetched twice, once as `/` and once as `/index.html`. A [canonical URL](/learn/canonical-url/) is how a site says which address it prefers.

## The rules of the site

**robots.txt.** A text file at the root of a site that says which paths crawlers may fetch. It is a request and not a lock. Read how to apply it in [what robots.txt is](/learn/robots-txt/), which reads a real file and works out which rule wins.

**Crawl delay.** A line some sites add to robots.txt that asks for a pause between requests. It is not part of the standard, and keeping to it is the courteous choice.

**Rate limit.** The number of requests a site, or an API, accepts from one client in a stretch of time. A site that sends a 429 status is telling you to slow down, and [rate limits](/learn/rate-limits/) covers what to do then.

**Request rate.** How fast your own client sends requests. A low steady rate does the site no harm, and a burst can look like an attack. The [request rate page](/learn/request-rate/) helps you pick one.

**Terms of service.** The written conditions a site sets for using it. They can carry legal weight that robots.txt does not, so read them before you collect at scale.

## The output

**Raw HTML.** The page exactly as the server sent it, tags and all. It is complete and hard to read.

**Markdown.** The page cut down to its text, headings, lists and links. Most people who want to read or store text ask for this form, and it is what the run below returns.

**Return format.** The form you ask the result to take: raw HTML, markdown or plain text. You pick it in the request.

**Parsing.** Turning a page into fields you can use, such as a title in one column and a price in another. It follows fetching and is a separate step.

**Selector.** A CSS pattern, such as `ul.pager`, that picks out one part of a page. Pass one to keep only that part, as the [pagination page](/learn/pagination/) does with its pager.

**Structured data.** The fields after parsing, held in a form like JSON or a table where each value has a name. Some pages publish it themselves, as the [structured data page](/learn/structured-data/) shows.

## Read one run

Our test crawl went to a practice shop, a site built to be scraped. Its body asks for a depth of 1, at most 3 pages, markdown output, a one second `delay` between pages and a `user_agent` that names the client. Each term above that the request uses is a field in its body, and your key goes 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://books.toscrape.com/", "limit": 3, "request": "http", "return_format": "markdown", "depth": 1, "user_agent": "examplebot/1.0 (+https://example.com/bot; bot@example.com)", "delay": 1000}'
```

It ran at 17:30 UTC on 2026-11-20 and came back with 2 pages in 10.5 seconds, although the limit was 3. These are the fields of each page, with the markdown cut to its first lines.

```json
[
 {
  "url": "https://books.toscrape.com/",
  "status": 200,
  "error": null,
  "content": "All products | Books to Scrape - Sandbox\n* [Home](index.html)\n* All products\n**1000** results - showing **1** to **20**.\n..."
 },
 {
  "url": "https://books.toscrape.com/index.html",
  "status": 200,
  "error": null,
  "content": "All products | Books to Scrape - Sandbox\n* [Home](index.html)\n* All products\n**1000** results - showing **1** to **20**.\n..."
 }
]
```

Go through it with the glossary open. The `url` is the seed and then a second address, which is the duplicate page entry: the two start with the same listing. The `status` is 200 and `error` is null, so the pages were read. The `content` is markdown, as asked. The limit of 3 is a ceiling, not a target. This crawl stopped at 2, both copies of the seed, and did not reach the category pages the seed links to, so judge a depth setting by what comes back, not by its name. The listing says "showing 1 to 20" of 1000 results, which is pagination, and a deeper crawl would have to follow the link to the next page to reach the rest.

## Do this, avoid this

### Do this

- Set a small limit on a first crawl and raise it once the output looks right.
- Check the status and the content of every page before you trust either.
- Look up how your tool counts depth before you set it.
- Read the site's terms of service before the first request.

### Avoid this

- Mistaking robots.txt for a lock that keeps you out, or for permission to take everything it allows.
- Crawling without a limit to see what happens.
- Storing a page whose status was an error as if it had been read.
- Keeping both / and /index.html when they hold the same page.

A glossary is not legal advice. Whether you may collect and reuse a page depends on the site's terms, on copyright and on any personal data in it. To watch depth at work, raise `depth` and `limit` in the request above by a step or two, run it again, and compare the addresses that come back.

## Sources

1. [RFC 9309, Robots Exclusion Protocol, IETF, September 2022](https://www.rfc-editor.org/rfc/rfc9309.html) Read November 20, 2026
2. [sitemaps.org, Sitemaps XML format](https://www.sitemaps.org/protocol.html) Read November 20, 2026
