Fetch Document Result
fetch_document_resultRetrieve structured JSON for a single processed document by document_id directly, without an export job or local file. Returns extracted data and metadata.
Instructions
Read structured JSON for one processed Suparse document_id directly, without submitting an export job or saving a local file. Returns task_id, original_file, total_documents_extracted, and documents containing extracted_data. Get document IDs from extraction results or get_task_results (documents[].id); do not substitute a task_id. Use fetch_json_results for a multi-document JSON export or download_results to save an export. Does not wait for extraction to finish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_url | No | ||
| document_id | Yes | Suparse document ID to fetch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| documents | Yes | ||
| original_file | Yes | ||
| total_documents_extracted | Yes |