# Scrape

Agents perform better with live web access than guessing from training data. Webcrawl scrape returns clean Markdown or JSON from a single page so your agent can cite what is on the web right now. MIT-licensed open source with a hosted API, MCP server, and 1,000 free credits a month.

## Why agents use it

- POST /v1/scrape returns main content as Markdown for LLM context
- Optional prompt or schema extraction on the same request (+2 credits)
- Same engine over REST, MCP, CLI and @webcrawl/client

## Scrape a page

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

Endpoint: `POST /v1/scrape`. Credits: 1 credit per page; +2 when structured extraction is requested.

Docs: [/docs/scrape](https://webcrawl.app/docs/scrape).
GitHub: https://github.com/brainfish-ai/webcrawl-anything.
Sign up: [/signup](https://webcrawl.app/signup).

## FAQ

### What does scrape return?

A successful response includes the page URL, title, Markdown of the main content, links found on the page, cache status and credits charged.

### How do credits work for scrape?

Scrape costs 1 credit per page. Adding prompt, schema or extract fields adds 2 credits for structured data.

### Is Webcrawl open source?

Yes. The engine is MIT licensed at https://github.com/brainfish-ai/webcrawl-anything. The same code powers the CLI, @webcrawl/mcp and the hosted API.

### How do I get started?

Create a free account for 1,000 credits a month with no card, or connect the hosted MCP URL at https://webcrawl.app/mcp.

### Looking for URL to Markdown or a full web scraping API?

See /url-to-markdown for website to Markdown and RAG, /glossary/html-to-markdown for HTML to Markdown conversion details, /web-scraping-api for scrape, crawl, map, search and extract in one API, and /compare/firecrawl for a sourced Firecrawl comparison.

HTML: https://webcrawl.app/scrape
