# Web data for model training

Collect pre-training corpora, run web search in RL rollouts and build evals from cited sources. Crawl, Search, Parse, the Research Index and Monitor on one API.

Build pre-training corpora, give RL agents a search tool, and ground evals in cited sources. Crawl, search, parse and refresh web data on one API.

## Get Started

- [Start for free](/app/playground)
- [View Docs](https://docs.firecrawl.dev/introduction)

## Outcomes

- 18% - higher arXivQA recall than the next best provider
- 3M+ - arXiv papers in the Research Index
- 41M+ - life sciences papers in the Research Index

## Perfect For

### Pre-training teams

Crawl approved domains, docs portals and PDFs into clean Markdown corpora, with the source URL kept on every document so you can audit what went in.

### Post-training and RL teams

Give agents a web search tool during rollouts. Firecrawl Search placed first of 14 configurations on tokens per task search-only, and third with fetch, in an independent benchmark.

### Eval and benchmark teams

Build eval sets from real docs, sites and papers with a URL or paper ID on every item, and limit search to a date range so pages published after your cutoff stay out.

### Fine-tuning and SFT builders

Extract headings, sections and fields into JSON with Scrape, then turn them into instruction pairs and Q&A sets in code.

### Scientific model teams

Pull query-ranked passages from 3M+ arXiv papers and 41M+ life sciences papers in the Firecrawl Research Index, with paper IDs attached.

### Data governance

Scope every job by domain and path, keep a URL and timestamp on every document, and run on SOC 2 Type II infrastructure with Zero Data Retention on enterprise plans.

## Key Points

- Point Crawl at target domains and docs portals. Firecrawl walks every page, renders JavaScript and returns clean Markdown or JSON with the source URL on each document.
- Send arXiv PDFs, filings, whitepapers and manuals to Parse. Firecrawl returns layout-aware Markdown, so document-heavy corpora load the same way as web pages.
- Call Firecrawl Search as the agent's tool during post-training. Search-only results keep each rollout's context short, and scrapeOptions adds full-page Markdown when the policy needs the whole page.
- Query the Firecrawl Research Index for arXiv and life sciences passages with paper IDs, and pass a custom date range to Search so eval answers come from pages published before your cutoff.
- Request JSON from Scrape with a schema to pull headings, sections and fields, then build instruction pairs, Q&A sets and preference prompts in code.
- Point Monitor at the pages behind a training or eval set. An AI judge fires a webhook only when a change is meaningful, so you refresh from real signal instead of blind reruns.

## Workflow

### 1. Crawl approved sources into a pre-training corpus

Point Crawl at target domains and docs portals. Firecrawl walks every page, renders JavaScript and returns clean Markdown or JSON with the source URL on each document.

- [Firecrawl Crawl API](/crawl.md)
- [Crawl API docs](https://docs.firecrawl.dev/features/crawl)

### 2. Parse PDFs, papers and long reports

Send arXiv PDFs, filings, whitepapers and manuals to Parse. Firecrawl returns layout-aware Markdown, so document-heavy corpora load the same way as web pages.

- [Firecrawl Parse](/parse.md)
- [Parse docs](https://docs.firecrawl.dev/features/parse)

### 3. Put web search inside RL rollouts

Call Firecrawl Search as the agent's tool during post-training. Search-only results keep each rollout's context short, and scrapeOptions adds full-page Markdown when the policy needs the whole page.

- [Firecrawl Search API](/search.md)
- [Search API docs](https://docs.firecrawl.dev/features/search)

### 4. Ground evals in cited papers and pages

Query the Firecrawl Research Index for arXiv and life sciences passages with paper IDs, and pass a custom date range to Search so eval answers come from pages published before your cutoff.

- [Research Index docs](https://docs.firecrawl.dev/features/research)

### 5. Extract structure for SFT and preference data

Request JSON from Scrape with a schema to pull headings, sections and fields, then build instruction pairs, Q&A sets and preference prompts in code.

- [Firecrawl Scrape API](/scrape.md)
- [Scrape API docs](https://docs.firecrawl.dev/features/scrape)

### 6. Refresh datasets when sources change

Point Monitor at the pages behind a training or eval set. An AI judge fires a webhook only when a change is meaningful, so you refresh from real signal instead of blind reruns.

- [Firecrawl Monitor](/monitor.md)
- [Monitor docs](https://docs.firecrawl.dev/features/monitoring)

## Comparison

| Feature | Firecrawl | Common Crawl dumps | In-house scrapers | SERP APIs |
| --- | --- | --- | --- | --- |
| Web search tool for agents and RL rollouts | Yes | No | No | Yes |
| Crawl chosen domains on demand | Yes | No | Yes | No |
| Full-page content as clean Markdown | Yes | No | No | No |
| PDF and document parsing built in | Yes | No | No | No |
| Cited academic passages (Research Index) | Yes | No | No | No |
| JavaScript rendering | Yes | No | Yes | No |
| Change monitoring for dataset refresh | Yes | No | No | No |
| Source URL kept on every document | Yes | Yes | Yes | Yes |
| No proxies or browser fleet to maintain | Yes | Yes | No | Yes |

## Customer Stories

- Stanford: [How Stanford's AI Playground Covers 10,000+ Domains for Real-Time LLM Grounding](/blog/customer-story-stanford.md) - Stanford AI Playground answers past its models' training cutoff with Firecrawl Search and Scrape, reaching 10,000+ domains and growing coverage from 293 URLs to 13,469 in five months.

## Tutorials

- [Web Search and Deep Research for AI Agents: What It Is and How to Integrate It into Your Agentic Stack](/blog/deep-research-for-ai-agents.md) - Learn what web search and deep research mean for AI agents, why 2026 made both production-grade, and how to wire them into your stack with Firecrawl.
- [Reduce LLM & Agent Hallucinations With Real-Time Web Search](/blog/reduce-llm-hallucinations.md) - LLM agents hallucinate from stale data and knowledge gaps. Why hallucinations persist despite smarter models, and how real-time web search reduces them.
- [LLM Token Optimization: 9 Techniques in the Order to Apply Them](/blog/llm-token-optimization.md) - How a 10,000-task agent's LLM bill drops from $11,648 to $425 a month: leaner web context, prompt caching, output caps, and batching, with current pricing.

## FAQ

### How do AI teams use web data for model training?

Teams use web data at three stages. Pre-training draws on large crawled corpora, post-training puts a search tool inside RL rollouts so the model learns to look things up, and evals check answers against real pages and papers. Firecrawl covers each stage with Crawl, Search, Parse and the Research Index on one API key.

### How is Firecrawl different from Common Crawl?

Common Crawl is a free archive of periodic web crawls that you download, filter and clean yourself. Firecrawl fetches the domains you choose on demand, renders JavaScript, parses PDFs and returns clean Markdown or JSON, so you skip the filtering pipeline and get pages as they are today.

### Can Firecrawl be the search tool in an RL environment?

Yes. Expose Firecrawl Search to the policy as a tool call during rollouts. Search-only results return titles, URLs and snippets, which keeps each rollout short, and adding scrapeOptions returns full-page Markdown for the results when the task needs the whole page.

### How token-efficient is Firecrawl Search?

In Openbenchmarks' independent test of 100 hard retrieval tasks for coding agents, Firecrawl used a median of 7,456 tokens per task search-only, first of 14 configurations. With search and fetch it used 17,379 tokens per task, third of 14 behind TinyFish and Nimble.

### How do I keep eval answers from leaking through web search?

Pass a custom date range to Firecrawl Search with the tbs parameter, for example cdr:1,cd_min:1/1/2020,cd_max:12/31/2024, so results come from pages published before the eval's cutoff. Scrape returns pages as they are today, so store the scraped text with the eval set if later runs must see the same content.

### Can Firecrawl parse PDFs and papers for training data?

Yes. Send the file or URL to Parse and Firecrawl returns clean, layout-aware Markdown. One call handles PDF, DOCX, DOC, ODT, RTF, XLSX, XLS and HTML, so document-heavy corpora load the same way as web pages.

### What is in the Firecrawl Research Index?

The Research Index covers 3M+ arXiv papers with GitHub artifacts from top research repos, plus 41M+ life sciences papers. Each call returns query-ranked passages, metadata and citation data, so scientific fine-tunes and evals can cite the paper behind every example.

### Does Firecrawl respect robots.txt and security requirements?

Firecrawl respects robots.txt and standard crawling conventions, is SOC 2 Type II certified and offers Zero Data Retention on enterprise plans. You decide which sites go into a training set and are responsible for making sure that use complies with each site's terms and any regulation that applies.

## Next Step

Ready to build your next training set?

Crawl, search, parse and refresh web data for pre-training, RL and evals.

- [Start for free](/app/playground)

_Canonical HTML: https://www.firecrawl.dev/use-cases/ai-training_

## Site Navigation

### Global Hub
- [Home](/index.md)
- [Pricing](/pricing.md)
- [Blog](/blog.md)
- [Glossary](/glossary.md)
- [Alternatives](/alternatives.md)
- [Tools](/tools.md)
- [Use Cases](/use-cases.md)
- [Integrations](/integrations.md)
- [Changelog](/changelog.md)

### On This Topic
- [Use cases index](/use-cases.md)
