Lingxing

查询报告

GET/openReport/report/task/getReport

报告使用流程:先调用创建报告获取 reportId,再使用该 ID 调用查询报告检查 processingStatus;状态为 DONE 后,调用下载报告获取报告文件。

报告状态以 processingStatus 为准:IN_QUEUE - 排队中;IN_PROGRESS - 生成中;DONE - 已完成;FATAL - 生成失败;CANCELLED - 已取消。排队或生成中时请稍后再次查询;失败时可参考 failedMsg 调整参数后重新创建。

接口信息

API Path请求协议请求方式令牌桶容量
/openReport/report/task/getReportHTTPSGET1

请求参数

reportIdstring必填
报告id
示例 b739b63c-2fbf-4e7d-9d62-165f919aa201

请求cURL示例

curl --location 'https://openapi.lingxing.com/openReport/report/task/getReport?access_token=value&timestamp=value&sign=value&app_key=value&reportId=b739b63c-2fbf-4e7d-9d62-165f919aa201' \
--header 'Content-Type: application/json' \

返回结果

Json Object

codeinteger必填
状态码
messagestring必填
消息
error_detailsarray<any>必填
错误详情
request_idstring必填
请求流水号
response_timestring必填
响应时间
dataobject必填
隐藏子属性显示子属性7 个子字段
reportIdstring必填
报告id
示例 b739b63c-2fbf-4e7d-9d62-165f919aa201
reportTypeinteger必填
报告类型
dataStartTimestring必填
报告开始时间,格式:yyyy-MM-dd HH:mm:ss
dataEndTimestring必填
报告结束时间,格式:yyyy-MM-dd HH:mm:ss
processingStatusstring必填
报告状态:IN_QUEUE - 排队中;IN_PROGRESS - 生成中;DONE - 已完成;FATAL - 生成失败;CANCELLED - 已取消
示例 DONE
failedMsgstring
失败原因,仅在 FATAL 状态下有值
createdTimestring必填
报告创建时间,格式:yyyy-MM-dd HH:mm:ss
示例 2026-10-08 12:34:56

返回成功示例

{
  "code": 0,
  "message": "成功",
  "error_details": [],
  "request_id": "2023020115495258965308",
  "response_time": "2026-10-08 12:34:56",
  "data": {
    "reportId": "b739b63c-2fbf-4e7d-9d62-165f919aa201",
    "reportType": 2,
    "dataStartTime": "2026-10-01 00:00:00",
    "dataEndTime": "2026-10-07 23:59:59",
    "processingStatus": "DONE",
    "failedMsg": null,
    "createdTime": "2026-10-08 12:34:56"
  }
}