Docs
Scrape
POST /v1/scrape fetches a URL as clean markdown or JSON. 1 credit per page, plus 2 when structured extraction is requested. View as Markdown
POST /v1/scrape fetches a page and returns its content as Markdown (full page by default). Costs 1 credit per page, plus 2 when structured extraction is requested. Matching /v2/scrape and /api/v1/scrape aliases exist.
Product page: /scrape. URL to Markdown guide: /url-to-markdown. HTML to Markdown glossary. Web scraping API overview: /web-scraping-api.
Example
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"}'
Request body
url(string (required)): Page to fetchonlyMainContent(boolean): Defaultfalse(full page). Settrueto keep only the main content and drop navigation, headers and footersincludeTags(string[]): Keep only elements matching these CSS selectorsexcludeTags(string[]): Remove elements matching these CSS selectorsretainImages(all or none): Defaultalltimeout(integer): Milliseconds (default 15000)prompt/schema/extract(object or string): Ask for structured data; adds 2 credits
Optional header X-Retain-Images: none strips images from the Markdown. Send X-No-Cache: true or Cache-Control: no-cache to bypass cached results.
Auth
Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY.
Related
- Extract for prompt or schema-only extraction
- Crawl when you need many pages
- HTML to Markdown for what conversion keeps and strips
- URL to Markdown product guide
- API reference