SoMark文档智能API
    • 使用说明
    • 插件使用说明
      • Coze插件
      • Dify插件
    • SoMark-同步解析
      POST
    • SoMark-异步解析-任务提交
      POST
    • SoMark-异步解析-结果查询
      POST

      SoMark-异步解析-结果查询

      POST
      https://somark.tech/api/v1/extract/async_check
      根据“任务提交”接口返回的 task_id,查询异步任务的执行状态和解析结果。建议调用方每隔几秒轮询一次本接口,通过检查返回体中的 status 字段来获取任务的最新进展。

      请求参数

      Body 参数multipart/form-data

      返回响应

      🟢200成功
      application/json
      Body

      示例
      {
          "code": 0,
          "message": "string",
          "data": {
              "record_id": 0,
              "task_id": "string",
              "status": "string",
              "file_name": "string",
              "metadata": {
                  "page_num": 0,
                  "file_type": "string"
              },
              "result": {
                  "file_name": "string",
                  "imgs": [
                      "string"
                  ],
                  "outputs": {
                      "json": {
                          "pages": [
                              {
                                  "page_num": 0,
                                  "blocks": [
                                      {
                                          "idx": 0,
                                          "type": "string",
                                          "bbox": [
                                              0
                                          ],
                                          "content": "string",
                                          "format": "string",
                                          "captions": [
                                              "string"
                                          ],
                                          "img_url": "string"
                                      }
                                  ],
                                  "page_size": {
                                      "h": 0,
                                      "w": 0
                                  },
                                  "merge_content_from_pre_page": true
                              }
                          ]
                      },
                      "markdown": "string"
                  }
              }
          }
      }
      修改于 2026-01-07 06:41:23
      上一页
      SoMark-异步解析-任务提交
      Built with