Extract structured data
Scrape a web page and extract structured data using an LLM. Define a JSON Schema for the output shape and provide a natural-language prompt. Costs 5 credits.
Scrape a web page and extract structured data using an LLM. Define a JSON Schema for the output shape and provide a natural-language prompt. Costs 5 credits.
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
application/json
curl -X POST "https://api.parsew.com/v1/extract" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com", "schema": { "type": "object", "properties": { "title": { "type": "string" }, "price": { "type": "number" } }, "required": [ "title" ] }, "prompt": "Extract the product title and price" }'{
"data": {
"property1": null,
"property2": null
},
"warning": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}Extract branding profile POST
Analyze a website and extract its complete branding profile — colors, typography, images, components, spacing, personality, and design system. Requesting only `colors` and/or `images` uses heuristic extraction (2 credits). Full analysis costs 5 credits.
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.