# Twitter / X Scraper - Tweets, Profiles, Search, Hashtags (`convertfleetdotonline/twitter-scraper`) Actor

Scrape Twitter / X profiles, tweets, hashtags, and search results at scale. Extract follower counts, engagement metrics, user bios, and full tweet history. Supports multi-strategy data collection via Apify API.

- **URL**: https://apify.com/convertfleetdotonline/twitter-scraper.md
- **Developed by:** [Hasnain Nisar](https://apify.com/convertfleetdotonline) (community)
- **Categories:** Social media, Lead generation, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 tweet scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Twitter / X Scraper 🐦 Tweets, Profiles, Search & Hashtags — No API Key

**Scrape tweets, user profiles, hashtags and advanced-search results from X (formerly Twitter) — no developer account, no API key, no $100/month X API bill.** Paste search queries, handles, or URLs and get clean, structured tweet data with engagement metrics, author details, media, and timestamps. Export to **JSON, CSV, Excel, or the API**.

The output is **drop-in compatible with apidojo's Tweet Scraper** (`likeCount`, `retweetCount`, `author.userName`, …) — switch Actors without rewriting a single field in your pipeline.

---

### ⚡ At a glance

| | |
|---|---|
| **Scrapes** | Tweets by search query, by profile/handle, by hashtag, and by direct URL |
| **Engagement** | likes, retweets, replies, quotes, views, bookmarks |
| **Author data** | username, display name, verified flag, avatar, profile links |
| **Filters** | language, date range, min likes/retweets/replies, media-only, verified-only |
| **Output** | apidojo-compatible JSON → CSV · Excel · XML · API |
| **API key** | ❌ Not required |
| **X session** | optional — add `authToken` + `ct0` for full-completeness scraping |
| **Proxy** | residential-ready (recommended for X) |
| **Advanced search** | ✅ Full `from:`, `since:`, `filter:media`, `min_faves:` … syntax |

---

### 🎯 What it does

- ✅ **Search scraping** — any [Twitter advanced-search](https://github.com/igorbrigadir/twitter-advanced-search) query: keywords, `from:user`, `#hashtag`, `filter:media`, `lang:en`, `min_faves:100`, and more.
- ✅ **Profile timelines** — newest tweets from any handle, with optional replies/retweets.
- ✅ **Hashtag tracking** — pass `#topic` as a search term.
- ✅ **Direct URLs** — tweet, profile, or search URLs; paste and go.
- ✅ **Rich filters** — language, start/end date, minimum engagement, media-only, verified-only.
- ✅ **apidojo-compatible output** — migrate from Tweet Scraper V2 with zero field renaming.

---

### 🚀 Quick start

```json
{
  "searchTerms": ["from:NASA"],
  "sort": "Latest",
  "maxItems": 100
}
````

Click **Start**, then download the dataset as CSV / JSON / Excel.

#### More examples

**Keyword search in English**

```json
{ "searchTerms": ["artificial intelligence"], "tweetLanguage": "en", "sort": "Top" }
```

**Hashtag with media only**

```json
{ "searchTerms": ["#AI filter:media"], "onlyImage": true }
```

**A user's tweets between two dates**

```json
{ "searchTerms": ["from:elonmusk since:2024-01-01 until:2024-06-01"], "sort": "Latest" }
```

**Profile timeline by handle**

```json
{ "twitterHandles": ["nasa", "spacex"], "maxItems": 50, "includeReplies": false }
```

**High-engagement tweets only**

```json
{ "searchTerms": ["climate change"], "minimumFavorites": 500, "minimumRetweets": 100 }
```

**Direct URLs**

```json
{ "startUrls": ["https://x.com/NASA", "https://x.com/NASA/status/1728108619189874825"] }
```

> 💡 **Tip:** You can test any query on [x.com/search](https://x.com/search) first — the scraper fetches what you see there.

***

### 🍜 Output example (apidojo-compatible)

```json
{
  "type": "tweet",
  "id": "1728108619189874825",
  "url": "https://x.com/elonmusk/status/1728108619189874825",
  "twitterUrl": "https://twitter.com/elonmusk/status/1728108619189874825",
  "text": "More than 10 per human on average",
  "retweetCount": 11311,
  "replyCount": 6526,
  "likeCount": 104121,
  "quoteCount": 2915,
  "viewCount": 8200000,
  "bookmarkCount": 702,
  "createdAt": "Fri Nov 24 17:49:36 +0000 2023",
  "lang": "en",
  "isReply": false,
  "isRetweet": false,
  "isQuote": true,
  "media": ["https://pbs.twimg.com/media/HBUzlGwbcAUboWU.jpg"],
  "author": {
    "type": "user",
    "userName": "elonmusk",
    "name": "Elon Musk",
    "url": "https://x.com/elonmusk",
    "twitterUrl": "https://twitter.com/elonmusk",
    "isVerified": true,
    "profilePicture": "https://pbs.twimg.com/profile_images/.../yRsRRjGO_normal.jpg"
  },
  "source": "graphql-auth"
}
```

***

### 🍚 Input parameters

| Field | Type | Description |
|---|---|---|
| `searchTerms` | array | Search queries (full advanced-search syntax). |
| `twitterHandles` | array | Profile handles (without @) to scrape timelines for. |
| `startUrls` | array | Direct X/Twitter tweet, profile, or search URLs. |
| `maxItems` | integer | Max tweets to return in total. |
| `sort` | `Latest` | `Top` | Result ordering. |
| `tweetLanguage` | string | ISO 639-1 code (e.g. `en`). |
| `onlyImage` / `onlyVideo` | boolean | Media-only filters. |
| `onlyVerifiedUsers` / `onlyQuote` | boolean | Author/type filters (applied when metadata is present). |
| `minimumRetweets` / `minimumFavorites` / `minimumReplies` | integer | Minimum-engagement thresholds. |
| `start` / `end` | date | Date range for search terms (YYYY-MM-DD). |
| `includeReplies` / `includeRetweets` | boolean | Timeline composition for handles. |
| `authToken` / `csrfToken` | string (secret) | Your X `auth_token` + `ct0` cookies — optional, for full-completeness scraping. |
| `proxyConfiguration` | object | Proxy settings (residential recommended). |

Legacy aliases `queries`, `usernames`, `urls`, `maxTweets` are still accepted.

***

### 🔑 Using your X session (optional, for best results)

X heavily restricts logged-out access. Supplying **your own** session cookies unlocks X's native GraphQL API for the most complete, highest-volume results — and keeps you in control instead of relying on a shared, throttled pool.

1. Log in at **x.com** in Chrome/Edge (a secondary account is fine).
2. Press **F12** → **Application** tab → **Cookies → https://x.com**.
3. Copy the value of **`auth_token`** → paste into **authToken**.
4. Copy the value of **`ct0`** → paste into **csrfToken**.

> 🔒 Cookies are used only to sign read requests for this run and are **never stored or logged**. Pair them with a **residential proxy** (ideally same region as the account) for stability. Without a session, the Actor still works via public endpoints (syndication, mirrors) — just with lower completeness on search.

***

### 🆚 Why choose this Actor

| Feature | 🐦 This Actor | apidojo Tweet Scraper V2 | Microworlds |
|---|---|---|---|
| No X API key required | ✅ | ✅ | ✅ |
| Advanced-search syntax | ✅ | ✅ | ✅ |
| apidojo-compatible output | ✅ (drop-in) | n/a | ❌ |
| **Free users via API** | ✅ | ❌ (UI only) | varies |
| **No 50-tweet minimum per query** | ✅ | ❌ (min 50) | ✅ |
| Single-tweet & small queries | ✅ | ❌ | ✅ |
| Bring-your-own session | ✅ | ❌ | ❌ |
| Date / language / engagement filters | ✅ | ✅ | ✅ |
| Residential-proxy support | ✅ | ✅ | ✅ |
| Transparent fallback chain | ✅ | ❌ | ❌ |

**Where this Actor wins:** no per-query minimums, works for single tweets and tiny result sets, usable on the free tier via API for testing, and emits the exact field names apidojo users already depend on — so migration is copy-paste.

***

### 🔗 Integrations & automation

- **Google Sheets / Excel** — export with one click or schedule a recurring run.
- **Make / Zapier / n8n** — trigger downstream on new dataset items.
- **Apify API** — pull the dataset in any language:

```bash
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=csv&clean=true&token=<YOUR_TOKEN>"
```

***

### ❓ FAQ

**Do I need a Twitter/X API key or developer account?**
No. This Actor works without the paid X API. Add your own session cookies only if you want maximum completeness on search.

**Is there a minimum number of tweets per query?**
No. Unlike some large-scale-only scrapers, there's no 50-tweet minimum — fetch a single tweet or a handful if that's all you need.

**Can I scrape tweets from a specific user?**
Yes — use `twitterHandles: ["nasa"]` or a search term like `from:nasa`.

**Can I scrape a hashtag?**
Yes — pass it as a search term: `searchTerms: ["#AI"]`.

**How do I filter by date, language, or engagement?**
Use `start`/`end`, `tweetLanguage`, and `minimumFavorites`/`minimumRetweets`/`minimumReplies`. You can also embed operators directly in a query: `from:nasa since:2024-01-01 min_faves:100`.

**Why did I get fewer results than expected without cookies?**
X restricts logged-out search. Add `authToken` + `ct0` and a residential proxy for full-volume scraping. Public endpoints are best-effort.

**Is the output compatible with apidojo's Tweet Scraper?**
Yes — fields like `id`, `url`, `text`, `likeCount`, `retweetCount`, `replyCount`, `createdAt`, and `author.userName` match, so most pipelines work unchanged.

**Is scraping X legal?**
Scraping **public** data is generally permitted in many jurisdictions, but you must comply with X's Terms, GDPR/CCPA, and local laws. Use data responsibly.

***

### ⚠️ Limitations

- Logged-out **search** is heavily restricted by X; for reliable, high-volume search add your session + a residential proxy.
- Shadow-banned or filtered tweets may not appear — this is X-side behavior, outside the Actor's control.
- Datacenter IPs are rate-limited fast; use residential proxies for scale.
- X can change its GraphQL/search behavior at any time; the Actor degrades gracefully through a fallback chain (auth GraphQL → syndication → mirrors → search hydration).

***

### 📨 Support & feedback

Need an extra field or hit an issue? Open it on the Actor page — requests are reviewed quickly. If this saved you time, a short ⭐ review on Apify helps others find it.

Happy scraping! 🚀

# Actor input Schema

## `searchTerms` (type: `array`):

Twitter/X search queries. Supports full advanced-search syntax, e.g. `from:NASA`, `"climate change" lang:en`, `#AI filter:media min_faves:100`. Each query can return thousands of tweets.

## `twitterHandles` (type: `array`):

Profile handles to scrape timelines for (without @). Example: elonmusk, NASA.

## `startUrls` (type: `array`):

Direct X / Twitter URLs — tweet, profile, or search URLs. Paste and go.

## `maxItems` (type: `integer`):

Maximum number of tweets to return in total. Leave at default for a quick run; raise for large exports.

## `sort` (type: `string`):

Order of search results. `Latest` = most recent first; `Top` = highest-engagement first.

## `tweetLanguage` (type: `string`):

Restrict tweets to a language, as an ISO 639-1 code (e.g. `en`, `es`, `fr`). Leave empty for all languages.

## `onlyVerifiedUsers` (type: `boolean`):

Return only tweets from verified accounts.

## `onlyImage` (type: `boolean`):

Return only tweets that contain an image.

## `onlyVideo` (type: `boolean`):

Return only tweets that contain a video.

## `onlyQuote` (type: `boolean`):

Return only quote tweets.

## `minimumRetweets` (type: `integer`):

Only return tweets with at least this many retweets.

## `minimumFavorites` (type: `integer`):

Only return tweets with at least this many likes.

## `minimumReplies` (type: `integer`):

Only return tweets with at least this many replies.

## `start` (type: `string`):

Only return tweets sent after this date (YYYY-MM-DD). Applies to search terms.

## `end` (type: `string`):

Only return tweets sent before this date (YYYY-MM-DD). Applies to search terms.

## `includeReplies` (type: `boolean`):

Include reply tweets in profile timelines.

## `includeRetweets` (type: `boolean`):

Include retweets / reposts in profile timelines.

## `authToken` (type: `string`):

Your X (Twitter) `auth_token` cookie value. Provide together with the `ct0` token to unlock authenticated, high-completeness scraping. Used only to sign read requests during the run; never stored. See README → 'Using your X session'.

## `csrfToken` (type: `string`):

Your X (Twitter) `ct0` (CSRF) cookie value. Required alongside `authToken` for the authenticated path.

## `proxyConfiguration` (type: `object`):

Proxy for all requests. Residential proxies are strongly recommended for X / Twitter — datacenter IPs are heavily rate-limited.

## `queries` (type: `array`):

Deprecated alias for `searchTerms`. Kept for backward compatibility.

## `usernames` (type: `array`):

Deprecated alias for `twitterHandles`.

## `urls` (type: `array`):

Deprecated alias for `startUrls`.

## `maxTweets` (type: `integer`):

Deprecated per-target cap. Use `maxItems` instead. Still honored if `maxItems` is not set.

## Actor input object example

```json
{
  "searchTerms": [],
  "twitterHandles": [
    "elonmusk"
  ],
  "startUrls": [],
  "maxItems": 100,
  "sort": "Latest",
  "tweetLanguage": "",
  "onlyVerifiedUsers": false,
  "onlyImage": false,
  "onlyVideo": false,
  "onlyQuote": false,
  "minimumRetweets": 0,
  "minimumFavorites": 0,
  "minimumReplies": 0,
  "start": "",
  "end": "",
  "includeReplies": false,
  "includeRetweets": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "queries": [],
  "usernames": [],
  "urls": []
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [],
    "twitterHandles": [
        "elonmusk"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("convertfleetdotonline/twitter-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": [],
    "twitterHandles": ["elonmusk"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("convertfleetdotonline/twitter-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [],
  "twitterHandles": [
    "elonmusk"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call convertfleetdotonline/twitter-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=convertfleetdotonline/twitter-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Twitter / X Scraper - Tweets, Profiles, Search, Hashtags",
        "description": "Scrape Twitter / X profiles, tweets, hashtags, and search results at scale. Extract follower counts, engagement metrics, user bios, and full tweet history. Supports multi-strategy data collection via Apify API.",
        "version": "0.1",
        "x-build-id": "AifRLnFmGvUnmj3VE"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/convertfleetdotonline~twitter-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-convertfleetdotonline-twitter-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/convertfleetdotonline~twitter-scraper/runs": {
            "post": {
                "operationId": "runs-sync-convertfleetdotonline-twitter-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/convertfleetdotonline~twitter-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-convertfleetdotonline-twitter-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Twitter/X search queries. Supports full advanced-search syntax, e.g. `from:NASA`, `\"climate change\" lang:en`, `#AI filter:media min_faves:100`. Each query can return thousands of tweets.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "twitterHandles": {
                        "title": "Twitter handles",
                        "type": "array",
                        "description": "Profile handles to scrape timelines for (without @). Example: elonmusk, NASA.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Direct X / Twitter URLs — tweet, profile, or search URLs. Paste and go.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "Max items on output",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum number of tweets to return in total. Leave at default for a quick run; raise for large exports.",
                        "default": 100
                    },
                    "sort": {
                        "title": "Sort by",
                        "enum": [
                            "Latest",
                            "Top"
                        ],
                        "type": "string",
                        "description": "Order of search results. `Latest` = most recent first; `Top` = highest-engagement first.",
                        "default": "Latest"
                    },
                    "tweetLanguage": {
                        "title": "Tweet language",
                        "type": "string",
                        "description": "Restrict tweets to a language, as an ISO 639-1 code (e.g. `en`, `es`, `fr`). Leave empty for all languages.",
                        "default": ""
                    },
                    "onlyVerifiedUsers": {
                        "title": "Only verified users",
                        "type": "boolean",
                        "description": "Return only tweets from verified accounts.",
                        "default": false
                    },
                    "onlyImage": {
                        "title": "Only tweets with images",
                        "type": "boolean",
                        "description": "Return only tweets that contain an image.",
                        "default": false
                    },
                    "onlyVideo": {
                        "title": "Only tweets with video",
                        "type": "boolean",
                        "description": "Return only tweets that contain a video.",
                        "default": false
                    },
                    "onlyQuote": {
                        "title": "Only quote tweets",
                        "type": "boolean",
                        "description": "Return only quote tweets.",
                        "default": false
                    },
                    "minimumRetweets": {
                        "title": "Minimum retweets",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return tweets with at least this many retweets.",
                        "default": 0
                    },
                    "minimumFavorites": {
                        "title": "Minimum favorites (likes)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return tweets with at least this many likes.",
                        "default": 0
                    },
                    "minimumReplies": {
                        "title": "Minimum replies",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return tweets with at least this many replies.",
                        "default": 0
                    },
                    "start": {
                        "title": "Start date",
                        "type": "string",
                        "description": "Only return tweets sent after this date (YYYY-MM-DD). Applies to search terms.",
                        "default": ""
                    },
                    "end": {
                        "title": "End date",
                        "type": "string",
                        "description": "Only return tweets sent before this date (YYYY-MM-DD). Applies to search terms.",
                        "default": ""
                    },
                    "includeReplies": {
                        "title": "Include replies",
                        "type": "boolean",
                        "description": "Include reply tweets in profile timelines.",
                        "default": false
                    },
                    "includeRetweets": {
                        "title": "Include retweets",
                        "type": "boolean",
                        "description": "Include retweets / reposts in profile timelines.",
                        "default": true
                    },
                    "authToken": {
                        "title": "X auth_token cookie (optional)",
                        "type": "string",
                        "description": "Your X (Twitter) `auth_token` cookie value. Provide together with the `ct0` token to unlock authenticated, high-completeness scraping. Used only to sign read requests during the run; never stored. See README → 'Using your X session'."
                    },
                    "csrfToken": {
                        "title": "X ct0 cookie (optional)",
                        "type": "string",
                        "description": "Your X (Twitter) `ct0` (CSRF) cookie value. Required alongside `authToken` for the authenticated path."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy for all requests. Residential proxies are strongly recommended for X / Twitter — datacenter IPs are heavily rate-limited.",
                        "default": {
                            "useApifyProxy": true
                        }
                    },
                    "queries": {
                        "title": "Search queries (legacy alias of searchTerms)",
                        "type": "array",
                        "description": "Deprecated alias for `searchTerms`. Kept for backward compatibility.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "usernames": {
                        "title": "Usernames (legacy alias of twitterHandles)",
                        "type": "array",
                        "description": "Deprecated alias for `twitterHandles`.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "urls": {
                        "title": "URLs (legacy alias of startUrls)",
                        "type": "array",
                        "description": "Deprecated alias for `startUrls`.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxTweets": {
                        "title": "Max tweets per target (legacy)",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Deprecated per-target cap. Use `maxItems` instead. Still honored if `maxItems` is not set."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
