了解如何使用 Web Scraper API 触发数据收集,提供发现和 PDP 抓取器的选项。自定义请求,设置交付选项,并高效地检索数据。
Content-Type: application/json输入的 JSON 数组
示例: [{"url":"https://www.airbnb.com/rooms/50122531"}]
Content-Type: multipart/form-data一个 CSV 文件,字段名为 data
示例 (curl): data=@path/to/your/file.csv

PDP 以 URL 输入PDP 的输入格式始终是 URL,指向要抓取的页面。
discovery 方法的 Discovery 输入discovery 的输入格式可以根据特定的抓取器有所不同。输入可以是:
Use your Bright Data API Key as a Bearer token in the Authorization header.
How to authenticate:
Authorization: Bearer YOUR_API_KEYExample:
Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07dfLearn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication
Dataset ID for which data collection is triggered.
"gd_l1vikfnt1wgvvqz95w"
List of output columns, separated by | (e.g., url|about.updated_on). Filters the response to include only the specified fields.
"url|about.updated_on"
Set it to "discover_new" to trigger a collection that includes a discovery phase.
discover_new Specifies which discovery method to use. Available options: "keyword", "best_sellers_url", "category_url", "location" and more (according to the specific API). Relevant only for collections that include a discovery phase.
Include errors report with the results.
Limit the number of results per input. Relevant only for collections that include a discovery phase.
x >= 1Limit the total number of results.
x >= 1URL where the notification will be sent once the collection is finished. Notification will contain snapshot_id and status.
Webhook URL where data will be delivered.
Specifies the format of the data to be delivered to the webhook endpoint.
json, ndjson, jsonl, csv Authorization header to be used when sending notification to notify URL or delivering data via webhook endpoint.
By default, the data will be sent to the webhook compressed. Pass true to send it uncompressed.
Collection job successfully started
ID of your request that can be used in the next APIs
"s_m4x7enmven8djfqak"