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. 7. 28.Verified 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이며 서비스 수수료가 포함되어 있습니다.