# Tweet Scraper by URL - X (Twitter) Post Data (`logiover/x-post-url-scraper`) Actor

Scrape X / Twitter posts by URL or tweet ID. Bulk tweet data export (CSV/JSON), engagement metrics - Twitter unofficial API, no API key or login.

- **URL**: https://apify.com/logiover/x-post-url-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 $3.50 / 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">

## Tweet Scraper by URL — X (Twitter) Post Data Export

#### Scrape any specific X / Twitter posts (tweets) by URL or tweet ID — full text, author, engagement & media. 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)
![Bulk](https://img.shields.io/badge/📦_Bulk-URLs_per_run-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>

**Paste tweet URLs → get back every post with full content and engagement metrics.**
The precise, no-API-key way to hydrate the exact tweets you care about.

</div>

---

### 📌 Overview

The **X (Twitter) Post Scraper** takes specific tweet/post **URLs (or tweet ids)**
and returns the complete data for each post: text, author, **likes, retweets,
replies, quotes, bookmarks and views**, media, hashtags, mentions, links and the
post date. Pass many URLs and it scrapes them all in one run.

It works with **no login, no cookies and no API key** — reading only public data
through residential proxies, so there's **zero risk to any X account**. No
headless browser means it's **fast and inexpensive**, even for large URL lists.

> ✅ Ideal for **enriching tweet links you already have** — from a spreadsheet, a
> report, a newsletter, or the output of another scraper.

---

### ✨ Features

| | Feature | Description |
|---|---|---|
| 🎯 | **Exact posts** | Scrape precisely the tweets you specify — no noise. |
| 📊 | **Every metric** | Likes, retweets, replies, quotes, bookmarks & **views**. |
| 🖼️ | **Full content** | Text (incl. long posts), media, hashtags, mentions & links. |
| 👤 | **Author data** | Username, name, follower count and verified status. |
| 📦 | **Bulk + concurrency** | Hundreds of URLs per run, fetched in parallel. |
| 🧯 | **Graceful errors** | Deleted/protected posts are flagged, never break the run. |
| 🛡️ | **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

- **Engagement & PR reporting** — pull metrics for a set of campaign or press posts.
- **Content archiving** — snapshot specific tweets before they change or disappear.
- **Research & fact-checking** — capture the exact data behind a tweet link.
- **Data enrichment** — hydrate tweet URLs collected elsewhere into full records.

---

### 🧾 Input

| Field | Type | Description |
|-------|------|-------------|
| `postUrls` | array | **Required.** Tweet/post URLs or tweet ids. |
| `maxConcurrency` | integer | How many posts to fetch in parallel (1–12). Default `5`. |
| `maxResults` | integer | Stop after this many posts. `0` = all. |
| `proxyConfiguration` | object | Residential proxy (required by X). Pre-configured for you. |

#### Example input

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

***

### 📦 Output

Each post 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...",
  "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 }
}
```

#### 📖 Output field reference

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

***

### ⚙️ How it works

1. You provide tweet/post **URLs or ids**.
2. The actor resolves each post through X's public data layer over a residential proxy.
3. Every post is parsed into a clean record with full engagement and media.
4. Results stream to the dataset; deleted/protected posts are flagged.

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 hydrates tweet URLs into full post data without the official X / Twitter API,
developer account, app keys or per-tweet rate limits — just paste links and run.

#### Does it need login or cookies?

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

#### Can I pass tweet URLs or tweet IDs?

Both — full post URLs (`https://x.com/.../status/123`) or bare tweet IDs.
Mix them freely in one run.

#### What happens with deleted or protected tweets?

They're returned with a clear error flag so your run always completes cleanly
instead of failing on a single bad link.

#### How many tweets can I scrape per run?

Hundreds to thousands — pass a large `postUrls` list and raise `maxConcurrency`.

#### How do I export X / Twitter post data to CSV or JSON?

Run the actor on your tweet URLs, then download the dataset as CSV, JSON, Excel or
HTML — or pull it via API/webhook. It's a clean tweet data export with no extra steps.

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

Yes. This is a Twitter unofficial API by URL — it reads public post data over
residential proxies with no developer API key, no app, no login and no cookies.

#### Does it return tweet engagement metrics?

Yes. Every record includes likes, retweets, replies, quotes, bookmarks and views,
making it a ready Twitter post engagement metrics scraper for reporting.

***

### 🔗 Works great with

- 🐦 **X (Twitter) Tweet Scraper** — pull a whole profile's timeline.
- 🐦 **X (Twitter) Profile & Email Scraper** — enrich the authors with contacts.

***

<div align="center">

**Tweet Scraper by URL · X Post Scraper · Scrape Tweet by Link · Twitter Post Data · Tweet Engagement Metrics · No-API-key Twitter · Twitter Unofficial API · Tweet Data Export CSV/JSON · Scrape Tweets Without API Key · Twitter Post Engagement Metrics Scraper**

<sub>⚖️ Collects publicly available post data only. You are responsible for compliance with X's Terms and applicable laws.</sub>

</div>

### 📝 Changelog

#### 2026-06-07

- Docs: added coverage for tweet data export to CSV/JSON, scraping tweets without an API key (Twitter unofficial API), and the post engagement metrics use case.

#### 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

## `postUrls` (type: `array`):

X / Twitter post URLs or tweet ids. Examples: 'https://x.com/NASA/status/2059393717111308634' or '2059393717111308634'.

## `maxConcurrency` (type: `integer`):

How many posts to fetch in parallel.

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

Stop after saving this many posts. 0 = all.

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

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

## Actor input object example

```json
{
  "postUrls": [
    "https://x.com/nasa/status/2059393717111308634"
  ],
  "maxConcurrency": 5,
  "maxResults": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Post text

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

Likes

## `retweetCount` (type: `string`):

Retweets

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

Views

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

Post date

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

Post 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 = {
    "postUrls": [
        "https://x.com/NASA/status/2059393717111308634"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/x-post-url-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 = {
    "postUrls": ["https://x.com/NASA/status/2059393717111308634"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Tweet Scraper by URL - X (Twitter) Post Data",
        "description": "Scrape X / Twitter posts by URL or tweet ID. Bulk tweet data export (CSV/JSON), engagement metrics - Twitter unofficial API, no API key or login.",
        "version": "1.0",
        "x-build-id": "SBMPc1pkxMFZyNTfy"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/logiover~x-post-url-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-logiover-x-post-url-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-post-url-scraper/runs": {
            "post": {
                "operationId": "runs-sync-logiover-x-post-url-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-post-url-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-logiover-x-post-url-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": [
                    "postUrls"
                ],
                "properties": {
                    "postUrls": {
                        "title": "Tweet / post URLs",
                        "type": "array",
                        "description": "X / Twitter post URLs or tweet ids. Examples: 'https://x.com/NASA/status/2059393717111308634' or '2059393717111308634'.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 12,
                        "type": "integer",
                        "description": "How many posts to fetch in parallel.",
                        "default": 5
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Stop after saving this many posts. 0 = all.",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
