Query the status, result, or chunks of a parsing task
Call this API to query the status, result, or chunks of a parsing task. Keep polling while
data.status is processing; stop when it becomes success or failed.
Make sure you have obtained an API Key before calling. See Authentication.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
biz_id | string | Yes | The business task ID returned by the /parse/submit endpoint. |
step_start | integer | No | The chunk start position; default 0. Corresponds to layouts for document results and segments for audio/video results. |
step_size | integer | No | The chunk step size; default 0 |
oss_config | object | No | OSS output configuration. |
oss_config.access_key_id | string | No | Managed OSS AccessKey ID. |
oss_config.access_key_secret | string | No | Managed OSS AccessKey Secret. |
oss_config.security_token | string | No | Managed OSS Security Token. |
Response
| Field | Type | Description |
|---|---|---|
request_id | string | The request ID. |
data.status | string | Processing status: init, processing, success, or failed. |
data.processing | number | Processing progress. |
data.successful_parsing_num | integer | Number of layouts or segments processed. |
data.image_count | integer | Number of images. |
data.table_count | integer | Number of tables. |
data.paragraph_count | integer | Number of paragraphs. |
data.page_count | integer | Number of pages. |
data.layouts | array | Layout results for the queried chunk. |
data.markdown_content | string | Parsing result in Markdown format. |
data.output_format_result | array | List of output format results. |
data.output_format_result[].output_file_url | string | The URL corresponding to the output type. |
data.output_format_result[].output_type | string | The output type. |
data.media_duration | number | File duration (audio/video). |
data.segments | array | Parsed segment results (audio/video). |
data.synopsis_result | string | Synopsis parsing result (audio/video). |
data.synopsis_segments | array | Synopsis segments (audio/video). |
data.synopsis_summary | string | Synopsis summary (audio/video). |
While the status is
processing, keep querying this endpoint; when the status is failed, refer to Error codes to determine the cause of failure.Result query code examples
- Document parsing result query
- Audio/video parsing result query
Response example