跳转到主要内容
GET
/
v1
/
batches
/
{batch_id}
获取批次信息
curl --request GET \
  --url https://api.olostep.com/v1/batches/{batch_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "status": "<string>",
  "created": 123,
  "total_urls": 123,
  "completed_urls": 123,
  "parser": "<string>",
  "country": "<string>",
  "metadata": {
    "order_id": "12345",
    "customer_name": "John Doe",
    "priority": "high",
    "processed": "true"
  },
  "webhook": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.olostep.com/llms.txt

Use this file to discover all available pages before exploring further.

附加自定义数据: 使用 metadata 参数与您的批次存储键值对。详情请参见元数据

授权

Authorization
string
header
必填

Bearer 认证头的格式为 Bearer ,其中 是你的认证令牌。

路径参数

batch_id
string
必填

要获取信息的批次ID。

响应

成功响应,包含批次信息。

id
string

批处理 ID

object
string

对象的类型。此端点为 "batch"。

status
string

in_progresscompleted

created
number

创建的纪元时间

total_urls
number

批处理中 URL 的数量

completed_urls
number

已完成的 URL 数量

parser
string
country
string
metadata
object

用于存储对象附加信息的键值对集合。遵循 Stripe 的验证规则:最多 50 个键,键最多 40 个字符(不含方括号),值最多 500 个字符,所有值以字符串形式存储。

示例:
{
"order_id": "12345",
"customer_name": "John Doe",
"priority": "high",
"processed": "true"
}
webhook
string

用于接收完成通知的 Webhook URL