跳转到主要内容
GET
/
request
/
{id}
获取请求数据
curl --request GET \
  --url https://api.brightdata.com/datasets/deep_lookup/v1/request/{id} \
  --header 'Authorization: Bearer <token>'
{
  "request_id": "<string>",
  "query": "<string>",
  "status": "<string>",
  "title": "<string>",
  "step": "<string>",
  "matched_records": 123,
  "skipped_records": 123,
  "pages_read": 123,
  "pages_considered": 123,
  "total_cost": "<string>",
  "columns": [
    {
      "name": "<string>",
      "description": "<string>",
      "type": "enrichment"
    }
  ],
  "data": [
    {}
  ]
}

授权

Authorization
string
header
必填

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

认证方法:

  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?

路径参数

id
string
必填
示例:

"ai_meu3z0171o8k9jc4dh"

响应

200 - application/json

请求数据

request_id
string
示例:

"ai_meu3z0171o8k9jc4dh"

query
string
示例:

"查找以色列的所有 AI 初创公司"

status
string
示例:

"completed"

title
string
示例:

"以色列的 AI 初创公司"

step
string
  • identifying - 理解并分析查询
  • generating_schema - 创建数据结构
  • generating - 收集并处理数据
  • done - 研究完成
示例:

"done"

matched_records
integer
示例:

73

skipped_records
integer

注意: skipped_records 表示未匹配筛选条件的实体

示例:

27

pages_read
integer
示例:

892

pages_considered
integer
示例:

3421

total_cost
string

注意: total_cost 显示当前费用(对于进行中的请求,此值反映迄今收集的记录)

示例:

"$73.00"

columns
object[]
示例:
[
{
"name": "company_name",
"description": "公司名称",
"type": "enrichment"
}
]
data
object[]
示例:
[
{
"company_name": "Run:ai",
"website": "run.ai",
"founding_date": "2018",
"employee_count": 120
}
]