# What is web crawling?

Web crawling discovers and walks URLs across a site or the public web under budgets and rules. How Webcrawl map and crawl fit agent workflows.

Web crawling is the practice of discovering URLs and visiting them according to rules. A crawler starts from one or more seed URLs, follows links (or sitemap entries), and keeps going until it hits depth limits, path filters, page budgets, or stop conditions you define. Search engines made crawling famous, but product teams now crawl docs sites, changelogs, and knowledge bases so agents and RAG pipelines stay current.

Crawling is about coverage and discovery. It answers “which pages exist?” and “which of those should we read?” It is not the same as scraping. Scraping focuses on extracting clean content from a URL you already chose. Many systems combine both: crawl or map to build a URL list, then scrape the subset that matters.

Classic crawlers track a frontier queue, normalize URLs, avoid loops, and respect robots.txt and crawl-delay guidance when configured to. Agent-oriented crawlers add budgets that map to credits or wall-clock time, because an unbounded crawl is an unbounded bill. They also prefer outputs models can use: Markdown bodies, link graphs, and structured extracts instead of raw HTML dumps.

Webcrawl splits discovery shapes so you can spend credits intentionally. POST /v1/map returns links from a start URL (a sitemap-style discovery pass). POST /v1/crawl reads multiple pages from a start URL when you want bodies, not just URLs. POST /v1/search finds pages across the public web before you decide what to crawl. Agents calling MCP tools can pick map vs crawl vs scrape based on the job instead of pretending one verb does everything.

Good crawl design starts narrow. Map a docs origin, filter to /docs and /changelog, then crawl or scrape that shortlist. Pair crawls with monitors when you only need to know that a known URL changed. For documentation ingestion and RAG knowledge bases, crawling without a filter list is usually the expensive path; discovery first keeps Markdown quality and cost predictable.

When vendors say “crawl,” ask whether they mean URL listing, multi-page fetch, browser sessions, or all three. Clear names make MCP tool choice and credit estimates honest for agent builders.
Crawl policies are where products win or lose trust. Decide maximum pages, path prefixes, and whether query strings are distinct URLs. Normalize trailing slashes and http vs https so the frontier does not explode. Deduplicate by canonical URL when the site advertises one. Store content hashes if you will re-crawl later so unchanged pages do not thrash your vector index.

Agents change the crawl brief mid-flight. A human might say “only API reference pages” after seeing the first map. That is why exposing map as a separate step helps: the agent can show a URL list, get confirmation, then crawl. Fully autonomous crawls should still hard-cap page counts in code, not only in the prompt.

Compliance and etiquette belong in the same checklist as technical limits. Read robots.txt and site terms for targets you automate against. Space out requests. Identify your client honestly via User-Agent where you control it. Prefer official APIs or dumps when a vendor offers them for bulk docs. Webcrawl’s creditSchedule makes the economic side visible; your policy layer makes the social side visible.

For competitor monitoring and documentation ingestion, crawling is a means to an up-to-date corpus, not an end in itself. Schedule crawls, monitor hot pages more frequently, and keep Markdown in version control or object storage your RAG stack already understands.

## Map a docs site

```
curl -s -X POST https://webcrawl.app/v1/map \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/docs"}'
```


Related: [Web scraping](https://webcrawl.app/glossary/web-scraping), [Web crawling vs scraping](https://webcrawl.app/glossary/web-crawling-vs-web-scraping), [Sitemap](https://webcrawl.app/glossary/sitemap), [robots.txt](https://webcrawl.app/glossary/robots-txt), [URL extractor](https://webcrawl.app/tools/website-url-extractor), [Documentation ingestion](https://webcrawl.app/use-cases/documentation-ingestion).

HTML: https://webcrawl.app/glossary/web-crawling
