Start a batch scrape
brightdata.web.scrape.job.startStart an asynchronous scraping job over a batch of URLs and get a snapshot id back
- Price
- $0.0015/resultプロバイダー原価
- Success rate
- 99.3%Last 30 days · 631 calls
- Latency p50
- 394 msp95 1 s
- Last verified
- 2026/07/28Verified working
POSThttps://toolswitch.dev/v1/tools/brightdata.web.scrape.job.start?dataset_id=gd_l1vikfch901nx3by4Preview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
returns {snapshot_id: "s_…"} immediately; nothing is billed until records are delivered. Always set limit_per_input on a discovery run — a discover_new job with no cap decides for itself how many records to produce, and each one is billable
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
type | 文字列 | 任意 | set to discover_new to run a discovery crawl instead of scraping the given URLs | discover_new |
format | 文字列 | 任意 | json | ndjson | jsonl | csv | |
notify | 真偽値 | 任意 | fire a webhook when the job finishes | |
endpoint | 文字列 | 任意 | webhook URL used when notify is set | |
dataset_id | 文字列 | 必須 | which managed scraper to run | gd_l1vikfch901nx3by4 |
auth_header | 文字列 | 任意 | Authorization header value Bright Data should send to your webhook | |
discover_by | 文字列 | 任意 | with type=discover_new: keyword | best_sellers_url | category_url | location | |
include_errors | 真偽値 | 任意 | include a per-input error report in the snapshot | |
limit_per_input | 整数 | 任意 | cap records produced per input row — the main guard on discovery spend | 10 |
custom_output_fields | 文字列 | 任意 | pipe-separated field list | |
uncompressed_webhook | 真偽値 | 任意 | ||
limit_multiple_results | 整数 | 任意 | cap total records across the whole job | |
- クエリパラメータ
type文字列任意set to discover_new to run a discovery crawl instead of scraping the given URLs
例:
discover_newformat文字列任意json | ndjson | jsonl | csv
notify真偽値任意fire a webhook when the job finishes
endpoint文字列任意webhook URL used when notify is set
dataset_id文字列必須which managed scraper to run
例:
gd_l1vikfch901nx3by4auth_header文字列任意Authorization header value Bright Data should send to your webhook
discover_by文字列任意with type=discover_new: keyword | best_sellers_url | category_url | location
include_errors真偽値任意include a per-input error report in the snapshot
limit_per_input整数任意cap records produced per input row — the main guard on discovery spend
例:
10custom_output_fields文字列任意pipe-separated field list
uncompressed_webhook真偽値任意limit_multiple_results整数任意cap total records across the whole job
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X POST 'https://toolswitch.dev/v1/tools/brightdata.web.scrape.job.start?dataset_id=gd_l1vikfch901nx3by4' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '[{"url":"https://www.instagram.com/instagram"}]'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/brightdata.web.scrape.job.start?dataset_id=gd_l1vikfch901nx3by4",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("[{\"url\":\"https://www.instagram.com/instagram\"}]"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/brightdata.web.scrape.job.start?dataset_id=gd_l1vikfch901nx3by4", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("[{\"url\":\"https://www.instagram.com/instagram\"}]")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.0015/result です。サービス料を含みます。