# X (Twitter) Profile Scraper | No Login | Only-New Posts Monitor (`solidrows/x-profile-scraper`) Actor

Get the latest public posts of any X (Twitter) accounts without login, cookies or API keys: text, likes, replies, reposts, quotes, media and links. Filters run before you pay; monitoring mode returns only new posts. Never a silent empty run.

- **URL**: https://apify.com/solidrows/x-profile-scraper.md
- **Developed by:** [SolidRows](https://apify.com/solidrows) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 post 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?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

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

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

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

# README

## X (Twitter) Profile Scraper: latest posts without login, only-new monitoring

Get the latest public posts of any X (Twitter) accounts: full text, likes, replies, reposts, quotes, media, links, hashtags and mentions, plus a profile row with followers and bio. No login, no cookies, no API key. Run it on a schedule in monitoring mode and receive only the posts that appeared since the last run.

### Why this scraper

| | This Actor | Typical X scrapers |
|---|---|---|
| Login or cookies | **not needed** | often your own account cookies, at the risk of a ban |
| Monitoring | **only new posts**, you never pay twice for a post | every run returns and charges the same posts again |
| Filters | applied **before** you pay (likes, age, words, reposts, replies) | you pay for everything and filter yourself |
| Empty runs | account not found or blocked gives a free error row; a run with no readable account **fails with a clear message** | "succeeded" with an empty dataset |
| Profile data | free row per account: followers, following, posts, bio, website | separate paid Actor |

**Honest limits.** X shows visitors without login only the latest posts of an account: usually 20, up to 100 for some accounts. This Actor reads exactly that. It does not search X by keyword, does not read replies under a post and does not go back through years of history. If you need the full archive of an account, this is not the right tool. If you need to **watch accounts and get every new post**, it is.

### What you can do with it

- **Brand and competitor monitoring**: watch competitor, partner or media accounts and get each new post in a spreadsheet, Slack or your database.
- **News and alerts**: follow official accounts (companies, agencies, exchanges) and react to announcements within minutes.
- **Content research**: see what the accounts in your niche post and which posts get the most engagement.
- **AI and automation**: feed fresh posts into an LLM pipeline, an n8n or Make scenario, or a RAG index.

### Input

| Field | Type | Description |
|---|---|---|
| `handles` | array | Usernames, @handles or profile links (`nasa`, `@nasa`, `https://x.com/nasa`) |
| `maxPostsPerProfile` | integer | Latest posts to save per account, 0 = all that X shows (20 to 100) |
| `includeProfileInfo` | boolean | Add a free profile row per account |
| `includeReposts` | boolean | Include reposts the account made |
| `includeReplies` | boolean | Include the account's replies |
| `minLikes` | integer | Skip posts with fewer likes |
| `newerThanDays` | integer | Skip posts older than N days |
| `includeWords` / `excludeWords` | array | Keep or skip posts by words in the text |
| `onlyNewPosts` | boolean | Monitoring mode: only posts not delivered before |
| `monitorName` | string | Optional name of the monitoring memory |
| `maxItems` | integer | Stop after this many posts in total |

```json
{
    "handles": ["nasa", "@OpenAI", "https://x.com/BBCBreaking"],
    "includeReposts": false,
    "onlyNewPosts": true
}
```

### Output

One row per post (`type: "post"`), one free row per account (`type: "profile"`), and free rows with `type: "error"` when an account could not be read.

```json
{
    "type": "post",
    "id": "2124903027370774900",
    "url": "https://x.com/NASA/status/2124903027370774900",
    "text": "We're on our way to explore the mysteries of Europa, an ocean world that may have what life needs. https://plus.nasa.gov/video/the-europa-concept/",
    "createdAt": "2026-11-23T16:28:55.000Z",
    "lang": "en",
    "likeCount": 2043,
    "replyCount": 107,
    "repostCount": 315,
    "quoteCount": 44,
    "engagement": 2509,
    "isRepost": false,
    "isReply": false,
    "isQuote": false,
    "authorUsername": "NASA",
    "authorName": "NASA",
    "authorFollowers": 92134995,
    "authorVerified": true,
    "profileUsername": "nasa",
    "hashtags": [],
    "mentions": [],
    "links": ["https://plus.nasa.gov/video/the-europa-concept/"],
    "media": [{ "type": "video", "url": "https://video.twimg.com/...mp4", "previewUrl": "https://pbs.twimg.com/media/HX0sChTWkAAO3-x.png", "width": 720, "height": 405, "durationSec": 87.4 }],
    "mediaCount": 1,
    "videoUrl": "https://video.twimg.com/...mp4",
    "scrapedAt": "2026-11-23T20:40:00.000Z"
}
```

A repost is returned as the original post (its text, author and counts) with `isRepost: true`; `profileUsername` always tells you whose timeline it came from.

### Pricing

Pay per event, no monthly fee.

| Event | Price | When |
|---|---|---|
| `post` | **$1.00 per 1,000 posts** | every post saved after your filters |
| profile rows, error rows | free | |

In monitoring mode a scheduled run that finds nothing new costs only the Actor start (a fraction of a cent).

### How it works and limitations

- The Actor reads the public timeline X serves to any visitor of an embedded profile. No login, no cookies, no private API keys.
- X limits these pages per address, so the Actor retries from fresh proxy addresses, with pauses, until the page loads. Measured speed: 30 accounts in about 3 minutes, 200 accounts in about 35 minutes (about 6 accounts per minute on long lists). For hourly monitoring keep a list to about 300 accounts per run.
- X decides how many posts it shows: 20 for most accounts, up to 100 for some. View counts and bookmarks are not shown to visitors, so they are not in the output.
- Protected, suspended and non-existent accounts give a free error row.
- For monitoring very active accounts (more than 20 posts between runs), schedule runs more often so that no post falls out of the visible window.

### Feedback and support

Did this Actor save you time? A [rating on its page](https://apify.com/solidrows/x-profile-scraper/reviews) helps other users find it. Something wrong or missing? [Open an issue](https://apify.com/solidrows/x-profile-scraper/issues): we answer within 48 hours and fix reported problems first.

### FAQ

**Do I need an X account or API key?** No. The Actor reads only what X shows to visitors without login.

**Can it search X by keyword or hashtag?** No. X does not show search results without login. Use the word filters to keep only posts on your topic from the accounts you follow.

**How do I get only new posts?** Turn on `onlyNewPosts` and add a schedule. The Actor remembers delivered posts in the key-value store `x-profile-scraper-state` in your account.

**Why did I get 20 posts and not more?** That is how many X shows for that account without login.

**Is it legal?** The Actor collects only public posts that X shows to everyone. You are responsible for how you use the data; do not use it to collect private information about individuals.

# Actor input Schema

## `handles` (type: `array`):

Usernames, @handles or profile links (x.com/nasa, twitter.com/nasa). One per line.

## `maxPostsPerProfile` (type: `integer`):

How many of the latest posts to save per account. X shows 20 to 100 posts without login; 0 means all it shows.

## `includeProfileInfo` (type: `boolean`):

Adds one free row per account with followers, following, post count, bio, location, website and verification.

## `includeReposts` (type: `boolean`):

Reposts (retweets) the account made of other people's posts.

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

Posts that are replies to other posts.

## `minLikes` (type: `integer`):

Skip posts with fewer likes. 0 turns the filter off.

## `newerThanDays` (type: `integer`):

Skip posts older than this many days. 0 turns the filter off.

## `includeWords` (type: `array`):

Keep only posts whose text contains at least one of these words or phrases (case-insensitive). Empty means no filter.

## `excludeWords` (type: `array`):

Skip posts whose text contains any of these words or phrases (case-insensitive).

## `onlyNewPosts` (type: `boolean`):

Remembers the posts already delivered and returns only posts that appeared since the previous run. Use it with a schedule: you never pay twice for the same post.

## `monitorName` (type: `string`):

Optional name of the memory used by monitoring mode. Runs with the same name share one memory. Empty: the memory is tied to the list of accounts.

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

Stop after this many posts across all accounts. 0 means no limit.

## Actor input object example

```json
{
  "handles": [
    "nasa"
  ],
  "maxPostsPerProfile": 0,
  "includeProfileInfo": true,
  "includeReposts": true,
  "includeReplies": true,
  "minLikes": 0,
  "newerThanDays": 0,
  "includeWords": [],
  "excludeWords": [],
  "onlyNewPosts": false,
  "monitorName": "",
  "maxItems": 0
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "handles": [
        "nasa"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("solidrows/x-profile-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 = { "handles": ["nasa"] }

# Run the Actor and wait for it to finish
run = client.actor("solidrows/x-profile-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 '{
  "handles": [
    "nasa"
  ]
}' |
apify call solidrows/x-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solidrows/x-profile-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/MsDSiqhZDXHuCLIgA/builds/u5uvIUBwFyVbi9j9G/openapi.json
