> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape X (Twitter) posts by URL

> Use the Bright Data Scraper API to collect X (Twitter) posts by URL. Calls the POST /datasets/v3/scrape endpoint and returns a snapshot ID.

## Query Parameters

**dataset\_id** `string` *required* (default: gd\_lwxkxvnf1cynvib9co)

The dataset ID used for this request.

> [!WARNING]
>
> Must be set to `gd_lwxkxvnf1cynvib9co` to collect **Posts by URL** data.

**notify** `boolean` (default: false)

Whether to send notifications when the request is completed.

**include\_errors** `boolean` (default: true)

Whether to include errors in the response.

## Request Body

**input** `object[]` *required*

An array of input objects.

**properties**

**url** `string` *required*

The URL of the X.com post to collect.

#### Example

```json wrap theme={null}
{
  "input": [
    {"url": "https://x.com/elonmusk/status/1234567890123456789"},
    {"url": "https://x.com/OpenAI/status/9876543210987654321"}
  ]
}
```

```json 200 theme={null}
[
  {
    "id": "2039126434510418303",
    "user_posted": "CozHealsSEN",
    "name": "SENQ Breakfast",
    "description": "LISTEN: North Queensland Cowboys front rower Matt Lodge joins Corey Parker and Andrew McCullough to discuss this weekend's match up against the Dragons",
    "date_posted": "2026-03-31T23:43:21.000Z",
    "photos": ["https://pbs.twimg.com/..."],
    "url": "https://x.com/CozHealsSEN/status/2039126434510418303",
    "quoted_post": null,
    "tagged_users": null,
    "replies": 0,
    "reposts": 4,
    "likes": 7,
    "views": 726,
    "external_url": "https://...",
    "hashtags": null,
    "followers": 814,
    "biography": "QLD brekkie show with Corey Parker & Ian Healy.",
    "posts_count": 4862,
    "profile_image_link": "https://pbs.twimg.com/...",
    "following": 430,
    "is_verified": null,
    "quotes": 0,
    "bookmarks": 0,
    "parent_post_details": {
      "date_posted": "2026-03-31T23:43:21.000Z",
      "post_id": "2039126434510418303",
      "profile_id": "889656535722360833",
      "profile_name": "SENQ Breakfast"
    },
    "videos": null,
    "verification_type": null,
    "user_id": "889656535722360833"
  }
]
```
