# Extract

`POST /v1/extract` reads a page and returns data shaped by your `prompt` and JSON `schema`. Costs 3 credits (1 page + 2 extraction).

You can also pass `prompt` and `schema` on a [scrape](/docs/scrape) request to get Markdown and structured data together.

## Example

```bash
curl -s -X POST https://webcrawl.app/v1/extract \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/pricing","prompt":"List each plan with its monthly price."}'
```

## Request body

- **`url`** (string): Page to read
- **`urls`** (string[]): The first URL is used
- **`prompt`** (string): What to extract
- **`schema`** (object): JSON Schema for a fixed response shape

## Related

- [Scrape](/docs/scrape)
- [API reference](/docs/api)

## Docs index

- [Overview](https://webcrawl.app/docs)
- [Scrape](https://webcrawl.app/docs/scrape)
- [Crawl](https://webcrawl.app/docs/crawl)
- [Map](https://webcrawl.app/docs/map)
- [Search](https://webcrawl.app/docs/search)
- [Extract](https://webcrawl.app/docs/extract)
- [MCP server](https://webcrawl.app/docs/mcp)
- [MCP setup](https://webcrawl.app/docs/mcp-setup)
- [Self-hosting](https://webcrawl.app/docs/self-hosting)
- [SDKs and CLI](https://webcrawl.app/docs/sdks)
- [API reference](https://webcrawl.app/docs/api)

HTML: https://webcrawl.app/docs/extract
