Prerequisites
- A Bright Data account with an active API key
- Completed the Quickstart
Request structure
Every synchronous request follows the same pattern:dataset_id and the input URL format.
The
/scrape endpoint is built for real-time, single-URL requests. Bright Data recommends 20 URLs or fewer per request, a best practice rather than a hard limit, and the endpoint waits up to 1 minute. If collection takes longer, the response is HTTP 202 with a snapshot_id instead of data, and collection continues asynchronously. Fetch the result with async requests or have it pushed to you with webhook delivery.How to scrape X (Twitter) profiles
Dataset ID:gd_lwxmeb2u1cniijd7t4
200 response. Processing time varies with target-site conditions and scraper workload.
Example response
Example response
Which output fields does the X (Twitter) profiles scraper return?
The X (Twitter) profiles scraper (gd_lwxmeb2u1cniijd7t4, collect_by_url) returns 22 output fields.
Output fields (22)
Output fields (22)
/scrapers/gd_lwxmeb2u1cniijd7t4.json
How to scrape X (Twitter) posts
Dataset ID:gd_lwxkxvnf1cynvib9co
Example response
Example response
Which output fields does the X (Twitter) posts scraper return?
The X (Twitter) posts scraper (gd_lwxkxvnf1cynvib9co, collect_by_url) returns 32 output fields.
Output fields (32)
Output fields (32)
/scrapers/gd_lwxkxvnf1cynvib9co.json
Quick reference: dataset IDs
Output formats
Control the response format with theformat query parameter:
These are the
format values for /scrape. The full list, NDJSON (default), JSON, JSON lines, CSV and Parquet, and where each applies is in output formats.
Related
Async batch requests
Scrape hundreds of URLs in a single batch job.
API reference
Full parameter and response field reference.