# Single Tweet Scraper — Tweet Data by URL or ID, No Login (`nick.cheng/single-tweet-scraper`) Actor

Look up single tweets by URL or tweet ID and get full tweet data — text, likes, retweets, replies, views, bookmarks, media, hashtags, plus the author's profile. Tweet lookup without login, cookies or API key; long-form posts are not truncated. Charged only for tweets actually returned.

- **URL**: https://apify.com/nick.cheng/single-tweet-scraper.md
- **Developed by:** [Nicholas Cheng](https://apify.com/nick.cheng) (community)
- **Categories:** Social media, Developer tools, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Single Tweet Scraper

**Give it tweet links or tweet IDs, get one full record per tweet — with the author's profile embedded.** No login, no cookies, no API key. Paste `https://x.com/NASA/status/2090487779268407625`, a `twitter.com/…/status/…` link, or the bare numeric ID.

**You are charged only for tweets that actually came back.** A deleted, protected, or withheld tweet produces an explanatory row and costs nothing.

| | |
|---|---|
| **Input** | Tweet URLs or numeric tweet IDs |
| **Output** | One row per tweet: text, all engagement counters, media, links, hashtags, mentions, author profile |
| **Price** | **$0.005 per tweet — the same on every Apify plan** |
| **Timelines** | **Not fetched.** This Actor is the single-tweet mode of the [X (Twitter) Profile & Tweets Scraper](https://apify.com/nick.cheng/x-twitter-profile-tweets-scraper); use that one to pull an account's recent tweets |

***

### What you get

Real output for the NASA tweet above:

```json
{
  "itemType": "tweet",
  "lookedUp": true,
  "type": "tweet",
  "id": "2090487779268407625",
  "url": "https://x.com/NASA/status/2090487779268407625",
  "text": "Paint with all the colors of the (stellar) wind 🎨 …",
  "isLongform": false,
  "lang": "en",
  "createdAt": "2026-08-20T16:05:03.000Z",
  "replyCount": 214, "retweetCount": 1032, "quoteCount": 61,
  "likeCount": 6940, "bookmarkCount": 312, "viewCount": 1661487,
  "isRetweet": false, "isQuote": false, "isReply": false,
  "hashtags": [], "cashtags": [], "mentions": [],
  "urls": ["https://science.nasa.gov/…"],
  "media": [{ "type": "photo", "url": "https://pbs.twimg.com/media/….jpg", "altText": "…" }],
  "authorUserName": "NASA",
  "author": { "userId": "11348282", "userName": "NASA", "followers": 92359333, "verifiedType": "Government", "…": "…" }
}
```

- **Full text.** Long-form posts are returned whole, not cut at 280 characters (`isLongform: true`).
- **All six counters**: replies, reposts, quotes, likes, bookmarks, views.
- **Lineage** for reposts and quote tweets: `retweetedTweetId`, `quotedTweetId`, `quotedText`.
- **Author profile** embedded (40+ fields including `verifiedType`, `verifiedSince`, `createdAt`). Turn it off with `includeAuthorProfile: false` for a slimmer row.

***

### Input

```json
{
  "tweetUrls": [
    "https://x.com/NASA/status/2090487779268407625",
    "https://twitter.com/NASA/status/2092744659667673582",
    "2093063226351136958"
  ]
}
```

| Option | Default | Notes |
|---|---|---|
| `tweetUrls` | — | `x.com` or `twitter.com` status links (including `/i/web/status/…`), or bare numeric IDs. De-duplicated |
| `includeAuthorProfile` | `true` | Embed the author's full profile in each row |
| `maxItems` | `0` | Hard cap on rows for the run |

***

### Pricing

**$0.005 per tweet, on every Apify plan** — Free, Bronze, Silver, Gold, Platinum, Diamond. Check the Pricing tab: all six columns are identical. The price a listing advertises in its title is not always the price a free-plan run pays; here it is.

One request, one record, one charge — the same price as an account lookup, because it is the same amount of work.

#### What you are not charged for

| | What happens here |
|---|---|
| **Tweets that are gone** | Deleted, protected, withheld, or mistyped IDs produce one row marked `chargedForThis: false`. Nothing is billed. |
| **Empty or placeholder rows** | If the tweet did not come back, no tweet row is written. |
| **The free plan** | Same code path, same fields. No demo mode, no row cap, no nulls in place of data. |

***

### What this Actor cannot do

- **No reply threads, likers, or quote-tweet lists** for a tweet. X does not expose those to logged-out clients, and this Actor deliberately does not use logged-in accounts to get around that.
- **No keyword or hashtag search.** Same restriction.
- **No timelines.** To pull an account's recent tweets — with engagement filters and incremental runs — use the [X (Twitter) Profile & Tweets Scraper](https://apify.com/nick.cheng/x-twitter-profile-tweets-scraper).

***

### How it stays working

X rotates the internal query identifiers its own web app uses. This Actor reads them from X's live frontend at runtime and caches them for six hours; if a call is rejected it re-reads them and retries once. No login is used anywhere, which is why it is not exposed to the account-ban failures that take login-based scrapers offline.

***

### Integrating

```bash
curl -X POST "https://api.apify.com/v2/acts/nick.cheng~single-tweet-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
  -H 'Content-Type: application/json' \
  -d '{"tweetUrls":["https://x.com/NASA/status/2090487779268407625"]}'
```

Official clients exist for JavaScript and Python, and results export as JSON, CSV, or Excel.

# Actor input Schema

## `tweetUrls` (type: `array`):

Individual tweets to look up: links like https://x.com/nasa/status/1234567890 or bare numeric tweet IDs. Each one is fetched on its own and returned with its author's profile embedded — no timeline is walked. Charged $0.005 per tweet returned; deleted, protected or withheld tweets cost nothing.

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

Hard cap across the whole run, counting every profile and tweet pushed. 0 means no cap. Use it to bound spend on large input lists.

## `includeAuthorProfile` (type: `boolean`):

Attach the full author record to every tweet. Turn off for a slimmer dataset when you already store profiles separately.

## Actor input object example

```json
{
  "tweetUrls": [
    "https://x.com/NASA/status/2090487779268407625",
    "https://x.com/NASA/status/2092744659667673582"
  ],
  "maxItems": 0,
  "includeAuthorProfile": true
}
```

# Actor output Schema

## `tweets` (type: `string`):

One row per tweet, with full text (long-form posts are not truncated), engagement counters, media, mentions, hashtags and expanded links.

## `runSummary` (type: `string`):

What was scraped, what could not be scraped and why, and exactly how many billable events were charged.

# 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 = {
    "tweetUrls": [
        "https://x.com/NASA/status/2090487779268407625",
        "https://x.com/NASA/status/2092744659667673582"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nick.cheng/single-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 = { "tweetUrls": [
        "https://x.com/NASA/status/2090487779268407625",
        "https://x.com/NASA/status/2092744659667673582",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nick.cheng/single-tweet-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "tweetUrls": [
    "https://x.com/NASA/status/2090487779268407625",
    "https://x.com/NASA/status/2092744659667673582"
  ]
}' |
apify call nick.cheng/single-tweet-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nick.cheng/single-tweet-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ntblCu8l3AxyJsnz0/builds/TE3NigLrcRKnnVmb0/openapi.json
