跳转到主要内容
POST
/
request
/
{id}
/
cancel
取消请求
curl --request POST \
  --url https://api.brightdata.com/datasets/deep_lookup/v1/request/{id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "request_id": "<string>",
  "status": "<string>",
  "records_processed": 123,
  "charge": "<string>"
}

Authorizations

Authorization
string
header
required

在 Authorization 头中使用您的 Bright Data API Key 作为 Bearer 令牌。

认证方法:

  1. 在 Bright Data 账户设置中获取 API Key: https://brightdata.com/cp/setting/users
  2. 在请求的 Authorization 头中包含 API Key
  3. 格式: Authorization: Bearer YOUR_API_KEY

示例:

Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df

了解如何获取 Bright Data API Key: https://docs.brightdata.com/cn/api-reference/authentication#如何生成新的-api-key?

Path Parameters

id
string
required

Response

200 - application/json

请求已取消

request_id
string
status
string
records_processed
integer
charge
string