跳转到主要内容
POST
cURL
该端点不会直接返回采集数据,而是返回一个 response_id。采集完成后,使用该 response_id 调用实时数据端点来获取结果。

授权

Authorization
string
header
必填

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

查询参数

collector
string
必填

A unique identification of the collector to run

示例:

"COLLECTOR_ID"

version
string

Set to dev to trigger the development version of the scraper

请求体

application/json

A single input object. The fields must match the input schema defined for the collector. Some collectors take url, others take fields such as keyword, location or state.

Single input object whose fields match the collector input schema.

url
string<uri>

Example field for collectors that take a target URL. Replace with the fields your collector expects.

响应

200 - application/json

Returns immediately with a response_id. Use this ID with the Realtime Data endpoint to retrieve the result.

response_id
string

ID of the asynchronous real-time job. Use this value to retrieve the result from the Realtime Data endpoint.