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/resultZum Anbieterpreis
- Success rate
- 99,3 %Last 30 days · 631 calls
- Latency p50
- 394 msp95 1 s
- Last verified
- 28.07.2026Verified working
POSThttps://toolswitch.dev/v1/tools/brightdata.web.scrape.job.start?dataset_id=gd_l1vikfch901nx3by4Preview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
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
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
type | Zeichenkette | Optional | set to discover_new to run a discovery crawl instead of scraping the given URLs | discover_new |
format | Zeichenkette | Optional | json | ndjson | jsonl | csv | |
notify | Boolean | Optional | fire a webhook when the job finishes | |
endpoint | Zeichenkette | Optional | webhook URL used when notify is set | |
dataset_id | Zeichenkette | Erforderlich | which managed scraper to run | gd_l1vikfch901nx3by4 |
auth_header | Zeichenkette | Optional | Authorization header value Bright Data should send to your webhook | |
discover_by | Zeichenkette | Optional | with type=discover_new: keyword | best_sellers_url | category_url | location | |
include_errors | Boolean | Optional | include a per-input error report in the snapshot | |
limit_per_input | Ganzzahl | Optional | cap records produced per input row — the main guard on discovery spend | 10 |
custom_output_fields | Zeichenkette | Optional | pipe-separated field list | |
uncompressed_webhook | Boolean | Optional | ||
limit_multiple_results | Ganzzahl | Optional | cap total records across the whole job | |
- Abfrageparameter
typeZeichenketteOptionalset to discover_new to run a discovery crawl instead of scraping the given URLs
Beispiel:
discover_newformatZeichenketteOptionaljson | ndjson | jsonl | csv
notifyBooleanOptionalfire a webhook when the job finishes
endpointZeichenketteOptionalwebhook URL used when notify is set
dataset_idZeichenketteErforderlichwhich managed scraper to run
Beispiel:
gd_l1vikfch901nx3by4auth_headerZeichenketteOptionalAuthorization header value Bright Data should send to your webhook
discover_byZeichenketteOptionalwith type=discover_new: keyword | best_sellers_url | category_url | location
include_errorsBooleanOptionalinclude a per-input error report in the snapshot
limit_per_inputGanzzahlOptionalcap records produced per input row — the main guard on discovery spend
Beispiel:
10custom_output_fieldsZeichenketteOptionalpipe-separated field list
uncompressed_webhookBooleanOptionallimit_multiple_resultsGanzzahlOptionalcap total records across the whole job
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.0015/result einschließlich Servicegebühr abgerechnet.