# Scrape X Tweets, Threads & HD MP4 Videos

**Use case:** 

Extract single tweets, full self-reply threads, direct HD MP4 video links, photos, likes, retweets, and view counts with no minimum tweet quota.

## Input

```json
{
  "action": "auto_start_urls",
  "startUrls": [
    "https://x.com/elonmusk/status/1812258574049157405",
    "https://x.com/solana"
  ],
  "twitterHandles": [
    "solana"
  ],
  "tweetIdOrUrl": "2124953580662886416",
  "username": "solana",
  "batchTweetIds": "2125078025377378634,1812258574049157405,20",
  "contractAddress": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
  "searchQuery": "BONK",
  "chain": "solana",
  "maxItems": 10,
  "onlyVideo": false,
  "onlyImage": false,
  "minimumLikes": 0,
  "minimumRetweets": 0
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "text"
  },
  "id": {
    "label": "Tweet ID / User ID / Token CA",
    "format": "text"
  },
  "username": {
    "label": "X Handle",
    "format": "text"
  },
  "text": {
    "label": "Tweet Text / Bio / Token Name",
    "format": "text"
  },
  "likes": {
    "label": "Tweet Likes",
    "format": "number"
  },
  "retweets": {
    "label": "Tweet Retweets",
    "format": "number"
  },
  "views": {
    "label": "Tweet Views",
    "format": "number"
  },
  "followers_count": {
    "label": "Profile Followers",
    "format": "number"
  },
  "following_count": {
    "label": "Profile Following",
    "format": "number"
  },
  "tweets_count": {
    "label": "Profile Total Tweets",
    "format": "number"
  },
  "video_url": {
    "label": "HD Video MP4 URL",
    "format": "link"
  },
  "image_url": {
    "label": "Image / Banner URL",
    "format": "link"
  },
  "symbol": {
    "label": "Symbol",
    "format": "text"
  },
  "chain": {
    "label": "Chain",
    "format": "text"
  },
  "price_usd": {
    "label": "Price (USD)",
    "format": "text"
  },
  "market_cap": {
    "label": "Market Cap / FDV",
    "format": "number"
  },
  "created_at": {
    "label": "Created At",
    "format": "text"
  },
  "url": {
    "label": "Source URL",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Twitter Scraper Actor is ready to run with the inputs already set for "Scrape X Tweets, Threads & HD MP4 Videos". [Sign up or log in](https://console.apify.com/create-task-from-example/8Y4IPabvkGb1d6HQT) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape X Tweets, Threads & HD MP4 Videos" task

The Twitter Scraper Actor will start running based on the input automatically. You can also change all the input fields, like 1. extraction mode (action), start urls (tweet urls, profile urls, or token cas), and more, to match your specific use case.

### 3. Receive the "Scrape X Tweets, Threads & HD MP4 Videos" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, tweet id / user id / token ca, x handle, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Scrape X Tweets, Threads & HD MP4 Videos" task via API](https://apify.com/jistudio/twitter-scraper.md).

## FAQ

### Is there a 50-tweet minimum per query?

No. You can fetch a single tweet URL or batch multiple tweet and profile URLs with pay-per-item pricing.

## About this Actor

This example demonstrates how to use [Twitter Scraper](https://apify.com/jistudio/twitter-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jistudio/twitter-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/jistudio/twitter-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
