cURL
curl --request GET \ --url https://api.olostep.com/v1/batches/{batch_id}/items \ --header 'Authorization: Bearer <token>'
{ "batch_id": "batch_abc123def456", "object": "list", "status": "completed", "items": [ { "custom_id": "product-123", "retrieve_id": "ret_xyz789", "url": "https://example.com/product/123", "metadata": { "source": "catalog_sync", "priority": "high" } }, { "custom_id": "product-456", "retrieve_id": "ret_abc456", "url": "https://example.com/product/456" } ], "items_count": 2 }
检索批处理中处理的项目列表。然后你可以使用 retrieve_id 通过检索端点获取内容
retrieve_id
metadata
Bearer 认证头的格式为 Bearer ,其中 是你的认证令牌。
要获取项目的批次ID。
要获取的URL状态(已完成或失败)。
completed
failed
分页游标。第一次请求时省略此参数。对于后续请求,使用上一个响应中的 cursor 值。详情请参见 Pagination。
cursor
要返回的结果数量(推荐10-50)。
成功响应,包含批次项目。
Show child attributes
分页游标。当有更多结果可用时出现。在下一个请求的 cursor 参数中使用此值。详情请参见 分页。
此页面对您有帮助吗?