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