Scrape URLs into structured records in one call
brightdata.web.scrape.structuredScrape one or more URLs into structured records and get them back in the same call
- Price
- $0.0015/result제공업체 원가
- Success rate
- 84.4%Last 30 days · 38 calls
- Latency p50
- 60 sp95 61 s
- Last verified
- 2026. 7. 28.Verified working
POSThttps://toolswitch.dev/v1/tools/brightdata.web.scrape.structured?format=json&dataset_id=gd_l1vikfch901nx3by4Preview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
the API reference documents the body as {input: [...]}, while the quickstarts post a bare array [{url: …}] to the same path — both appear in official docs, so treat the array as the payload and the wrapper as optional until verified. HARD 1-minute timeout: past that the call returns HTTP 202 with a snapshot_id and you must collect the rows from brightdata.web.scrape.job.results instead. Use trigger/progress/snapshot for anything beyond a few URLs
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
format | 문자열 | 선택 | json (default) | ndjson | csv | json |
dataset_id | 문자열 | 필수 | which managed scraper to run — it decides both the site and the output columns. List them with brightdata.account.datasets.list | gd_l1vikfch901nx3by4 |
include_errors | 불리언 | 선택 | adds a per-input error report to the output | |
custom_output_fields | 문자열 | 선택 | pipe-separated field list to trim the response | url|about.updated_on |
- 쿼리 파라미터
format문자열선택json (default) | ndjson | csv
예시:
jsondataset_id문자열필수which managed scraper to run — it decides both the site and the output columns. List them with brightdata.account.datasets.list
예시:
gd_l1vikfch901nx3by4include_errors불리언선택adds a per-input error report to the output
custom_output_fields문자열선택pipe-separated field list to trim the response
예시:
url|about.updated_on
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X POST 'https://toolswitch.dev/v1/tools/brightdata.web.scrape.structured?format=json&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.structured?format=json&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.structured?format=json&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이며 서비스 수수료가 포함되어 있습니다.