Extract directly from a document
Use direct Extract when you have a file and want structured data in one request. Direct Extract does not require a Parse ID. SetUNSTRUCTURED_API_KEY to your API key and replace the file path. To run the Python or TypeScript example, first install the Python SDK or TypeScript SDK.
- Python
- TypeScript
- cURL
Extract from a completed Parse
Reuse a Parse when you want to extract different fields from content you already processed. SetPARSE_ID to its completed result’s id. The cURL example also requires jq.
- Python
- TypeScript
- cURL
parse_id requests and multipart form data for input or file_id. Send one document source per request. If the document source is missing or the fields conflict, correct the request. See error codes and fixes.
See Chain Parse and Extract for the complete sequence.
Read the result
For a completed HTTP 200 result, readextracted_data[i].data. The captured response contains invoice_number: "DEMO-001" and total: 10.0.
HTTP 202 means the job continues. Keep the complete Location URL, including its query parameters, and follow request progress. Do not reconstruct an extraction retrieval URL from the job ID alone.
See schema guidance and the endpoint reference.
