Web Extraction
Extract Structured Website Data
Changed onCrawl a website, use the provided JSON Schema and instructions to prioritize relevant internal links, and extract structured data from the selected pages.
post/web/extract
Request
- Base URLhttps://api.context.dev/v1
- URLhttps://api.context.dev/v1/web/extract
- AuthHTTP bearer
Request body
Example request
{
"schema": {
"type": "object",
"properties": {
"mission_statement": {
"type": "string",
"description": "The company's stated mission."
},
"case_studies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"title",
"url"
],
"additionalProperties": false
}
}
},
"required": [
"mission_statement",
"case_studies"
],
"additionalProperties": false
},
"tags": [
"production",
"team-alpha"
]
}Response
Successful response
Changes
- info
added the required property
to the response with the status
- info
- info
added
scrolldiscriminator mapping keys to the/request property - info
added to the
/request propertyoneOflist
- info