# API reference

Primary paths live under `/v1/*`. Matching `/v2/*` aliases exist for scrape, crawl, map, extract, search, rerank, parse and interact. Requests under `/api/v1/*` behave the same. Live credit costs are also listed on [GET /health](/health) as `creditSchedule`.

Full OpenAPI: [/openapi.yml](/openapi.yml).

Base URL: `https://webcrawl.app`. Auth: `Authorization: Bearer YOUR_API_KEY` or `X-API-Key: YOUR_API_KEY`.

## Endpoints

- **`POST /v1/search`** (1 credit base; +2 for structured verticals): Live web search with optional structured categories
- **`POST /v1/scrape`** (1 credit per page; +2 structured): Fetch a URL as clean markdown or JSON
- **`POST /v1/crawl`** (1 credit per page crawled): Crawl a site from a start URL
- **`POST /v1/map`** (1 credit): Discover URLs on a site without reading page bodies
- **`POST /v1/extract`** (3 credits (1 page + 2 structured)): Prompt or schema extraction from a page
- **`POST /v1/parse`** (Usage-based parse credits): Parse PDFs, Office files, images, audio and video
- **`POST /v1/interact`** (3 credits first browser minute; +2 per extra minute): Browser automation via Vercel Sandbox
- **`POST /v1/rerank`** (1 credit): Rank documents against a query
- **`GET /health`** (Free): Service status, version and creditSchedule

## Detail pages

- [Scrape](/docs/scrape)
- [Crawl](/docs/crawl)
- [Map](/docs/map)
- [Search](/docs/search)
- [Extract](/docs/extract)

## 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/api
