Skip to main content
This guide shows you how to send a synchronous request to each Bright Data X Scraper API endpoint. It covers profiles and posts.

Prerequisites

Request structure

Every synchronous request follows the same pattern:
The only thing that changes between endpoints is the dataset_id and the input URL format.
The /scrape endpoint is built for real-time, single-URL requests. It accepts up to 20 URLs and waits up to 1 minute. If collection takes longer, the response returns 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
You should see a 200 response. Processing time varies with target-site conditions and scraper workload.
Full Profiles response schema

How to scrape X (Twitter) posts

Dataset ID: gd_lwxkxvnf1cynvib9co
Full Posts response schema

Quick reference: dataset IDs

Output formats

Control the response format with the format query parameter:

Async batch requests

Scrape hundreds of URLs in a single batch job.

API reference

Full parameter and response field reference.