# Twitter Posts Scraper (`neuro-scraper/twitter-posts-scraper`) Actor

Twitter Posts Scraper SD - Twitter Posts Scraper is a social media data tool that extracts public X (Twitter) posts from profiles, post URLs and search terms: text, date, likes, retweets, replies, quotes, bookmarks, views, media and author.

- **URL**: https://apify.com/neuro-scraper/twitter-posts-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

### Twitter Posts Scraper

**Twitter Posts Scraper** collects public X (Twitter) posts from accounts, post URLs and search terms and returns each post with its full text, date, likes, reposts, replies, quotes, bookmarks, views, hashtags, links, media and author details - no X account and no API key needed.

> Also popular: the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - reels, captions, plays and authors from Facebook in one run.

Twitter Posts Scraper runs in the cloud on Apify. You give it a list of inputs, Twitter Posts Scraper collects the data and you download a clean dataset as JSON, CSV, Excel or HTML, or read it through the Apify API.

#### What does Twitter Posts Scraper do?

Twitter Posts Scraper turns X (Twitter) data into structured rows. Each row is one post, with the same fields in the same order, so the output of Twitter Posts Scraper drops straight into a spreadsheet, a database or a Python script.

- The newest posts of any public account
- Any post by URL or id, optionally with the replies shown under it
- Posts for keywords, hashtags and phrases
- Engagement numbers: likes, reposts, replies, quotes, bookmarks and views
- Media (photos, videos with MP4 links, GIFs), hashtags, mentions and links
- Filters: minimum likes / reposts / replies, media type, replies, quotes, language, date range, verified authors

#### Why use Twitter Posts Scraper?

Copying X (Twitter) data by hand is slow and error-prone. Twitter Posts Scraper does it for many inputs at once, keeps the numbers as numbers and the dates in ISO-8601 UTC, and records which input produced each row.

Twitter Posts Scraper needs no X (Twitter) account, no login and no cookies. You do not share any password with Twitter Posts Scraper, and nothing is posted or changed on X (Twitter): Twitter Posts Scraper only reads public data.

#### Who uses Twitter Posts Scraper?

- Brand monitoring of posts about a product or campaign
- Collecting the latest posts of official accounts for dashboards
- Research datasets of public posts on a topic
- Saving the replies under a viral post

### How to use Twitter Posts Scraper

1. Open Twitter Posts Scraper in Apify Console and click **Try for free**.
2. Fill in the input form (see the input table below). The prefilled example runs as it is.
3. Click **Start**. Twitter Posts Scraper logs every step, so you can follow the progress in the Log tab.
4. When Twitter Posts Scraper finishes, open the **Output** tab and export the dataset as JSON, CSV, Excel or HTML.
5. Optional: schedule Twitter Posts Scraper, call it from the Apify API or connect it to Make, Zapier, n8n or Google Sheets.

**Required:** at least one of `twitterHandles`, `startUrls` or `searchTerms`. Everything else is optional.

**What the log tells you:** a line per handle with how many posts X shows and how many were kept after filters, a line per search page ("search "artemis moon" page 1: 10 results, 6 new post(s)"), a warning for every post that could not be opened, and the final status message with rows per input.

#### Input of Twitter Posts Scraper

Give at least one of `twitterHandles`, `startUrls` or `searchTerms` - you can mix all three in one run. Every other option has a safe default. Each option below says what it does, how the Twitter Posts Scraper uses it, the allowed values, an example and how it combines with the other options.

##### `twitterHandles` - X handles

**What it does:** Accounts whose newest posts you want, one per line: NASA, @NASA or https://x.com/NASA.

**How it works:** For each handle the Actor opens the public profile and returns its newest original posts with full text, counts, media and author. X shows visitors without an account the 5 newest original posts of a profile and no further pages, so a handle gives at most 5 posts. Handles, @handles and profile links all work.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"twitterHandles": ["NASA", "SpaceX"]`

**Tip and combinations:** For more posts of one account, add its post URLs to `startUrls` or search for `from`-style phrases in `searchTerms` (e.g. the account name plus a topic).

##### `startUrls` - Post or profile URLs

**What it does:** X post URLs (https://x.com/NASA/status/2121280846183137564), post ids or profile URLs, one per line.

**How it works:** Each post URL (or bare post id) is opened and returned as one row, plus up to `maxRepliesPerPost` of the replies X shows under it. A profile URL here works like a handle.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"startUrls": ["https://x.com/NASA/status/2121280846183137564"]`

**Tip and combinations:** The best way to get specific posts or a reply thread. Filters still apply, so a strict filter can drop a post you asked for.

##### `searchTerms` - Search terms

**What it does:** Keywords, hashtags or phrases, one per line; public posts that match are returned.

**How it works:** For each term the Actor finds public posts that match it, then opens every found post for its full record - the same columns as posts from handles. Results are found by relevance, not date.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"searchTerms": ["artemis moon", "#AI"]`

**Tip and combinations:** Specific phrases work best. Use `start` / `end` to keep a date range - the filter is applied to every found post.

##### `maxTweetsPerQuery` - Max posts per handle / search term

**What it does:** The maximum number of posts returned for each handle and for each search term.

**How it works:** The limit is per input: each handle and each search term returns at most this many posts. Paging stops as soon as it is reached. A handle is also capped by the 5 posts X shows on a profile.

**Allowed values and default:** whole number from 1 to 1,000; default `20`.

**Example:** `"maxTweetsPerQuery": 50`

**Tip and combinations:** 20 x 2 terms = up to 40 rows. Filtered-out posts do not count, so a strict filter needs more `maxSearchPages` for the same number.

##### `maxRepliesPerPost` - Replies per post URL

**What it does:** For post URLs: also return the replies X shows under the post (0 = only the post).

**How it works:** For post URLs only: also return up to this many replies X shows under the post, each as its own row with `isReply`, `inReplyToId` and `inReplyToUsername` filled. 0 returns only the post.

**Allowed values and default:** whole number from 0 to 100; default `0`.

**Example:** `"maxRepliesPerPost": 20`

**Tip and combinations:** X shows the most relevant replies first and not always all of them, so compare the rows with the post's `replyCount`. Replies count towards `maxItems`.

##### `includeAuthorProfile` - Full author profile

**What it does:** Add the author's full public profile to every post (bio, location, join date, media count, banner, verification reason ...): one profile read per new author. Switch off for a faster run.

**How it works:** On: the author's full public profile (bio, location, join date, post and media counts, banner, checkmark type and reason, birthday, affiliations ...) is added to every post - one profile read per new author, reused for the rest of the run. Off: only the author basics.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeAuthorProfile": false`

**Tip and combinations:** Keep it on for lead lists and research. Turn it off for faster, cheaper runs over many different authors.

##### `maxSearchPages` - Search depth (pages per term)

**What it does:** How many result pages to look through per search term (about 10 posts each).

**How it works:** How many result pages (about 10 posts each) are looked through per search term. Paging stops earlier when the term has no more results or `maxTweetsPerQuery` is reached.

**Allowed values and default:** whole number from 1 to 20; default `5`.

**Example:** `"maxSearchPages": 10`

**Tip and combinations:** Raise it with `maxTweetsPerQuery` and when filters are strict. Only used by `searchTerms`.

##### `minLikes` - Minimum likes

**What it does:** Keeps only posts with at least this many likes.

**How it works:** Posts with fewer likes are dropped before they are saved or counted. 0 turns the filter off.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minLikes": 100`

**Tip and combinations:** Combine with `minRetweets` / `minReplies` to keep only posts that went viral.

##### `minRetweets` - Minimum retweets

**What it does:** Keeps only posts with at least this many reposts.

**How it works:** Posts with fewer reposts are dropped before they are saved or counted. 0 turns the filter off.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minRetweets": 20`

**Tip and combinations:** Reposts show reach; a value of 10-50 removes most low-reach posts.

##### `minReplies` - Minimum replies

**What it does:** Keeps only posts with at least this many replies.

**How it works:** Posts with fewer replies are dropped before they are saved or counted. 0 turns the filter off.

**Allowed values and default:** whole number 0 or more; default `0`.

**Example:** `"minReplies": 5`

**Tip and combinations:** Useful to find posts that started a discussion.

##### `mediaFilter` - Media

**What it does:** Keeps posts by the media they carry: any, with media, with images, with videos, or text only.

**How it works:** `any` keeps everything; `media` keeps posts with any photo, video or GIF; `images` keeps posts with a photo; `videos` keeps posts with a video or GIF; `none` keeps text-only posts.

**Allowed values and default:** one of `any`, `media`, `images`, `videos`, `none`; default `any`.

**Example:** `"mediaFilter": "videos"`

**Tip and combinations:** Combine `videos` with `minLikes` to collect popular video posts for a topic.

##### `replyFilter` - Replies

**What it does:** Keeps, drops or only keeps replies.

**How it works:** `include` keeps replies and normal posts; `exclude` drops replies; `only` keeps only replies.

**Allowed values and default:** one of `include`, `exclude`, `only`; default `include`.

**Example:** `"replyFilter": "exclude"`

**Tip and combinations:** Use `exclude` with search terms to keep only original posts. With `maxRepliesPerPost`, `only` returns just the replies of your post URLs.

##### `quoteFilter` - Quote posts

**What it does:** Keeps, drops or only keeps quote posts.

**How it works:** `include` keeps quote posts and normal posts; `exclude` drops quote posts; `only` keeps only quote posts.

**Allowed values and default:** one of `include`, `exclude`, `only`; default `include`.

**Example:** `"quoteFilter": "exclude"`

**Tip and combinations:** Quote posts carry the quoted post in `quoted_tweet`, so `only` is a quick way to see how people comment on something.

##### `onlyWithLinks` - Only posts with links

**What it does:** Keeps only posts that contain a link.

**How it works:** Keeps only posts that contain at least one link (`urls` not empty).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyWithLinks": true`

**Tip and combinations:** Good for collecting shared articles and product links on a topic.

##### `onlyWithHashtags` - Only posts with hashtags

**What it does:** Keeps only posts that contain a hashtag.

**How it works:** Keeps only posts that contain at least one hashtag (`hashtags` not empty).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyWithHashtags": true`

**Tip and combinations:** Combine with a hashtag in `searchTerms` to drop posts that only mention the word.

##### `onlyWithMentions` - Only posts with mentions

**What it does:** Keeps only posts that @mention an account.

**How it works:** Keeps only posts that @mention at least one account (`mentions` not empty).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyWithMentions": true`

**Tip and combinations:** Useful for finding conversations and shout-outs.

##### `onlyVerifiedAuthors` - Only verified authors

**What it does:** Keeps only posts whose author has a verified checkmark.

**How it works:** Keeps only posts whose author has a verified checkmark (`authorVerified` true).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyVerifiedAuthors": true`

**Tip and combinations:** Removes most spam from busy search terms.

##### `lang` - Language

**What it does:** Keep posts in this language only (two-letter code, e.g. en, es, ja). Empty = all.

**How it works:** Keeps only posts whose language, as X detects it, matches this two-letter code. Empty keeps every language.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"lang": "en"`

**Tip and combinations:** Short posts with only links or emojis are sometimes detected as "und" (undetermined) and are then dropped.

##### `start` - Posted on or after

**What it does:** Keeps posts published on or after this date, e.g. 2026-11-01.

**How it works:** Keeps only posts published on or after this date (UTC). Older posts are dropped before they are saved.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"start": "2026-11-01"`

**Tip and combinations:** Combine with `end` for a date range. Search results come by relevance, so a narrow range may need more `maxSearchPages`.

##### `end` - Posted on or before

**What it does:** Keeps posts published on or before this date, e.g. 2026-11-30.

**How it works:** Keeps only posts published on or before this date (UTC). Newer posts are dropped before they are saved.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"end": "2026-11-30"`

**Tip and combinations:** Leave it empty to keep everything up to now.

##### `sort` - Order of search results

**What it does:** Top keeps the relevance order of the results; Latest reads the newest found posts first.

**How it works:** With Latest the found posts of each search term are ordered by their id (ids grow with time) before they are read, so the limit keeps the newest ones.

**Allowed values and default:** one of `Top`, `Latest`; default `Top`.

**Example:** `"sort": "Latest"`

**Tip and combinations:** Combine Latest with `start` to collect only recent posts about a topic.

##### `tweetLanguage` - Language (alternative field)

**What it does:** Same as `lang`: keeps posts in this language (two-letter code).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts whose detected language differs are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"tweetLanguage": "en"`

**Tip and combinations:** Short posts may be detected as "und" and then dropped.

##### `onlyTwitterBlue` - Only checkmark authors

**What it does:** Keeps posts whose author has a checkmark (blue, gold or grey).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so it works the same as `onlyVerifiedAuthors`.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyTwitterBlue": true`

**Tip and combinations:** Combine with `minLikes` for high-reach posts.

##### `onlyImage` - Only posts with images

**What it does:** Keeps only posts that carry a photo.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a photo are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyImage": true`

**Tip and combinations:** Same as `mediaFilter` images.

##### `onlyVideo` - Only posts with video

**What it does:** Keeps only posts that carry a video or GIF.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a video or GIF are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyVideo": true`

**Tip and combinations:** Same as `mediaFilter` videos.

##### `author` - Posts by account (alternative field)

**What it does:** Same as `from`: keeps only posts by these accounts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so only posts whose author is one of these handles remain; the handles are read like `twitterHandles` too.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"author": ["NASA"]`

**Tip and combinations:** Use one of `from` and `author`, not both.

##### `mentioning` - Posts mentioning account

**What it does:** Keeps only posts that @mention one of these accounts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so a post stays only when its `mentions` contain one of these handles.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"mentioning": ["NASA"]`

**Tip and combinations:** Good for brand monitoring together with a search term of the brand name.

##### `geotaggedNear` - Near place (alternative field)

**What it does:** Same as `near`: keeps posts tagged with a matching place.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a matching place are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"geotaggedNear": "london"`

**Tip and combinations:** Use one of `near` and `geotaggedNear`.

##### `minimumFavorites` - Minimum likes (alternative field)

**What it does:** Same as `minLikes`: keeps posts with at least this many likes.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with fewer likes are dropped and not charged.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"minimumFavorites": 100`

**Tip and combinations:** Use one of `minLikes` and `minimumFavorites`.

##### `twitterContent` - Search query (alternative field)

**What it does:** One search query, the same as one line of `searchTerms`.

**How it works:** The text is searched like a search term and every found post is read from its own page; it is added to the `searchTerms` list of the run.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"twitterContent": "artemis moon"`

**Tip and combinations:** Use `searchTerms` for several queries; this field exists for inputs copied from other tools.

##### `filterVerified` - Only verified authors (operator)

**What it does:** Keeps only posts by authors with a checkmark.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts by other authors are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterVerified": true`

**Tip and combinations:** Same as `onlyVerifiedAuthors`.

##### `near` - Near place

**What it does:** Keeps only posts tagged with a place whose name contains this text, e.g. London.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a matching tagged place are dropped. Few posts carry a place, so expect few rows.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"near": "london"`

**Tip and combinations:** Combine with a broad search term.

##### `since_time` - Posted after (unix time)

**What it does:** Keeps posts published after this moment, given as unix seconds.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so older posts are dropped. Used when `start` is empty.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"since_time": 1763683200`

**Tip and combinations:** Example: 1763683200 = 2025-11-21 00:00 UTC.

##### `until_time` - Posted before (unix time)

**What it does:** Keeps posts published before this moment, given as unix seconds.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so newer posts are dropped. Used when `end` is empty.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"until_time": 1764288000`

**Tip and combinations:** Combine with `since_time` for an exact window.

##### `since_id` - Newer than post id

**What it does:** Keeps posts whose id is greater than this id (posted later).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with a smaller or equal id are dropped. Ids grow with time.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"since_id": 2121280846183137564`

**Tip and combinations:** Use the largest id of your last run to get only new posts.

##### `within_time` - Posted within the last

**What it does:** Keeps posts from the last minutes, hours or days, e.g. 30m, 12h or 3d.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts older than that period are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"within_time": "3d"`

**Tip and combinations:** Faster to type than a date for daily monitoring runs.

##### `filterNativeretweets` - Only reposts

**What it does:** Keeps only reposts (native retweets).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts that are not reposts are dropped. Profiles shown without an account list original posts only, so reposts come from post URLs.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterNativeretweets": true`

**Tip and combinations:** Usually leave it off.

##### `includeNativeretweets` - Include reposts

**What it does:** Lets reposts stay in the results.

**How it works:** Reposts are kept by default; the option exists for inputs copied from other tools. Profiles shown without an account list original posts only.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeNativeretweets": true`

**Tip and combinations:** Turn `filterNativeretweets` on to keep only reposts.

##### `filterReplies` - Only replies

**What it does:** Keeps only posts that are replies.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts that are not replies are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterReplies": true`

**Tip and combinations:** Same as `replyFilter` only.

##### `filterQuote` - Only quote posts (operator)

**What it does:** Keeps only quote posts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts that quote nothing are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterQuote": true`

**Tip and combinations:** Same as `quoteFilter` only.

##### `card_name` - Card type

**What it does:** Keeps only posts whose link card is of this type, e.g. summary_large_image, player or poll2choice_text_only.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a matching card are dropped (matched on the card name).

**Allowed values and default:** text; empty by default (option off).

**Example:** `"card_name": "summary_large_image"`

**Tip and combinations:** Use poll to collect polls.

##### `filterHasEngagement` - Only posts with engagement

**What it does:** Keeps only posts with at least one like, repost, reply or quote.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with no engagement at all are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterHasEngagement": true`

**Tip and combinations:** A quick way to drop bot noise.

##### `filterMedia` - Only posts with media

**What it does:** Keeps only posts with a photo, video or GIF.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so text-only posts are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterMedia": true`

**Tip and combinations:** Same as `mediaFilter` media.

##### `filterTwimg` - Only posts with uploaded images

**What it does:** Keeps only posts with an image uploaded to X.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without an uploaded image are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterTwimg": true`

**Tip and combinations:** Same as `onlyImage`.

##### `filterImages` - Only posts with images (operator)

**What it does:** Keeps only posts with a photo.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a photo are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterImages": true`

**Tip and combinations:** Same as `onlyImage`.

##### `filterVideos` - Only posts with videos (operator)

**What it does:** Keeps only posts with a video or GIF.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a video are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterVideos": true`

**Tip and combinations:** Same as `onlyVideo`.

##### `filterNativeVideo` - Only posts with uploaded video

**What it does:** Keeps only posts with a video uploaded to X.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a video are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterNativeVideo": true`

**Tip and combinations:** Same as `onlyVideo`.

##### `filterVine` - Only posts with short video

**What it does:** Keeps only posts with a video.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a video are dropped (Vine itself no longer exists).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterVine": true`

**Tip and combinations:** Same as `onlyVideo`.

##### `filterConsumerVideo` - Only posts with user video

**What it does:** Keeps only posts with a video.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a video are dropped (X no longer separates user and pro video).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterConsumerVideo": true`

**Tip and combinations:** Same as `onlyVideo`.

##### `filterProVideo` - Only posts with pro video

**What it does:** Keeps only posts with a video.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a video are dropped (X no longer separates user and pro video).

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterProVideo": true`

**Tip and combinations:** Same as `onlyVideo`.

##### `filterSpaces` - Only Spaces

**What it does:** Keeps only posts that share an X Space.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a Space card are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterSpaces": true`

**Tip and combinations:** Spaces are rare; expect few rows.

##### `filterLinks` - Only posts with links (operator)

**What it does:** Keeps only posts with a link.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a link are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterLinks": true`

**Tip and combinations:** Same as `onlyWithLinks`.

##### `filterMentions` - Only posts with mentions (operator)

**What it does:** Keeps only posts that mention an account.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a mention are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterMentions": true`

**Tip and combinations:** Same as `onlyWithMentions`.

##### `filterNews` - Only news links

**What it does:** Keeps only posts that share a link with a preview card (articles).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a linked article card are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterNews": true`

**Tip and combinations:** Good for collecting how a topic is covered in the press.

##### `filterSafe` - Only safe posts

**What it does:** Leaves out posts X marks as possibly sensitive.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with `possiblySensitive` true are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterSafe": true`

**Tip and combinations:** Use it for brand-safe datasets.

##### `filterHashtags` - Only posts with hashtags (operator)

**What it does:** Keeps only posts with a hashtag.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts without a hashtag are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterHashtags": true`

**Tip and combinations:** Same as `onlyWithHashtags`.

##### `from` - Posts by account

**What it does:** Keeps only posts written by these accounts (handles); the accounts' own newest posts are read too.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so a search term then returns only posts of these authors. The handles are also read like `twitterHandles`.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"from": ["NASA"]`

**Tip and combinations:** Example: search "rocket" with `from` NASA keeps NASA's posts about rockets.

##### `to` - Replies to account

**What it does:** Keeps only replies written to these accounts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so only posts whose `inReplyToUsername` is one of these handles remain.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"to": ["NASA"]`

**Tip and combinations:** Combine with a post URL and `maxRepliesPerPost` to get the replies an account received.

##### `inReplyTo` - Replies to account (alternative field)

**What it does:** Same as `to`: keeps only replies to these accounts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so a post stays only when it replies to one of these handles.

**Allowed values and default:** a list of text values, one per line in the form; empty by default.

**Example:** `"inReplyTo": ["NASA"]`

**Tip and combinations:** Use one of `to` and `inReplyTo`.

##### `minimumRetweets` - Minimum reposts (alternative field)

**What it does:** Same as `minRetweets`: keeps posts with at least this many reposts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with fewer reposts are dropped.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"minimumRetweets": 100`

**Tip and combinations:** Use one of `minRetweets` and `minimumRetweets`.

##### `minimumReplies` - Minimum replies (alternative field)

**What it does:** Same as `minReplies`: keeps posts with at least this many replies.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with fewer replies are dropped.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"minimumReplies": 100`

**Tip and combinations:** Use one of `minReplies` and `minimumReplies`.

##### `onlyQuote` - Only quote posts

**What it does:** Keeps only quote posts.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts that quote nothing are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"onlyQuote": true`

**Tip and combinations:** Same as `quoteFilter` only.

##### `sinceDate` - Posted on or after (alternative field)

**What it does:** Same as `start`: keeps posts from this date on.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so older posts are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"sinceDate": "london"`

**Tip and combinations:** Use one of `start` and `sinceDate`.

##### `max_id` - Up to post id

**What it does:** Keeps posts whose id is at most this id (posted earlier or the same).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts with a larger id are dropped.

**Allowed values and default:** whole number 0 or more; no default.

**Example:** `"max_id": 2129999999999999999`

**Tip and combinations:** Combine with `since_id` for an id window.

##### `conversation_id` - Only this conversation

**What it does:** Keeps only posts that belong to the thread with this id.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts of other threads are dropped (matched on `conversationId`).

**Allowed values and default:** text; empty by default (option off).

**Example:** `"conversation_id": "2121280846183137564"`

**Tip and combinations:** Combine with the thread's post URL and `maxRepliesPerPost`.

##### `quoted_tweet_id` - Only quotes of post id

**What it does:** Keeps only posts that quote the post with this id.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts whose `quotedId` differs are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"quoted_tweet_id": "2121280846183137564"`

**Tip and combinations:** Search the post's text with this filter to collect its quotes.

##### `quoted_user_id` - Only quotes of account

**What it does:** Keeps only posts that quote a post of this account (handle).

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts whose quoted post has another author are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"quoted_user_id": "NASA"`

**Tip and combinations:** Useful to see how people comment on an account.

##### `placeObjectId` - Place id

**What it does:** Keeps only posts tagged with the place that has this X place id.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts tagged with another place, or none, are dropped.

**Allowed values and default:** text; empty by default (option off).

**Example:** `"placeObjectId": "07d9cd6afd884001"`

**Tip and combinations:** Take the id from the `place` column of an earlier run.

##### `filterBlueVerified` - Only blue-check authors (operator)

**What it does:** Keeps only posts by authors with a checkmark.

**How it works:** Applied to every post found - from handles, post URLs and search terms - before it is saved or counted, so posts by other authors are dropped.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"filterBlueVerified": true`

**Tip and combinations:** Same as `onlyVerifiedAuthors`.

##### `includeRaw` - Include the raw post record

**What it does:** Adds the complete original post record (raw column). Off = smaller rows.

**How it works:** On (default) every post row carries the complete original post record in the raw column, for fields that have no own column. Off leaves raw empty and makes rows much smaller.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeRaw": false`

**Tip and combinations:** Turn it off for spreadsheet exports.

##### `includeOriginalTweet` - Include the original of a repost

**What it does:** For reposts, adds the original post (retweeted_tweet: id, link, text, date, author, likes).

**How it works:** For a repost, the retweeted_tweet column holds the original post (id, link, text, date, author, likes). Off leaves it empty.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeOriginalTweet": true`

**Tip and combinations:** Keep it on to analyse what was reposted.

##### `includeArticles` - Include X Articles

**What it does:** Adds the article block (title, preview) when a post is a long-form X Article.

**How it works:** When a post is a long-form X Article, the article column holds its title and preview. Off leaves it empty.

**Allowed values and default:** `true` or `false`; default `true`.

**Example:** `"includeArticles": true`

**Tip and combinations:** Only posts that are Articles have this block.

##### `fieldStyle` - Column name style

**What it does:** camelCase keeps the column names as documented; snake_case writes like_count, created_at ...

**How it works:** camelCase (default) keeps the documented column names (likeCount, createdAt). snake_case writes every top-level column as like_count, created_at ... for tools that expect that style.

**Allowed values and default:** one of `camelCase`, `snake_case`; default `camelCase`.

**Example:** `"fieldStyle": "snake_case"`

**Tip and combinations:** Use the style your database or dashboard already uses.

##### `outputPreset` - Row layout

**What it does:** Flat turns every object column into separate columns (author_userName ...) - handy for spreadsheets.

**How it works:** Nested (default) keeps objects such as author as one column. Flat turns every object column into separate columns (author_userName, author_followers ...), which suits CSV and Excel.

**Allowed values and default:** one of `nested`, `flat`; default `nested`.

**Example:** `"outputPreset": "flat"`

**Tip and combinations:** Flat + CSV export gives one clean spreadsheet row per post.

##### `embedTheme` - Embed code theme

**What it does:** Theme of the embed code in the embed column.

**How it works:** The embed column holds ready-to-paste embed code for every post. This sets its theme: light or dark (empty = the reader's default).

**Allowed values and default:** one of ``, `light`, `dark`; default ``.

**Example:** `"embedTheme": "dark"`

**Tip and combinations:** Match the theme of the page you embed on.

##### `embedHideMedia` - Embed code: hide media

**What it does:** The embed code shows the post without photos, videos and link cards.

**How it works:** The embed code shows the post without its photos, videos and link cards.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"embedHideMedia": true`

**Tip and combinations:** Useful for compact quote walls.

##### `embedHideThread` - Embed code: hide the parent post

**What it does:** For replies, the embed code shows only the reply, not the post it answers.

**How it works:** For replies, the embed code shows only the reply and not the post it answers.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"embedHideThread": true`

**Tip and combinations:** Keeps embedded replies short.

##### `embedOmitScript` - Embed code without script tag

**What it does:** Leaves the widgets script tag out of the embed code (when your page loads it once already).

**How it works:** Leaves the widgets script tag out of the embed code, for pages that load that script once already.

**Allowed values and default:** `true` or `false`; default `false`.

**Example:** `"embedOmitScript": true`

**Tip and combinations:** Add the script once per page when you embed many posts.

##### `maxItems` - Max posts in total

**What it does:** Optional cap for the whole run. 0 = no total cap.

**How it works:** A total cap over all handles, URLs and search terms together. The run stops when this many rows are saved. 0 means no total cap.

**Allowed values and default:** whole number from 0 to 1,000,000; default `0`.

**Example:** `"maxItems": 200`

**Tip and combinations:** `maxTweetsPerQuery` controls each input, `maxItems` the whole run - use it as a budget guard.

##### `proxyConfiguration` - Proxy configuration

**What it does:** Chooses the Apify Proxy group and country the Actor connects through.

**How it works:** Every request goes through the proxy you pick here. The default residential group gives each session a real household IP address; when a session meets a rate limit the Actor drops it and continues on a fresh IP, so a long run keeps going without your input.

**Allowed values and default:** an Apify proxy settings object; default `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`.

**Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`

**Tip and combinations:** Keep the default. Datacenter proxies are cheaper but are limited much faster, which shows up as fewer rows and more retries in the log. A proxy country only matters when you want results as seen from that country.

##### Ready-to-copy inputs for the Twitter Posts Scraper

Paste one of these into the JSON tab of the input form, or send it as the body of an API run:

**1. Newest posts of a few accounts** - returns the newest original posts of NASA and SpaceX with full author profiles.

```json
{
  "twitterHandles": [
    "NASA",
    "SpaceX"
  ]
}
```

**2. One post with its replies** - returns the post and up to 20 replies shown under it.

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

**3. Popular English video posts about a topic** - returns up to 30 matching posts with a video and 100+ likes from November 2026.

```json
{
  "searchTerms": [
    "artemis moon"
  ],
  "maxTweetsPerQuery": 30,
  "maxSearchPages": 10,
  "mediaFilter": "videos",
  "minLikes": 100,
  "lang": "en",
  "start": "2026-11-01",
  "end": "2026-11-30"
}
```

#### Output of Twitter Posts Scraper

One row is one public post (or reply) with its full text, all counts, media links, thread and quote information and - with `includeAuthorProfile` on - the author's full public profile. A value X does not publish for a post is `null`, never invented: many columns (poll, card, place, community ...) exist only for posts of that kind. Several columns repeat a value under the names other X tools use, so a sheet built for another tool keeps working.

| Field | Type | What it means | Example from a test run | When it can be empty |
|---|---|---|---|---|
| `type` | text | Always tweet for a post row | `"tweet"` | Filled in every row of our test run |
| `id` | text | Numeric id of the post | `"2123794778978762778"` | Filled in every row of our test run |
| `url` | text | Link to the post on x.com | `"https://x.com/esa/status/2123794778978762778"` | Filled in every row of our test run |
| `twitterUrl` | text | Link to the post on twitter.com | `"https://twitter.com/esa/status/2123794778978...` | Filled in every row of our test run |
| `text` | text | Full text of the post (long posts are returned in full) | `"BepiColombo is about to enter orbit around M...` | Filled in every row of our test run |
| `createdAt` | text | When the post was published (ISO-8601, UTC) | `"2026-11-20T15:05:08Z"` | Filled in every row of our test run |
| `lang` | text | Language of the post as X detects it (two-letter code) | `"en"` | Filled in every row of our test run |
| `likeCount` | number | Number of likes | `459` | Filled in every row of our test run |
| `retweetCount` | number | Number of reposts | `94` | Filled in every row of our test run |
| `replyCount` | number | Number of replies | `22` | Filled in every row of our test run |
| `quoteCount` | number | Number of quote posts | `8` | Filled in every row of our test run |
| `bookmarkCount` | number | Number of bookmarks | `20` | Filled in every row of our test run |
| `viewCount` | number | Number of views | `17977` | Empty on very old posts, which have no view counter (empty in 2 of 25 test rows) |
| `hashtags` | null | Hashtags in the post, without # | `null` | Empty when the post has no hashtag (empty in 25 of 25 test rows) |
| `mentions` | list | Accounts @mentioned in the post | `["esaoperations"]` | Empty when the post mentions nobody (empty in 17 of 25 test rows) |
| `urls` | list | Links in the post, expanded to their real address | `["https://x.com/i/broadcasts/2evOEzWEYBkWyn"]` | Empty when the post has no link (empty in 16 of 25 test rows) |
| `media` | list | Every photo, video or GIF: type, url, width, height, video variants | `[{"type": "photo", "url": "https://pbs.twimg....` | Empty when the post has no media (empty in 8 of 25 test rows) |
| `mediaUrls` | list | Links to every photo, video cover and GIF of the post | `["https://pbs.twimg.com/media/HXa1-v6XoAAP0Ev...` | Empty when the post has no media (empty in 8 of 25 test rows) |
| `isReply` | true/false | true when the post is a reply | `false` | Filled in every row of our test run |
| `inReplyToId` | null | Id of the post this one replies to | `null` | Empty when the post is not a reply (empty in 20 of 25 test rows) |
| `inReplyToUsername` | null | Handle of the account replied to | `null` | Empty when the post is not a reply (empty in 22 of 25 test rows) |
| `inReplyToUserId` | null | User id of the account replied to | `null` | Empty when the post is not a reply (empty in 22 of 25 test rows) |
| `conversationId` | text | Id of the first post of the thread (the post's own id when it starts the thread) | `"2123794778978762778"` | Empty when the item has no such value (empty in 2 of 25 test rows) |
| `isQuote` | true/false | true when the post quotes another post | `true` | Filled in every row of our test run |
| `isQuoteStatus` | true/false | Quote flag (same as `isQuote`) | `true` | Filled in every row of our test run |
| `quotedId` | text | Id of the quoted post | `"2123747708896751981"` | Empty when the post quotes nothing (empty in 22 of 25 test rows) |
| `isRetweet` | true/false | true when the row is a repost of another post | `false` | Filled in every row of our test run |
| `full_text` | text | Full text (same as `text`) | `"BepiColombo is about to enter orbit around M...` | Filled in every row of our test run |
| `entities` | object | Hashtags, mentions and links of the post as one object | `{"hashtags": [], "mentions": ["esaoperations"...` | Filled in every row of our test run |
| `author` | object | The author as one object: id, userName, name, followers, following, verified, picture ... | `{"id": "21436960", "userName": "esa", "name":...` | Filled in every row of our test run |
| `favorite_count` | number | Number of likes (same as `likeCount`) | `459` | Filled in every row of our test run |
| `followers_count` | number | Followers of the author | `1900467` | Filled in every row of our test run |
| `following_count` | number | Accounts the author follows | `994` | Filled in every row of our test run |
| `user_id` | text | Numeric user id of the author | `"21436960"` | Filled in every row of our test run |
| `username` | text | Handle of the author (without @) | `"esa"` | Filled in every row of our test run |
| `name` | text | Display name of the author | `"European Space Agency"` | Filled in every row of our test run |
| `tweetUrl` | text | Link to the post (same as `url`) | `"https://x.com/esa/status/2123794778978762778"` | Filled in every row of our test run |
| `imageUrl` | text | Link to the first image | `"https://pbs.twimg.com/media/HXa1-v6XoAAP0Ev....` | Empty when the post has no image (empty in 14 of 25 test rows) |
| `imageUrls` | list | Links to the images (same as `mediaUrls` for photo posts) | `["https://pbs.twimg.com/media/HXa1-v6XoAAP0Ev...` | Empty when the post has no image (empty in 14 of 25 test rows) |
| `videoUrls` | null | Direct MP4 links of the videos, best quality first | `null` | Empty when the post has no video (empty in 19 of 25 test rows) |
| `gifUrls` | null | Direct MP4 links of animated GIFs | `null` | Empty when the post has no GIF (empty in 25 of 25 test rows) |
| `extendedEntities` | object | All attached media as one object | `{"media": [{"type": "photo", "url": "https://...` | Empty when the post has no media (empty in 8 of 25 test rows) |
| `user_mentions` | list | Mentioned accounts (same as `mentions`) | `["esaoperations"]` | Empty when the post mentions nobody (empty in 17 of 25 test rows) |
| `in_reply_to_status_id` | null | Id of the replied-to post (same as `inReplyToId`) | `null` | Empty when the post is not a reply (empty in 20 of 25 test rows) |
| `quotedTweetId` | text | Id of the quoted post (same as `quotedId`) | `"2123747708896751981"` | Empty when the post quotes nothing (empty in 22 of 25 test rows) |
| `quotedTweetPermalink` | text | Link to the quoted post | `"https://x.com/esaoperations/status/212374770...` | Empty when the post quotes nothing (empty in 22 of 25 test rows) |
| `quoted_tweet` | object | The quoted post as one object (text, author, counts) | `{"id": "2123747708896751981", "url": "https:/...` | Empty when the post quotes nothing (empty in 22 of 25 test rows) |
| `retweeted_tweet` | null | The original post of a repost | `null` | Empty when the row is not a repost (profiles show original posts) (empty in 25 of 25 test rows) |
| `retweetedAt` | null | When the repost was made | `null` | Empty when the row is not a repost (empty in 25 of 25 test rows) |
| `sourceTweetId` | null | Id of the original post of a repost | `null` | Empty when the row is not a repost (empty in 25 of 25 test rows) |
| `displayTextRange` | list | Start and end character of the visible text (the rest are reply handles or media links) | `[0, 132]` | Filled in every row of our test run |
| `edit` | object | Edit information: the ids of every version of the post | `{"__typename": "EditControlInitial", "edit_tw...` | Filled in every row of our test run |
| `contentDisclosure` | object | Content disclosure labels of the post (e.g. AI-generated media) | `{"ai_generated_disclosure": {"can_edit": true...` | Empty when the post carries no disclosure block (empty in 17 of 25 test rows) |
| `aiDisclosure` | object | AI-generated media disclosure of the post | `{"can_edit": true, "has_ai_generated_media": ...` | Empty when the post carries no disclosure block (empty in 17 of 25 test rows) |
| `grokTranslatedPost` | object | Whether X offers a machine translation of the post | `{"__typename": "ApiGrokTranslateResponse", "i...` | Filled in every row of our test run |
| `possiblySensitive` | true/false | true when X marks the post as possibly sensitive | `false` | Empty when the item has no such value (empty in 6 of 25 test rows) |
| `isNoteTweet` | true/false | true for a long post (over 280 characters) | `false` | Filled in every row of our test run |
| `noteTweet` | object | The long-post block with its full text and styling | `{"is_expandable": true, "note_tweet_results":...` | Empty for normal posts of up to 280 characters (empty in 22 of 25 test rows) |
| `article` | null | X Article attached to the post: title, preview text, cover | `null` | Empty when the post is not an Article - most posts (empty in 25 of 25 test rows) |
| `card` | object | Link preview card: title, description, image, link | `{"__typename": "Card", "id": "Q2FyZDpodHRwczo...` | Empty when the post has no link preview (empty in 23 of 25 test rows) |
| `poll` | null | Poll options with vote counts and end time | `null` | Empty when the post has no poll (empty in 25 of 25 test rows) |
| `place` | null | Place attached to the post: name, country, type | `null` | Empty when the author attached no place - most posts (empty in 25 of 25 test rows) |
| `geo` | null | Coordinates attached to the post | `null` | Empty when the author shared no location - almost all posts (empty in 25 of 25 test rows) |
| `coordinates` | null | Coordinates (same as `geo`) | `null` | Empty when the author shared no location - almost all posts (empty in 25 of 25 test rows) |
| `communityId` | null | Id of the X Community the post was published in | `null` | Empty when the post is not in a Community (empty in 25 of 25 test rows) |
| `communityName` | null | Name of that Community | `null` | Empty when the post is not in a Community (empty in 25 of 25 test rows) |
| `communityNote` | null | Community Note shown under the post (text and link) | `null` | Empty when the post has no Community Note (empty in 25 of 25 test rows) |
| `hasCommunityNotes` | true/false | true when a Community Note is shown under the post | `false` | Filled in every row of our test run |
| `conversationControl` | null | Who may reply (e.g. only mentioned accounts) | `null` | Empty when everyone may reply (empty in 25 of 25 test rows) |
| `isConversationControlled` | true/false | true when replies are limited | `false` | Filled in every row of our test run |
| `isLimitedReply` | true/false | true when the reply setting excludes most accounts | `false` | Filled in every row of our test run |
| `exclusiveContent` | null | Subscriber-only (Super Follows) marker | `null` | Empty for normal public posts (empty in 25 of 25 test rows) |
| `jetfuelAttachment` | null | Interactive attachment of the post | `null` | Empty for posts without such an attachment - almost all (empty in 25 of 25 test rows) |
| `grokShareAttachment` | null | A shared Grok conversation attached to the post | `null` | Empty when no Grok conversation is attached (empty in 25 of 25 test rows) |
| `postCta` | null | Call-to-action button of the post | `null` | Empty when the post has no button - almost all organic posts (empty in 25 of 25 test rows) |
| `sportsContext` | null | Sports event the post is linked to | `null` | Empty when the post is not linked to an event (empty in 25 of 25 test rows) |
| `tombstone` | null | Notice shown instead of a removed or withheld post | `null` | Empty for normal visible posts (empty in 25 of 25 test rows) |
| `textHighlights` | null | Highlighted parts of the text | `null` | Empty when X highlights nothing (empty in 25 of 25 test rows) |
| `unmentionedUserIds` | null | Users who removed themselves from the conversation | `null` | Empty when nobody did (empty in 25 of 25 test rows) |
| `previousCounts` | null | Like / repost / reply counts of an earlier version of an edited post | `null` | Empty when the post was never edited (empty in 25 of 25 test rows) |
| `paidPartnership` | null | true when the post is marked as a paid partnership | `null` | Empty on normal posts (empty in 25 of 25 test rows) |
| `source` | null | The app the post was sent from | `null` | X no longer publishes the app name for posts - empty on every row we measured (empty in 25 of 25 test rows) |
| `engagementMode` | null | Engagement setting of the post | `null` | Empty on normal posts - X publishes it only for special formats (empty in 25 of 25 test rows) |
| `replyCoverage` | null | X's reply-coverage marker of the post (set on posts whose replies X limits or summarises) | `null` | Empty on normal posts - X sets it only on special posts (empty in 25 of 25 test rows) |
| `description` | text | Description text of the link preview card of the post | `"NASA's SpaceX 35th Commercial Resupply Servi...` | Empty when the post has no link preview card (empty in 23 of 25 test rows) |
| `authorDescription` | text | Bio of the author | `"Elevating the future of Europe through space...` | Empty when `includeAuthorProfile` is off or the author has no bio (empty in 1 of 25 test rows) |
| `authorProfileBio` | text | Bio of the author (same as `authorDescription`) | `"Elevating the future of Europe through space...` | Empty when `includeAuthorProfile` is off or the author has no bio (empty in 1 of 25 test rows) |
| `authorLocation` | text | Location written in the author's profile | `"Europe"` | Empty when `includeAuthorProfile` is off or the author wrote none (empty in 2 of 25 test rows) |
| `authorFollowing` | number | Accounts the author follows | `994` | Empty when `includeAuthorProfile` is off |
| `authorStatusesCount` | number | Total number of posts of the author | `64081` | Empty when `includeAuthorProfile` is off |
| `authorMediaCount` | number | Number of photos and videos the author has posted | `14631` | Empty when `includeAuthorProfile` is off |
| `authorCreatedAt` | text | When the author's account was created | `"2009-02-20T21:38:25Z"` | Empty when `includeAuthorProfile` is off |
| `authorIsBlueVerified` | true/false | true when the author has a paid blue checkmark | `true` | Empty when `includeAuthorProfile` is off |
| `authorIsVerified` | null | Legacy verified flag | `null` | X retired the legacy badge, so it is empty on every row - use `authorVerified` / `authorVerifiedType` (empty in 25 of 25 test rows) |
| `authorVerifiedType` | text | Kind of checkmark: Business (gold), Government (grey) or empty for blue | `"Government"` | Empty when `includeAuthorProfile` is off or the author has a plain blue checkmark (empty in 5 of 25 test rows) |
| `authorVerificationReason` | text | Text X shows on the checkmark of the author | `"This account is verified because it is a gov...` | Empty when `includeAuthorProfile` is off or X shows no reason (empty in 3 of 25 test rows) |
| `authorProtected` | true/false | true when the author's posts are protected | `false` | Empty when `includeAuthorProfile` is off |
| `authorProfilePicture` | text | Large profile picture of the author | `"https://pbs.twimg.com/profile_images/2123416...` | Empty when `includeAuthorProfile` is off |
| `authorCoverPicture` | text | Header (banner) image of the author | `"https://pbs.twimg.com/profile_banners/214369...` | Empty when `includeAuthorProfile` is off or the author has no header image |
| `authorProfileBannerUrl` | text | Header image (same as `authorCoverPicture`) | `"https://pbs.twimg.com/profile_banners/214369...` | Empty when `includeAuthorProfile` is off or the author has no header image |
| `authorUrl` | text | Link to the author's profile | `"https://x.com/esa"` | Empty when `includeAuthorProfile` is off |
| `authorBirthdate` | object | Birthday the author made public (day, month, year) | `{"day": 1, "month": 10, "visibility": "Public...` | Empty when `includeAuthorProfile` is off or the author keeps it private (empty in 19 of 25 test rows) |
| `authorBusinessAccountAffiliatesCount` | number | Number of affiliated accounts of a business account | `64` | Empty when `includeAuthorProfile` is off (empty in 10 of 25 test rows) |
| `authorAffiliatesHighlightedLabel` | object | Affiliation badge of the author (e.g. the organisation they belong to) | `{"label": {"description": "NASA"}}` | Empty when `includeAuthorProfile` is off or the author has no affiliation badge (empty in 20 of 25 test rows) |
| `authorCreatorSubscriptionsCount` | number | Number of creators the author subscribes to | `0` | Empty when `includeAuthorProfile` is off |
| `authorSubscribersCount` | number | Number of paid subscribers of the author | `0` | Empty when `includeAuthorProfile` is off |
| `authorGrokTranslatedBio` | object | Whether X offers a translation of the author's bio | `{"is_available": false}` | Empty when `includeAuthorProfile` is off |
| `authorHasHiddenSubscriptionsOnProfile` | true/false | true when the author hides their subscriptions | `false` | Empty when `includeAuthorProfile` is off |
| `authorHighlightsInfo` | object | Highlighted posts of the author: whether they can highlight and how many | `{"can_highlight_tweets": true, "highlighted_t...` | Empty when `includeAuthorProfile` is off |
| `authorIsProfileTranslatable` | true/false | true when X can translate the profile | `false` | Empty when `includeAuthorProfile` is off |
| `authorParodyCommentaryFanLabel` | text | Parody, commentary or fan account label ("None" when none) | `"None"` | Empty when `includeAuthorProfile` is off |
| `authorPossiblySensitive` | true/false | true when X marks the author's profile as possibly sensitive | `false` | Empty when `includeAuthorProfile` is off |
| `authorProfileDescriptionLanguage` | text | Language of the author's bio | `"en"` | Empty when `includeAuthorProfile` is off (empty in 1 of 25 test rows) |
| `authorProfileImageShape` | text | Circle for people, Square for organisations | `"Square"` | Empty when `includeAuthorProfile` is off |
| `authorProfileInterstitialType` | null | Warning shown before the author's profile | `null` | Empty when `includeAuthorProfile` is off or X shows no warning - nearly all accounts (empty in 25 of 25 test rows) |
| `authorSuperFollowEligible` | true/false | true when the author offers subscriptions | `false` | Empty when `includeAuthorProfile` is off |
| `authorWithheldScope` | null | Countries where the author is withheld | `null` | Empty when `includeAuthorProfile` is off or the author is not withheld anywhere - nearly all accounts (empty in 25 of 25 test rows) |
| `authorDefaultProfileImage` | true/false | true when the author still has the default egg / avatar picture | `false` | Empty when `includeAuthorProfile` is off |
| `authorProfessional` | object | Professional account info: type and category | `{"category": [{"name": "Science & Technology"...` | Empty when `includeAuthorProfile` is off or the author has no professional profile (empty in 14 of 25 test rows) |
| `authorIdentityVerification` | object | ID verification status of the author | `{"label": {"badge": {"url": "https://pbs.twim...` | Empty when `includeAuthorProfile` is off or the author did not verify their ID (empty in 20 of 25 test rows) |
| `embed` | text | Ready-to-paste embed code for the post | `"<blockquote class=\"twitter-tweet\" data-the...` | Filled in every row of our test run |
| `raw` | object | The complete post record as X publishes it, for anything not split into its own column | `{"__isTweetResult": "Tweet", "__typename": "T...` | Filled in every row of our test run |
| `status` | text | ok for a readable post | `"ok"` | Filled in every row of our test run |
| `resultType` | text | Always tweet for a post row | `"tweet"` | Filled in every row of our test run |
| `sourceTarget` | text | The handle, post URL or search term from your input that produced this row | `"esa"` | Filled in every row of our test run |
| `scrapedTimestamp` | text | When the row was read (ISO-8601, UTC) | `"2026-11-21T19:10:13Z"` | Filled in every row of our test run |
| `authorId` | text | Numeric user id of the author (same as `user_id`) | `"21436960"` | Filled in every row of our test run |
| `authorUsername` | text | Handle of the author | `"esa"` | Filled in every row of our test run |
| `authorName` | text | Display name of the author | `"European Space Agency"` | Filled in every row of our test run |
| `authorFollowers` | number | Followers of the author (same as `followers_count`) | `1900467` | Filled in every row of our test run |
| `authorVerified` | true/false | true when the author has a verified (blue, gold or grey) checkmark | `true` | Filled in every row of our test run |
| `authorProfileImageUrl` | text | Small profile picture of the author | `"https://pbs.twimg.com/profile_images/2123416...` | Filled in every row of our test run |
| `inputTarget` | text | The input that produced this row (same as `sourceTarget`) | `"esa"` | Filled in every row of our test run |
| `searchTerm` | null | The search term that found the post | `null` | Empty for rows from handles or post URLs (empty in 22 of 25 test rows) |
| `scrapedAt` | text | When the row was read (same as `scrapedTimestamp`) | `"2026-11-21T19:10:13Z"` | Filled in every row of our test run |
| `inReplyToTweetId` | null | Id of the post this one replies to (same as `inReplyToId`) | `null` | Empty when the post is not a reply (empty in 20 of 25 test rows) |
| `joinedAt` | text | When the author's account was created (same as `authorCreatedAt`) | `"2009-02-20T21:38:25Z"` | Empty when `includeAuthorProfile` is off |
| `mediaType` | text | photo, video, gif, or text for a post without media | `"text"` | Filled in every row |
| `retweetedTweetId` | null | Id of the original post of a repost | `null` | Empty when the row is not a repost (empty in 25 of 25 test rows) |
| `retweetedUsername` | null | Author of the original post of a repost | `null` | Empty when the row is not a repost (empty in 25 of 25 test rows) |
| `sourceUsername` | text | The handle the row was collected for (the input handle, else the post author) | `"esa"` | Filled in every row |
| `authorUnavailable` | true/false | true when the author of a removed or withheld post is not shown | `false` | Filled in every row |
| `authorUnavailableReason` | null | The notice X shows for an unavailable author | `null` | Empty for normal posts - nearly all (empty in 25 of 25 test rows) |
| `unavailableAuthorId` | null | User id of an author X does not show | `null` | Empty for normal posts - nearly all (empty in 25 of 25 test rows) |
| `isTranslatable` | true/false | true when X offers a machine translation of the post | `false` | Filled in every row |
| `translation` | object | Translation availability block of the post as X sends it | `{"__typename": "ApiGrokTranslateResponse", "i...` | Filled in every row |

A real row from a Twitter Posts Scraper test run (long values shortened):

```json
{
  "id": "2123794778978762778",
  "url": "https://x.com/esa/status/2123794778978762778",
  "text": "BepiColombo is about to enter orbit around Mercury!\n\nFollow @esaoperations for live updates from Mission Control at E...",
  "createdAt": "2026-11-20T15:05:08Z",
  "lang": "en",
  "likeCount": 459,
  "retweetCount": 94,
  "replyCount": 22,
  "quoteCount": 8,
  "bookmarkCount": 20,
  "viewCount": 17977,
  "mediaUrls": [],
  "isReply": false,
  "isQuote": true,
  "authorUsername": "esa",
  "authorName": "European Space Agency",
  "authorFollowers": 1900467,
  "authorVerified": true,
  "authorLocation": "Europe",
  "inputTarget": "esa"
}
```

#### Which columns of Twitter Posts Scraper can be empty

Measured on our latest test run: these columns were empty on more than 10% of the rows. Each line says why - in every case the value is not shown for those items (or belongs to another row type or option), so the Twitter Posts Scraper writes null instead of guessing.

- `hashtags`: Empty when the post has no hashtag (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `mentions`: Empty when the post mentions nobody (empty in 17 of 25 test rows) (empty in 17 of 25 rows of our test run).
- `urls`: Empty when the post has no link (empty in 16 of 25 test rows) (empty in 16 of 25 rows of our test run).
- `media`: Empty when the post has no media (empty in 8 of 25 test rows) (empty in 8 of 25 rows of our test run).
- `mediaUrls`: Empty when the post has no media (empty in 8 of 25 test rows) (empty in 8 of 25 rows of our test run).
- `inReplyToId`: Empty when the post is not a reply (empty in 20 of 25 test rows) (empty in 20 of 25 rows of our test run).
- `inReplyToUsername`: Empty when the post is not a reply (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `inReplyToUserId`: Empty when the post is not a reply (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `quotedId`: Empty when the post quotes nothing (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `imageUrl`: Empty when the post has no image (empty in 14 of 25 test rows) (empty in 14 of 25 rows of our test run).
- `imageUrls`: Empty when the post has no image (empty in 14 of 25 test rows) (empty in 14 of 25 rows of our test run).
- `videoUrls`: Empty when the post has no video (empty in 19 of 25 test rows) (empty in 19 of 25 rows of our test run).
- `gifUrls`: Empty when the post has no GIF (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `extendedEntities`: Empty when the post has no media (empty in 8 of 25 test rows) (empty in 8 of 25 rows of our test run).
- `user_mentions`: Empty when the post mentions nobody (empty in 17 of 25 test rows) (empty in 17 of 25 rows of our test run).
- `in_reply_to_status_id`: Empty when the post is not a reply (empty in 20 of 25 test rows) (empty in 20 of 25 rows of our test run).
- `quotedTweetId`: Empty when the post quotes nothing (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `quotedTweetPermalink`: Empty when the post quotes nothing (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `quoted_tweet`: Empty when the post quotes nothing (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `retweeted_tweet`: Empty when the row is not a repost (profiles show original posts) (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `retweetedAt`: Empty when the row is not a repost (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `sourceTweetId`: Empty when the row is not a repost (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `contentDisclosure`: Empty when the post carries no disclosure block (empty in 17 of 25 test rows) (empty in 17 of 25 rows of our test run).
- `aiDisclosure`: Empty when the post carries no disclosure block (empty in 17 of 25 test rows) (empty in 17 of 25 rows of our test run).
- `possiblySensitive`: Empty when the item has no such value (empty in 6 of 25 test rows) (empty in 6 of 25 rows of our test run).
- `noteTweet`: Empty for normal posts of up to 280 characters (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `article`: Empty when the post is not an Article - most posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `card`: Empty when the post has no link preview (empty in 23 of 25 test rows) (empty in 23 of 25 rows of our test run).
- `poll`: Empty when the post has no poll (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `place`: Empty when the author attached no place - most posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `geo`: Empty when the author shared no location - almost all posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `coordinates`: Empty when the author shared no location - almost all posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `communityId`: Empty when the post is not in a Community (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `communityName`: Empty when the post is not in a Community (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `communityNote`: Empty when the post has no Community Note (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `conversationControl`: Empty when everyone may reply (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `exclusiveContent`: Empty for normal public posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `jetfuelAttachment`: Empty for posts without such an attachment - almost all (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `grokShareAttachment`: Empty when no Grok conversation is attached (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `postCta`: Empty when the post has no button - almost all organic posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `sportsContext`: Empty when the post is not linked to an event (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `tombstone`: Empty for normal visible posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `textHighlights`: Empty when X highlights nothing (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `unmentionedUserIds`: Empty when nobody did (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `previousCounts`: Empty when the post was never edited (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `paidPartnership`: Empty on normal posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `source`: X no longer publishes the app name for posts - empty on every row we measured (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `engagementMode`: Empty on normal posts - X publishes it only for special formats (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `replyCoverage`: Empty on normal posts - X sets it only on special posts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `description`: Empty when the post has no link preview card (empty in 23 of 25 test rows) (empty in 23 of 25 rows of our test run).
- `authorIsVerified`: X retired the legacy badge, so it is empty on every row - use `authorVerified` / `authorVerifiedType` (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `authorVerifiedType`: Empty when `includeAuthorProfile` is off or the author has a plain blue checkmark (empty in 5 of 25 test rows) (empty in 5 of 25 rows of our test run).
- `authorVerificationReason`: Empty when `includeAuthorProfile` is off or X shows no reason (empty in 3 of 25 test rows) (empty in 3 of 25 rows of our test run).
- `authorBirthdate`: Empty when `includeAuthorProfile` is off or the author keeps it private (empty in 19 of 25 test rows) (empty in 19 of 25 rows of our test run).
- `authorBusinessAccountAffiliatesCount`: Empty when `includeAuthorProfile` is off (empty in 10 of 25 test rows) (empty in 10 of 25 rows of our test run).
- `authorAffiliatesHighlightedLabel`: Empty when `includeAuthorProfile` is off or the author has no affiliation badge (empty in 20 of 25 test rows) (empty in 20 of 25 rows of our test run).
- `authorProfileInterstitialType`: Empty when `includeAuthorProfile` is off or X shows no warning - nearly all accounts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `authorWithheldScope`: Empty when `includeAuthorProfile` is off or the author is not withheld anywhere - nearly all accounts (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `authorProfessional`: Empty when `includeAuthorProfile` is off or the author has no professional profile (empty in 14 of 25 test rows) (empty in 14 of 25 rows of our test run).
- `authorIdentityVerification`: Empty when `includeAuthorProfile` is off or the author did not verify their ID (empty in 20 of 25 test rows) (empty in 20 of 25 rows of our test run).
- `searchTerm`: Empty for rows from handles or post URLs (empty in 22 of 25 test rows) (empty in 22 of 25 rows of our test run).
- `inReplyToTweetId`: Empty when the post is not a reply (empty in 20 of 25 test rows) (empty in 20 of 25 rows of our test run).
- `retweetedTweetId`: Empty when the row is not a repost (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `retweetedUsername`: Empty when the row is not a repost (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `authorUnavailableReason`: Empty for normal posts - nearly all (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).
- `unavailableAuthorId`: Empty for normal posts - nearly all (empty in 25 of 25 test rows) (empty in 25 of 25 rows of our test run).

#### Features of Twitter Posts Scraper compared with the top 5 Apify Store Actors

The table lists every feature the five most-used Store Actors of this type offer, how many of them offer it, and whether Twitter Posts Scraper has it. "No" always comes with the measured reason.

| Feature | In top 5 | Twitter Posts Scraper |
|---|---|---|
| Posts of a profile | 5 of 5 | Yes - the newest posts X shows to logged-out visitors (5 per account) |
| Post by URL / id | 4 of 5 | Yes |
| Search terms | 4 of 5 | Yes |
| Likes, reposts, replies, quotes, bookmarks, views | 5 of 5 | Yes |
| Media with video files | 3 of 5 | Yes |
| Replies of a post (conversation) | 2 of 5 | Yes - the replies X shows under the post |
| min_faves / min_retweets / min_replies | 4 of 5 | Yes (minLikes / minRetweets / minReplies) |
| filter:media / images / videos / links / replies / quote / hashtags / mentions / blue_verified | 2 of 5 | Yes |
| lang, since, until | 2 of 5 | Yes (lang, start, end) |
| Complete account history (thousands of posts) | 4 of 5 | No - logged-out X shows only the 5 newest posts of an account |
| geocode / near / within, list, card_name, spaces, news | 2-3 of 5 | No - these need X's own search, which requires a login |

#### Limits of Twitter Posts Scraper

Twitter Posts Scraper reports what it can measure and nothing else. These limits were measured on live runs:

- Logged-out visitors see the 5 newest original posts of an account, so a handle gives at most 5 posts; for more, add search terms (e.g. from:NASA topics) or post URLs.
- Search terms find posts that are publicly indexed; very fresh posts can take a while to appear.
- View counts are missing on very old posts (X did not count views before 2022).

### Twitter Posts Scraper with the Apify API, Python and integrations

You can start Twitter Posts Scraper from your own code. The Apify API runs Twitter Posts Scraper with your input and returns the dataset when the run ends. This Python example uses the official `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/twitter-posts-scraper").call(run_input={"twitterHandles": ["NASA"], "searchTerms": ["artemis moon"], "maxTweetsPerQuery": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

The same run from Node.js with the `apify-client` package:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/twitter-posts-scraper').call({"twitterHandles": ["NASA", "SpaceX"]});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Or with one HTTP call that runs the Twitter Posts Scraper and returns the rows when it finishes:

```bash
curl -X POST 'https://api.apify.com/v2/acts/neuro-scraper~twitter-posts-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"twitterHandles": ["NASA", "SpaceX"]}'
```

The same run works from JavaScript, from a webhook, or with no code at all: Twitter Posts Scraper plugs into Make, Zapier, n8n, Google Sheets, Slack and Airbyte through the Apify integrations.

A schedule turns Twitter Posts Scraper into a monitor. Run Twitter Posts Scraper every day with the same input, export each dataset, and compare the numbers over time in a spreadsheet or a BI tool.

#### Export formats of Twitter Posts Scraper

| Format | Best for |
|---|---|
| JSON | developers and APIs reading Twitter Posts Scraper rows |
| CSV | spreadsheets and databases |
| Excel | business users and reports |
| HTML table | a quick look in the browser |
| RSS / XML | feeds and older tools |

### Pricing of Twitter Posts Scraper

Twitter Posts Scraper uses pay-per-event pricing: you pay a small fee per post written to the dataset, plus a tiny start fee per run. There is no monthly rental. The limit inputs and the run's maximum cost setting keep every run of Twitter Posts Scraper inside your budget.

**Cost example for the Twitter Posts Scraper:** one result is one post written to the dataset. The price is **$1.49 per 1,000 results** on the Apify Free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business. So 100 posts cost about $0.15 and 1,000 posts cost $1.49 on the Free plan. Example: 4 search terms x `maxTweetsPerQuery` 25 = up to 100 posts = about $0.15.

**How to cap the cost:** Lower `maxTweetsPerQuery` (per input) or set `maxItems` (whole run); filters also lower the cost because dropped posts are not charged. You can also set **Maximum cost per run** in the run options; the run stops cleanly when that budget is reached and keeps every row it already saved.

**Limits we measured:** X shows visitors without an account the 5 newest original posts of a profile and no further pages, so a handle gives at most 5 posts; search terms and post URLs have no such cap. View counts, bookmarks and the full author profile were filled on every post of our test run.

Apify's free plan includes monthly credit, enough to try Twitter Posts Scraper on real inputs. Free-plan runs of Twitter Posts Scraper are capped at 30 results per run.

### Tips for better results with Twitter Posts Scraper

- Start Twitter Posts Scraper with the prefilled input to see the output format, then add your own inputs.
- Keep the default residential proxy: X (Twitter) limits anonymous visitors per IP address, and Twitter Posts Scraper switches to a fresh IP when it meets a limit.
- Use the limit fields of Twitter Posts Scraper to control cost; the limits apply per input.
- Read the run log: Twitter Posts Scraper names every input that failed and why, and the final status message sums it up.

### Related Actors you can use with Twitter Posts Scraper

Twitter Posts Scraper is part of a family of social media scrapers. Combine Twitter Posts Scraper with these Actors:

- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)
- [Facebook Posts Scraper](https://apify.com/neuro-scraper/facebook-posts-scarper)
- [Instagram Posts Scraper](https://apify.com/neuro-scraper/instagram-posts-scraper)
- [Instagram Scraper](https://apify.com/neuro-scraper/instagram-video-scraper)
- [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper)
- [YouTube Comments Scraper](https://apify.com/neuro-scraper/youtube-comments-scraper)
- [Facebook Comments Scraper](https://apify.com/neuro-scraper/facebook-comments-scraper)
- [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper)
- [YouTube Video Details Scraper](https://apify.com/neuro-scraper/youtube-video-details-scraper)
- [Facebook Hashtag Scraper](https://apify.com/neuro-scraper/facebook-hashtag-scraper)
- [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-video-scraper-advanced)
- [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper)

### Is it legal to use Twitter Posts Scraper?

Twitter Posts Scraper reads only public data that any visitor can see without logging in. It does not access private accounts, messages or anything behind a login.

Results of Twitter Posts Scraper can still contain personal data. Personal data is protected by GDPR in the European Union and by similar laws elsewhere. Do not scrape personal data unless you have a legitimate reason, and ask a lawyer if you are unsure. Respect the X (Twitter) terms that apply to you.

### Reviews and feedback for Twitter Posts Scraper

Did Twitter Posts Scraper save you time? A short review on the Apify Store helps other users find Twitter Posts Scraper. If something does not work, open an issue on the Issues tab of Twitter Posts Scraper and include the run link: every report is read and answered.

### FAQ about Twitter Posts Scraper

#### How many posts does the Twitter Posts Scraper return per account?

The Twitter Posts Scraper returns the newest posts X shows to logged-out visitors - 5 per account. For more posts of one account, add search terms or post URLs.

#### Does the Twitter Posts Scraper need an X account or API key?

No. The Twitter Posts Scraper reads public posts without any login, cookie or API key.

#### Can the Twitter Posts Scraper read replies?

Yes: give a post URL and set maxRepliesPerPost. The Twitter Posts Scraper returns the post and the replies X shows under it.

#### Does the Twitter Posts Scraper return the same post twice?

No. Every post id is written once per run, even when it is found through a handle, a post URL and a search term at the same time. The inputTarget column shows the first input that found it.

#### Why do search results of the Twitter Posts Scraper include older posts?

Search terms find public posts by relevance, not only the newest ones. Use the start and end dates of the Twitter Posts Scraper to keep a time window.

#### Can I filter by engagement in the Twitter Posts Scraper?

Yes. minLikes, minRetweets and minReplies keep only posts above your thresholds, and the media, reply, quote, language and date filters narrow it further.

#### Do I need a X (Twitter) account to use Twitter Posts Scraper?

No. Twitter Posts Scraper works without a X (Twitter) account, login or cookies. It reads only public data.

#### How fast is Twitter Posts Scraper?

Twitter Posts Scraper paces its requests like a careful visitor and uses residential IPs. Small runs finish in about a minute; the run log shows the progress of Twitter Posts Scraper for every input.

#### Can I schedule Twitter Posts Scraper?

Yes. In Apify Console, create a task with your input for Twitter Posts Scraper and add a schedule (hourly, daily, weekly). Each scheduled run of Twitter Posts Scraper produces a new dataset.

#### Which export formats does Twitter Posts Scraper support?

Every dataset of Twitter Posts Scraper can be downloaded as JSON, CSV, Excel, HTML, XML or RSS, or read through the Apify API.

#### Why is a field of Twitter Posts Scraper empty?

Twitter Posts Scraper writes `null` when X (Twitter) does not publish that value for the post. Twitter Posts Scraper never fills a field with a guess.

#### Why did I get only 5 posts for a handle?

X shows visitors without an account the 5 newest original posts of a profile and no next page. The Twitter Posts Scraper never logs in, so for more posts of an account use `searchTerms` (topic words of that account) or `startUrls`.

#### Can I mix handles, URLs and search terms in one run?

Yes. All three work together; the limit applies to each handle and each search term, and `inputTarget` says which input produced a row.

#### How do I get only new posts?

Schedule the Twitter Posts Scraper with `start` set to the last run date, or compare `id` with your previous dataset - post ids are unique and grow over time.

#### Why are poll, card or place empty?

Those columns belong to posts that have a poll, a link preview or a tagged place. A normal text or photo post has none, so the Twitter Posts Scraper writes null.

#### How do I report a problem with Twitter Posts Scraper?

Open the Issues tab of Twitter Posts Scraper on the Apify Store, describe what you expected and paste the run link. Problems with Twitter Posts Scraper are usually fixed within days.

# Actor input Schema

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

Accounts whose newest posts you want, one per line: NASA, @NASA or https://x.com/NASA.

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

X post URLs (https://x.com/NASA/status/2121280846183137564), post ids or profile URLs, one per line.

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

Keywords, hashtags or phrases, one per line (e.g. artemis moon, #AI). Public posts that match are found and read one by one.

## `maxTweetsPerQuery` (type: `integer`):

Limit per handle and per search term (per input: 20 x 2 terms = up to 40 rows). Logged-out X shows the 5 newest original posts of a profile - a handle gives at most those.

## `maxRepliesPerPost` (type: `integer`):

For post URLs: also return the replies X shows under the post (0 = only the post).

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

Add the author's full public profile to every post (bio, location, join date, media count, banner, verification reason ...): one profile read per new author. Switch off for a faster run.

## `maxSearchPages` (type: `integer`):

How many result pages to look through per search term (about 10 posts each).

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

Keep posts with at least this many likes (min_faves). 0 = off.

## `minRetweets` (type: `integer`):

Keep posts with at least this many reposts (min_retweets). 0 = off.

## `minReplies` (type: `integer`):

Keep posts with at least this many replies (min_replies). 0 = off.

## `mediaFilter` (type: `string`):

Filter posts by attached media (filter:media / filter:images / filter:videos).

## `replyFilter` (type: `string`):

Keep, drop or only keep replies (filter:replies).

## `quoteFilter` (type: `string`):

Keep, drop or only keep quote posts (filter:quote).

## `onlyWithLinks` (type: `boolean`):

filter:links

## `onlyWithHashtags` (type: `boolean`):

filter:hashtags

## `onlyWithMentions` (type: `boolean`):

filter:mentions

## `onlyVerifiedAuthors` (type: `boolean`):

filter:blue_verified

## `lang` (type: `string`):

Keep posts in this language only (two-letter code, e.g. en, es, ja). Empty = all.

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

Keep posts from this date (since), e.g. 2026-11-01.

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

Keep posts up to this date (until).

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

Top keeps the relevance order of the results; Latest reads the newest found posts first.

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

Same as `lang`: keeps posts in this language (two-letter code).

## `onlyTwitterBlue` (type: `boolean`):

Keeps posts whose author has a checkmark (blue, gold or grey).

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

Keeps only posts that carry a photo.

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

Keeps only posts that carry a video or GIF.

## `author` (type: `array`):

Same as `from`: keeps only posts by these accounts.

## `mentioning` (type: `array`):

Keeps only posts that @mention one of these accounts.

## `geotaggedNear` (type: `string`):

Same as `near`: keeps posts tagged with a matching place.

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

Same as `minLikes`: keeps posts with at least this many likes.

## `twitterContent` (type: `string`):

One search query, the same as one line of `searchTerms`.

## `filterVerified` (type: `boolean`):

Keeps only posts by authors with a checkmark.

## `near` (type: `string`):

Keeps only posts tagged with a place whose name contains this text, e.g. London.

## `since_time` (type: `integer`):

Keeps posts published after this moment, given as unix seconds.

## `until_time` (type: `integer`):

Keeps posts published before this moment, given as unix seconds.

## `since_id` (type: `integer`):

Keeps posts whose id is greater than this id (posted later).

## `within_time` (type: `string`):

Keeps posts from the last minutes, hours or days, e.g. 30m, 12h or 3d.

## `filterNativeretweets` (type: `boolean`):

Keeps only reposts (native retweets).

## `includeNativeretweets` (type: `boolean`):

Lets reposts stay in the results.

## `filterReplies` (type: `boolean`):

Keeps only posts that are replies.

## `filterQuote` (type: `boolean`):

Keeps only quote posts.

## `card_name` (type: `string`):

Keeps only posts whose link card is of this type, e.g. summary_large_image, player or poll2choice_text_only.

## `filterHasEngagement` (type: `boolean`):

Keeps only posts with at least one like, repost, reply or quote.

## `filterMedia` (type: `boolean`):

Keeps only posts with a photo, video or GIF.

## `filterTwimg` (type: `boolean`):

Keeps only posts with an image uploaded to X.

## `filterImages` (type: `boolean`):

Keeps only posts with a photo.

## `filterVideos` (type: `boolean`):

Keeps only posts with a video or GIF.

## `filterNativeVideo` (type: `boolean`):

Keeps only posts with a video uploaded to X.

## `filterVine` (type: `boolean`):

Keeps only posts with a video.

## `filterConsumerVideo` (type: `boolean`):

Keeps only posts with a video.

## `filterProVideo` (type: `boolean`):

Keeps only posts with a video.

## `filterSpaces` (type: `boolean`):

Keeps only posts that share an X Space.

## `filterLinks` (type: `boolean`):

Keeps only posts with a link.

## `filterMentions` (type: `boolean`):

Keeps only posts that mention an account.

## `filterNews` (type: `boolean`):

Keeps only posts that share a link with a preview card (articles).

## `filterSafe` (type: `boolean`):

Leaves out posts X marks as possibly sensitive.

## `filterHashtags` (type: `boolean`):

Keeps only posts with a hashtag.

## `from` (type: `array`):

Keeps only posts written by these accounts (handles); the accounts' own newest posts are read too.

## `to` (type: `array`):

Keeps only replies written to these accounts.

## `inReplyTo` (type: `array`):

Same as `to`: keeps only replies to these accounts.

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

Same as `minRetweets`: keeps posts with at least this many reposts.

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

Same as `minReplies`: keeps posts with at least this many replies.

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

Keeps only quote posts.

## `sinceDate` (type: `string`):

Same as `start`: keeps posts from this date on.

## `max_id` (type: `integer`):

Keeps posts whose id is at most this id (posted earlier or the same).

## `conversation_id` (type: `string`):

Keeps only posts that belong to the thread with this id.

## `quoted_tweet_id` (type: `string`):

Keeps only posts that quote the post with this id.

## `quoted_user_id` (type: `string`):

Keeps only posts that quote a post of this account (handle).

## `placeObjectId` (type: `string`):

Keeps only posts tagged with the place that has this X place id.

## `filterBlueVerified` (type: `boolean`):

Keeps only posts by authors with a checkmark.

## `includeRaw` (type: `boolean`):

Adds the complete original post record (raw column). Off = smaller rows.

## `includeOriginalTweet` (type: `boolean`):

For reposts, adds the original post (retweeted_tweet: id, link, text, date, author, likes).

## `includeArticles` (type: `boolean`):

Adds the article block (title, preview) when a post is a long-form X Article.

## `fieldStyle` (type: `string`):

camelCase keeps the column names as documented; snake_case writes like_count, created_at ...

## `outputPreset` (type: `string`):

Flat turns every object column into separate columns (author_userName ...) - handy for spreadsheets.

## `embedTheme` (type: `string`):

Theme of the embed code in the embed column.

## `embedHideMedia` (type: `boolean`):

The embed code shows the post without photos, videos and link cards.

## `embedHideThread` (type: `boolean`):

For replies, the embed code shows only the reply, not the post it answers.

## `embedOmitScript` (type: `boolean`):

Leaves the widgets script tag out of the embed code (when your page loads it once already).

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

Optional cap for the whole run. 0 = no total cap.

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

Residential proxies are recommended.

## Actor input object example

```json
{
  "twitterHandles": [
    "NASA"
  ],
  "maxTweetsPerQuery": 20,
  "maxRepliesPerPost": 0,
  "includeAuthorProfile": true,
  "maxSearchPages": 5,
  "minLikes": 0,
  "minRetweets": 0,
  "minReplies": 0,
  "mediaFilter": "any",
  "replyFilter": "include",
  "quoteFilter": "include",
  "onlyWithLinks": false,
  "onlyWithHashtags": false,
  "onlyWithMentions": false,
  "onlyVerifiedAuthors": false,
  "sort": "Top",
  "onlyTwitterBlue": false,
  "onlyImage": false,
  "onlyVideo": false,
  "filterVerified": false,
  "filterNativeretweets": false,
  "includeNativeretweets": true,
  "filterReplies": false,
  "filterQuote": false,
  "filterHasEngagement": false,
  "filterMedia": false,
  "filterTwimg": false,
  "filterImages": false,
  "filterVideos": false,
  "filterNativeVideo": false,
  "filterVine": false,
  "filterConsumerVideo": false,
  "filterProVideo": false,
  "filterSpaces": false,
  "filterLinks": false,
  "filterMentions": false,
  "filterNews": false,
  "filterSafe": false,
  "filterHashtags": false,
  "onlyQuote": false,
  "filterBlueVerified": false,
  "includeRaw": true,
  "includeOriginalTweet": true,
  "includeArticles": true,
  "fieldStyle": "camelCase",
  "outputPreset": "nested",
  "embedTheme": "",
  "embedHideMedia": false,
  "embedHideThread": false,
  "embedOmitScript": false,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per result, in the run's default dataset.

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

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/twitter-posts-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 = {
    "twitterHandles": ["NASA"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/twitter-posts-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/Mzene5NdYplc1wqnr/builds/DD9dVANNiCena6kky/openapi.json
