Scrape and extract structured data with ScreenshotRender
ScreenshotRender reads the page and uses AI to pull out the data you describe, as JSON. Describe it with a schema, a prompt, or both.Extract structured data
JSON mode via /scrape
Add ajson format to formats, with a schema (a JSON Schema) and an optional prompt. In Python, the schema can be a Pydantic model. The data comes back in data.json, shaped like your schema.
Response
Structured data without schema
Pass only aprompt and the AI chooses the structure of the data.
cURL
Response
JSON format options
JSON mode costs 5 credits per page: 1 for the page and 4 for the extraction.
Tips for consistent extraction
- Name the fields you want and mark them
requiredin the schema. - Use a prompt to say which part of the page to read, like “The top 3 stories”.
- Ask for a plain answer about the page with the question format instead, when you need one value rather than an object.