查询报告
GET
/openReport/report/task/getReport报告使用流程:先调用创建报告获取 reportId,再使用该 ID 调用查询报告检查 processingStatus;状态为 DONE 后,调用下载报告获取报告文件。
报告状态以 processingStatus 为准:IN_QUEUE - 排队中;IN_PROGRESS - 生成中;DONE - 已完成;FATAL - 生成失败;CANCELLED - 已取消。排队或生成中时请稍后再次查询;失败时可参考 failedMsg 调整参数后重新创建。
接口信息
| API Path | 请求协议 | 请求方式 | 令牌桶容量 |
|---|---|---|---|
/ | HTTPS | GET | 1 |
请求参数
reportIdstring必填请求cURL示例
curl --location 'https://openapi.lingxing.com/openReport/report/task/getReport?access_token=value×tamp=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必填reportTypeinteger必填dataStartTimestring必填dataEndTimestring必填processingStatusstring必填failedMsgstringcreatedTimestring必填返回成功示例
{
"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"
}
}