Advanced
Extract (Beta)
Extract structured data from a URL based on a prompt and schema. Every request costs 10 credits.
Authorization
Authorization
RequiredBearer <token>In: header
Request Body
application/json
RequiredParameters for data extraction
url
RequiredTarget URLThe URL of the web page to extract data from.
Format:
"url"
prompt
RequiredExtraction PromptNatural language instructions describing what data to extract.
response_format
RequiredResponseFormatDefines the desired format of the extracted data.
Response Body
Successful Extraction
TypeScript Definitions
Use the response body type in TypeScript.
success
RequiredSuccess StatusIndicates whether the extraction was successful.
extractParameters
RequiredEchoedExtractParametersresults
RequiredExtraction ResultsThe extracted data, structured according to the 'json_schema' provided in the request.