# Twitter Scraper - Scrape Tweets from X Profiles (`logiover/x-tweet-scraper`) Actor

Scrape tweets from any X / Twitter profile without an API key or login. Twitter timeline scraper with full engagement; export tweets to CSV/JSON.

- **URL**: https://apify.com/logiover/x-tweet-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Social media, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

<div align="center">

## Twitter Scraper — Scrape Tweets from Any X (Twitter) Profile

#### Scrape tweets from any X / Twitter profile with full engagement — likes, retweets, replies, quotes & views. No login.

<br>

![No login](https://img.shields.io/badge/✓_No_login-no_cookies-2ea44f?style=for-the-badge)
![No API key](https://img.shields.io/badge/✓_No_API_key-needed-2ea44f?style=for-the-badge)
![High volume](https://img.shields.io/badge/📦_Hundreds-per_profile-1f6feb?style=for-the-badge)
![Export](https://img.shields.io/badge/Export-JSON·CSV·Excel·API-f59e0b?style=for-the-badge)
![Account safe](https://img.shields.io/badge/0%25-ban_risk-9333ea?style=for-the-badge)

<br>

**Point it at any @handle and pull the timeline with every engagement metric — likes, retweets, replies, quotes, bookmarks and views.**
The fast, no-API-key alternative for tweet data at scale.

</div>

---

### 📌 Overview

The **X (Twitter) Tweet Scraper** collects tweets from any list of X / Twitter
**@handles or profile URLs** and returns each tweet with complete metadata:
**likes, retweets, replies, quotes, bookmarks and views**, plus hashtags,
mentions, links, media, language and the post date. It paginates each timeline to
pull **hundreds of tweets per profile**.

It needs **no login, no cookies and no API key** — it reads only public data
through residential proxies, so there's **zero risk to any X account**. With no
headless browser, it's a **fast and low-cost** way to build large tweet datasets.

> ✅ Add many handles and raise `maxTweetsPerProfile` to assemble an
> **analysis-ready tweet dataset** in a single run.

---

### ✨ Features

| | Feature | Description |
|---|---|---|
| 📦 | **Hundreds per profile** | Cursor pagination walks the full public timeline. |
| 📊 | **Every engagement metric** | Likes, retweets, replies, quotes, bookmarks & **views**. |
| 🧵 | **Rich tweet data** | Hashtags, mentions, links, media, language & flags (reply / quote / retweet). |
| 👤 | **Author context** | Username, name, follower count and verified status per tweet. |
| 🎚️ | **Smart filters** | Toggle retweets and replies in or out. |
| ⚡ | **No browser** | Lightweight API access — fast and cheap at scale. |
| 🛡️ | **Login-free & safe** | Guest-token access over residential proxies — no account, no ban risk. |
| 📤 | **Any format** | Export to JSON, CSV, Excel, HTML or pull via API & webhooks. |

---

### 🎯 Who it's for

- **Content & competitor analysis** — see which posts and formats win in your niche.
- **Brand & executive monitoring** — archive an account's output with engagement.
- **Data science & ML** — build labelled tweet datasets for NLP, sentiment & trends.
- **Marketers & analysts** — benchmark reach and engagement across accounts and time.

---

### 🧾 Input

| Field | Type | Description |
|-------|------|-------------|
| `profiles` | array | **Required.** X @handles or profile URLs (`nasa`, `@naval`, `https://x.com/stripe`). |
| `maxTweetsPerProfile` | integer | How many tweets to collect per profile (paginated). Default `100`. |
| `includeRetweets` | boolean | Include the profile's retweets. Default `true`. |
| `includeReplies` | boolean | Include the profile's replies. Default `true`. |
| `maxResults` | integer | Global cap on tweets saved. `0` = unlimited. |
| `proxyConfiguration` | object | Residential proxy (required by X). Pre-configured for you. |

#### Example input

```json
{
  "profiles": ["nasa", "naval"],
  "maxTweetsPerProfile": 200,
  "includeReplies": false
}
````

***

### 📦 Output

Each tweet is saved as one structured record:

```json
{
  "tweetId": "2059393717111308634",
  "url": "https://x.com/NASA/status/2059393717111308634",
  "text": "On Tuesday, June 9, we'll announce the four astronauts who will...",
  "createdAt": "Tue Jun 03 16:00:00 +0000 2026",
  "lang": "en",
  "likeCount": 38146,
  "retweetCount": 4120,
  "replyCount": 612,
  "quoteCount": 210,
  "bookmarkCount": 1503,
  "viewCount": 2834957,
  "isReply": false,
  "isQuote": false,
  "isRetweet": false,
  "hashtags": ["Artemis"],
  "mentions": ["NASA_Astronauts"],
  "urls": ["https://www.nasa.gov/..."],
  "media": [{ "type": "photo", "url": "https://pbs.twimg.com/media/..." }],
  "author": { "username": "NASA", "name": "NASA", "followers": 92089565, "verified": true },
  "fromProfile": "NASA"
}
```

#### 📖 Output field reference

| Field | Description |
|-------|-------------|
| `text` | Full tweet text (long-form posts supported) |
| `likeCount` / `retweetCount` / `replyCount` | Core engagement |
| `quoteCount` / `bookmarkCount` / `viewCount` | Extended engagement & reach |
| `isReply` / `isQuote` / `isRetweet` | Tweet type flags |
| `hashtags` / `mentions` / `urls` | Entities extracted from the tweet |
| `media` | Photos / videos with type and URL |
| `author` | Tweet author with follower count & verified status |
| `createdAt` / `url` | Post date and direct link |

***

### ⚙️ How it works

1. You provide X **@handles or profile URLs**.
2. The actor resolves each profile and walks its public timeline with cursor pagination.
3. Each tweet is parsed into a clean record with full engagement metrics.
4. Your retweet / reply filters are applied and results stream to the dataset.

No login, no cookies, no API keys — and **no X account is ever used or risked**.

***

### ❓ FAQ

#### Is this an X / Twitter API alternative?

Yes. It pulls a profile's tweets with full engagement without the official X /
Twitter API, a developer account, app keys or the API's low free-tier read caps —
just paste handles and run.

#### Does it need login or cookies?

No. The Actor uses public guest-token access — no login, no cookies you provide
and no developer API key. No X account is involved, so there's zero ban risk.

#### How many tweets can I get per profile?

Hundreds — it paginates the public timeline with cursor pagination and you control
depth with `maxTweetsPerProfile`. Run many handles in one go for a large dataset.

#### Are view counts included?

Yes — the view count is captured whenever X exposes it, alongside likes, retweets,
replies, quotes and bookmarks.

#### Can I exclude retweets or replies?

Yes — toggle `includeRetweets` and `includeReplies` independently to get only the
original tweets you want.

#### Can I scrape tweets without an API key or login?

Yes. This is a Twitter scraper without API key — it uses public guest-token access
over residential proxies, so you scrape tweets without login, cookies or a developer
account, and with zero ban risk.

#### How do I export tweets to CSV or JSON?

Every run builds a tweet dataset you can export to CSV, JSON, Excel or HTML, or pull
straight from the API and webhooks — ideal for a tweet engagement dataset.

#### Is this a Twitter timeline scraper?

Yes. Point it at any @handle and it walks the public timeline with cursor pagination
to pull hundreds of tweets per profile with full engagement metrics.

***

### 🔗 Works great with

- 🐦 **X (Twitter) Profile & Email Scraper** — enrich the authors with contact details.
- 🐦 **X (Twitter) Post Scraper by URL** — grab specific posts in bulk.

***

<div align="center">

**Twitter Tweet Scraper · X Tweet Scraper · Scrape Tweets · Twitter Timeline Scraper · Tweet Engagement & Views · No-API-key Twitter data · Twitter Scraper Without API Key · Scrape Tweets Without Login · Export Tweets to CSV · Twitter API Alternative**

<sub>⚖️ Collects publicly available tweet data only. You are responsible for compliance with X's Terms and applicable laws, including bulk-access limits.</sub>

</div>

### 📝 Changelog

#### 2026-06-07

- Docs: added coverage for scraping tweets without an API key or login, exporting tweets to CSV/JSON, and using the actor as a Twitter timeline scraper / API alternative.

#### 2026-06-05

- 🛡️ Reliability fix: results are no longer dropped by strict output validation — runs now complete cleanly even at high volume (thousands of results).
- ⚡ Stability & performance hardening; fresh rebuild.

#### 2026-06-04

- Verified live & refreshed build — reliability/maintenance pass.

# Actor input Schema

## `profiles` (type: `array`):

X / Twitter @handles or profile URLs to scrape tweets from. Examples: 'nasa', '@naval', 'https://x.com/stripe'.

## `maxTweetsPerProfile` (type: `integer`):

How many tweets to collect per profile (paginated).

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

Include the profile's retweets.

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

Include the profile's reply tweets.

## `maxResults` (type: `integer`):

Global cap on tweets saved across all profiles. 0 = unlimited.

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

X requires residential proxies. Leave the default (Apify Proxy · RESIDENTIAL group).

## Actor input object example

```json
{
  "profiles": [
    "nasa",
    "https://x.com/naval"
  ],
  "maxTweetsPerProfile": 100,
  "includeRetweets": true,
  "includeReplies": true,
  "maxResults": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `fromProfile` (type: `string`):

Source profile

## `text` (type: `string`):

Tweet text

## `likeCount` (type: `string`):

Likes

## `viewCount` (type: `string`):

Views

## `createdAt` (type: `string`):

Post date

## `url` (type: `string`):

Tweet URL

# 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 = {
    "profiles": [
        "nasa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/x-tweet-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 = {
    "profiles": ["nasa"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/x-tweet-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 '{
  "profiles": [
    "nasa"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call logiover/x-tweet-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Twitter Scraper - Scrape Tweets from X Profiles",
        "description": "Scrape tweets from any X / Twitter profile without an API key or login. Twitter timeline scraper with full engagement; export tweets to CSV/JSON.",
        "version": "1.0",
        "x-build-id": "hCkqZSoKNRjR5vMo5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/logiover~x-tweet-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-logiover-x-tweet-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/logiover~x-tweet-scraper/runs": {
            "post": {
                "operationId": "runs-sync-logiover-x-tweet-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/logiover~x-tweet-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-logiover-x-tweet-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",
                "required": [
                    "profiles"
                ],
                "properties": {
                    "profiles": {
                        "title": "X profiles",
                        "type": "array",
                        "description": "X / Twitter @handles or profile URLs to scrape tweets from. Examples: 'nasa', '@naval', 'https://x.com/stripe'.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxTweetsPerProfile": {
                        "title": "Max tweets per profile",
                        "minimum": 1,
                        "type": "integer",
                        "description": "How many tweets to collect per profile (paginated).",
                        "default": 100
                    },
                    "includeRetweets": {
                        "title": "Include retweets",
                        "type": "boolean",
                        "description": "Include the profile's retweets.",
                        "default": true
                    },
                    "includeReplies": {
                        "title": "Include replies",
                        "type": "boolean",
                        "description": "Include the profile's reply tweets.",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Global cap on tweets saved across all profiles. 0 = unlimited.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "X requires residential proxies. Leave the default (Apify Proxy · RESIDENTIAL group).",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
