Scrape a URL
Scrape a web page and return its content as Markdown, raw HTML, and extracted links. Handles anti-bot bypass and JavaScript rendering automatically. Costs 1 credit.
Scrape a web page and return its content as Markdown, raw HTML, and extracted links. Handles anti-bot bypass and JavaScript rendering automatically. Costs 1 credit.
Authorization
bearerAuth Secret API key (sr_ prefix). Pass as Authorization: Bearer sr_...
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.parsew.com/v1/scrape" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com" }'{
"markdown": "string",
"html": "string",
"links": [
"string"
],
"warning": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}Map links on a page POST
Scrape a web page and return all discovered links, with optional filtering by substring search or regex pattern. Costs 1 credit.
Search the web POST
Run a web search and return ranked results (url, title, description). Pass a non-empty `formats` array to also scrape each result and return the requested formats inline. Costs 1 credit per search, plus 1 credit per scraped result.