X Advanced Search Scraper: Public Posts, No Login
Pricing
from $0.24 / 1,000 post delivereds
X Advanced Search Scraper: Public Posts, No Login
Search public X (Twitter) posts by keyword, phrase, hashtag, account, language, date and engagement. Every filter is verified on the post. No login or cookies.
Pricing
from $0.24 / 1,000 post delivereds
Rating
0.0
(0)
Developer
Automation Lab
Maintained by CommunityActor stats
0
Bookmarked
5
Total users
1
Monthly active users
17 days ago
Last modified
Categories
Features
Share
Search public X (Twitter) posts by keyword, exact phrase, hashtag, cashtag, account, language, date and engagement, then export matching posts with full engagement counts and author details. You don't need an X account, cookies or an API key.
Every filter is checked against X's own data for each post, so a row in your dataset really meets your criteria. You pay a small start fee per run plus each delivered post, and scanned posts that don't match aren't charged.
What does X Advanced Search Scraper do?
You give it searches written like X's advanced search, for example "climate change" policy lang:en min_faves:10, or fill in the filter fields. For each search the Actor:
- finds candidate posts in a public web search index, working through date windows so older posts are reached too;
- for
from:searches, also reads that account's latest and highlighted public posts directly from X; - loads each candidate from X's public post data;
- checks every filter against that data and drops anything that doesn't match;
- saves the matching posts, each one once per run.
How is this different from X's own search?
This Actor doesn't run X's search box. X only serves its native search to logged-in accounts, and this Actor doesn't log in. It finds posts through a public search index instead. Here's what that means for you:
| This Actor | X's own search, logged in | |
|---|---|---|
| Account or cookies | None | Required |
| Filter accuracy | Every returned post is verified against X's data | Decided by X |
| Coverage | Posts the index has picked up, mostly original posts with some reach | Everything X has |
| Very new posts | Often a few hours or more behind | Immediate |
| Latest and Top order | Sorted from the matches this run found | X's own ranking |
| Complete result lists | No: treat results as a strong sample | Closer to complete |
Choose this Actor for monitoring, research and sampling where no login and verified filters matter. If you need every post on a topic, or the very latest posts within minutes, it isn't the right tool.
Who is it for?
- Brand and PR teams tracking mentions of a company, product or campaign with engagement thresholds.
- Market and investment researchers following a cashtag or topic over a chosen date range.
- Academic and policy researchers building dated, language-filtered samples of public discussion.
- Content teams finding the most-liked posts on a topic in a given month.
- Data and AI engineers feeding clean, structured public posts into pipelines without managing X accounts.
Why use this X search scraper?
- No X account at risk. There are no logins, cookies or tokens to supply, renew or lose.
- Verified filters. Word, date, language and engagement filters are enforced on X's own data, not assumed from a search result.
- Reach into the past. Date ranges are split into smaller windows automatically, so a year-long search reaches more than the first page of results.
- Rich rows. Up to 40 fields: full long-post text, likes, reposts, replies, quotes, views, bookmarks, direct image and MP4 links, and author statistics.
- Clear failures. Operators that can't be served, such as
near:or-lang:, stop the run with a clear message before any charge instead of being silently ignored. Each run ends by saying how many posts it delivered and why it stopped.
What X post data can I extract?
| Group | Fields |
|---|---|
| Post | postId, postUrl, text, createdAt, language, possiblySensitive |
| Engagement | likeCount, repostCount, replyCount, quoteCount, viewCount, bookmarkCount |
| Thread context | isReply, isQuote, inReplyToUsername, inReplyToPostId, conversationId, quotedPostId |
| Entities | hashtags, cashtags, mentions, urls |
| Media | mediaTypes, imageUrls, videoUrls |
| Author | authorUsername, authorName, authorId, authorVerified, authorFollowers, authorFollowing, authorPostCount, authorBio, authorLocation, authorCreatedAt, authorProfileImage |
| Run context | searchQuery, discoveredVia, dataSource, scrapedAt |
A count is null when the source didn't publish it, and 0 only when it's a real zero. Reposts aren't returned as separate rows.
How much does it cost to search X posts?
This Actor uses pay-per-event pricing: one start fee per run, plus each delivered post. Scanned posts that don't match your filters aren't charged, but a run that finds no matching posts still pays the start fee.
| Event | FREE and BRONZE | SILVER | GOLD, PLATINUM and DIAMOND |
|---|---|---|---|
| Run start (one-time) | $0.003 | $0.003 | $0.003 |
| Each delivered post | $0.0003 | $0.00027 | $0.00024 |
Examples at the BRONZE price:
| Job | Posts | Estimated cost |
|---|---|---|
| Quick check of one topic | 25 | about $0.011 |
| Daily brand tracker | 100 | about $0.033 |
| Monthly research sample | 1,000 | about $0.30 |
Set a spending limit on the run if you want a firm ceiling: the Actor stops cleanly when the limit is reached. Apify's free plan credit can cover small tests. Platform usage is included in these prices.
How to scrape X advanced search results
- Open the Actor and go to the Input tab.
- Type one or more searches in Search terms, or use the filter fields below it.
- Set Maximum posts per search.
- Click Start and wait for the run to finish.
- Download the results as JSON, CSV, Excel or HTML, or read them through the API.
Input parameters
Search terms and filter fields can be combined: each search term is its own search, and the filter fields narrow all of them. A post must meet both, so bitcoin OR ethereum with anyWords of policy and regulation needs a word from each group. With no search term, the filter fields form one search. If the two sides can't both hold, such as lang:en with language set to de, or from: with fromUsers, the run stops with a clear error.
Text filters read the post body, the author's handle and name, and expanded links. So a search for climate change can return a post by an author named "Climate Change Weekly" even when the body is about something else. Check text and authorName if you need body-only matches.
| Parameter | What it does |
|---|---|
searchTerms | Searches written in X syntax, one per line. Each has its own limit. |
searchUrls | https://x.com/search?q=... links. Only the q value is used. |
allWords, exactPhrases, anyWords, excludeWords | Text filters over the post body, author handle and name, and expanded links. Whole-word matching, not case or accent sensitive. |
hashtags, cashtags | Every listed tag must be on the post. |
fromUsers, toUsers, mentioning | Written by any of these accounts, replying to any of them, or mentioning all of them. |
language | X language code, such as en or pt. |
since, until | UTC dates. until is exclusive, as on X. |
minLikes, minReposts, minReplies, minViews | Engagement minimums. |
mediaType | Any post, any media, photos, videos or external links. |
replies | Include, exclude or only replies. |
includeQuotes, verifiedOnly | Drop quote posts, or keep verified authors only. |
sortBy | latest, top (most liked) or relevance (the index's order). |
maxItems | Posts to deliver per search. |
maxPostsToScan | Most candidates to read per search. Automatic by default. A search still stops early when too few scanned posts match. |
Supported search operators
word, "exact phrase", -excluded, a OR b, #hashtag, $cashtag, @mention, from:, to:, lang:, since:, until:, min_faves:, min_retweets:, min_replies:, url:, filter:media, filter:images, filter:videos, filter:links, filter:replies, -filter:replies, -filter:quote, filter:verified.
OR joins single words, phrases or tags, or accounts in from: or to:. Separate OR groups must all hold.
A repeated date or engagement filter keeps the stricter value, so min_faves:100 min_faves:1 means at least 100 likes.
These stop the run with a clear error before any charge:
near:,within:,geocode:,list:,conversation_id:and similar operators;- negated operators other than
-filter:, such as-from:,-lang:,-since:,-min_faves:and-url:; ORbetween other operators or around a group in parentheses, and excluding a whole group;- repeated filters that can't both hold:
lang:en lang:es,filter:images filter:videos,filter:replies -filter:replies, andfrom:a from:bwithoutOR.
Example input
{"searchTerms": ["\"climate change\" policy lang:en min_faves:10"],"since": "2026-01-01","until": "2026-11-01","replies": "exclude","sortBy": "top","maxItems": 100}
Output example
A real row from this Actor:
{"postId": "2105655784541741361","postUrl": "https://x.com/robbertleusink/status/2105655784541741361","text": "My bees only made ~2.5 jars this year\n\nLast year the same hives were 70-80% full\n\nThis isn't due to climate change\nMy bees aren't dying of heat\n\nFarmers cut the clover while it's still in bloom\n\nThe city council mow the roadsides down to bare earth, on schedule, then plant a few weeds somewhere else and call it 'biodiversity'\n\nThe 'extinction' of bees is not climate change, but government policy","createdAt": "2026-10-01T13:47:14.000Z","language": "en","likeCount": 3030,"repostCount": 661,"replyCount": 67,"quoteCount": 21,"viewCount": 78267,"bookmarkCount": 136,"isReply": false,"isQuote": false,"inReplyToUsername": null,"inReplyToPostId": null,"conversationId": "2105655784541741361","quotedPostId": null,"hashtags": [],"cashtags": [],"mentions": [],"urls": [],"mediaTypes": ["photo"],"imageUrls": ["https://pbs.twimg.com/media/HTjKumAbYAAQPex.jpg","https://pbs.twimg.com/media/HTjKvjEa8AEag8H.jpg","https://pbs.twimg.com/media/HTjKwl3aAAARjxj.jpg","https://pbs.twimg.com/media/HTjKxmBbEAAZudJ.jpg"],"videoUrls": [],"possiblySensitive": false,"authorUsername": "robbertleusink","authorName": "Robbert Leusink 🇳🇱","authorId": "1425831592698605582","authorVerified": true,"authorFollowers": 11955,"authorFollowing": 977,"authorPostCount": 16893,"authorBio": "A Dutchman watching Europe throw away its inheritance, and teaching families how to bring it home.","authorLocation": "Start here →","authorCreatedAt": "2021-08-12T14:48:50.000Z","authorProfileImage": "https://pbs.twimg.com/profile_images/2030375208968687616/T5QKpbyi_normal.jpg","searchQuery": "\"climate change\" policy lang:en min_faves:10","discoveredVia": "search_index","dataSource": "x_graphql","scrapedAt": "2026-11-05T07:42:56.059Z"}
The dataset has three table views: Posts, Authors, and Media and links.
Tips and limits
- Add a date range for depth. Date windows reach many more posts than an undated search, especially for popular topics.
from:finds the most. The Actor reads the account's latest posts directly, in addition to the index. The early stop for rare matches applies here too, so several accounts with a rare word can stop before the last accounts are read. Give each account its own search line to reach them all.- Hashtags and very narrow filters return less. The index often treats
#AIlike the word "AI", so many candidates are scanned and dropped. A search also stops early when few scanned posts match or the first matches take too long to find, because you only pay for matches, and a higher scan limit doesn't change that. Very rare filters such asmin_faves:5000deliver what the first few hundred candidates hold. Widen the filters or split the date range into separate runs to reach more. - Replies are thinly covered. The index holds far fewer replies than original posts.
- Whole-word matching is literal.
etfdoesn't matchETFs. Useetf OR etfsfor both. - Many narrow searches in one run can skip the last ones. If earlier searches match too few scanned posts, the rest are skipped. The status message counts them, and the
RUN_SUMMARYrecord names them. Run them on their own. - Results vary between runs. The index changes, so two runs of one search won't return identical lists.
- Deleted or restricted posts are skipped and never charged.
- Don't expect the limit to be reached every time. The run's final status message says how many posts were delivered. For one search it also says why it stopped, for example "got 13 of 25 (the search index returned no more posts for this search)". For several searches, the
RUN_SUMMARYrecord in the run's key-value store and the log give every search's status, posts saved, posts scanned and reason.
Integrations
- Google Sheets or Excel: schedule a daily search and export new rows for a brand-mention tracker.
- Slack or email alerts: use an Apify webhook on run success to post the top-liked posts of the day to a channel.
- Make, Zapier or n8n: start a search from a workflow and route matching posts to a CRM or ticket queue.
- Data warehouses and AI pipelines: load the dataset through the API for sentiment analysis, classification or retrieval.
Using the API
Replace YOUR_APIFY_TOKEN with your token from Apify Console.
cURL
curl -X POST "https://api.apify.com/v2/acts/automation-lab~x-advanced-public-post-search-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"searchTerms": ["bitcoin etf lang:en"], "maxItems": 50}'
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('automation-lab/x-advanced-public-post-search-scraper').call({searchTerms: ['bitcoin etf lang:en'],maxItems: 50,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
from apify_client import ApifyClientclient = ApifyClient('YOUR_APIFY_TOKEN')run = client.actor('automation-lab/x-advanced-public-post-search-scraper').call(run_input={'searchTerms': ['bitcoin etf lang:en'],'maxItems': 50,})for item in client.dataset(run['defaultDatasetId']).iterate_items():print(item['postUrl'], item['likeCount'])
Use with AI agents via MCP
Connect this Actor to an MCP client with the Actor-specific endpoint. For Claude Code:
claude mcp add --transport http apify \"https://mcp.apify.com?tools=automation-lab/x-advanced-public-post-search-scraper"
For Claude Desktop, Cursor, VS Code and other desktop or editor clients, add this to the client's MCP configuration:
{"mcpServers": {"apify": {"type": "http","url": "https://mcp.apify.com?tools=automation-lab/x-advanced-public-post-search-scraper"}}}
Example prompts:
- "Find 50 English posts about bitcoin ETFs from last month with at least 100 likes."
- "Which posts from @nasa about Artemis got the most likes this year?"
Selecting this Actor also adds get-actor-run, get-dataset-items, get-key-value-store-record and abort-actor-run. A good agent workflow is:
- Start once. Keep the run ID and dataset ID from
call-actor. It waits 45 seconds at most, so the run may still be going. - Follow the same run. Poll
get-actor-runwith backoff, for example 2, 4 and 8 seconds, up to a deadline you choose such as 120 seconds. Set the client's request timeout above the server wait. If the client times out, check the known run instead of restarting it. At the deadline, report it as pending with its run ID. If the run fails, say so; any rows it saved are partial, not a full result. - Read bounded results. Use
get-dataset-itemswith explicitlimit,offsetandfields, for example pages of 20 rows, stopping at 100 rows or 64 KiB of serialized UTF-8 result text across all pages, whichever comes first. - Protect the model's context. Process pages in the host before they reach the model, and enforce the byte limit even when one row or page is oversized: omit or summarize it and say so. If your client can't intercept oversized responses, don't treat the limit as a guarantee or request an unbounded result.
- Report what's missing. When you stop early, give the rows returned, the continuation offset and that the result is partial. Keep full exports in the dataset or a downstream system, outside model context.
These numbers are example client choices, not Apify limits. They limit what the model reads, not what the Actor collects.
Is it legal to scrape X posts?
This Actor reads publicly available posts and doesn't log in or access private accounts, direct messages or protected posts. Even so, public posts can contain personal data, and rules such as the GDPR and CCPA can apply to how you store and use it. X's terms may also restrict some uses. Use the data for a legitimate purpose, keep only what you need, and ask a lawyer if you're unsure. This Actor is not affiliated with or endorsed by X Corp.
The Actor uses no AI. It stores only your input, the matching posts and a run log, kept under your normal Apify storage retention settings. Your search words go to public search indexes (Brave Search and DuckDuckGo) through Apify Proxy, with no account details attached. If a run hits an error, sanitized error diagnostics, with secrets and URL queries removed, are sent to our private GlitchTip error tracker and kept for 30 days.
FAQ
Do I need an X account or cookies?
No. The Actor reads only public data and has no login field.
Why did I get fewer posts than my limit?
The index had no more matching posts within the scan limit, or too few scanned posts matched your filters. The final status message gives the reason, or the RUN_SUMMARY record in the run's key-value store when the run had several searches. Widen the date range or relax the filters. Raising maxPostsToScan helps only when a good share of scanned posts match.
Are these all the posts matching my search?
No. They're the matching posts the public search index has picked up, plus an account's own recent and highlighted posts for from: searches. For complete coverage you'd need X's own search through a logged-in account or the paid X API.
Why did a run fail with an operator error?
Operators such as near: need X's logged-in search, and negated operators such as -lang: aren't supported. The Actor stops before any charge rather than returning results that ignore your filter. Remove the operator and run again.
Why are some counts null?
If X's main post data can't be read for a post, the Actor falls back to X's embed data, which omits some counts. Those rows have dataSource set to x_embed. A post with a null count never passes a minimum on that count.
Can it return reposts?
No. It returns original posts, replies and quote posts.
Related Actors
- Twitter/X Scraper: profiles, timelines, tweets by URL and native X search with your own cookies.
- X Profile Scraper: public profile data for many accounts.
- X Quote Posts Scraper: posts that quote a given post.
- X Twitter Thread Scraper: complete threads from a post URL.
- Reddit Scraper: the same kind of monitoring for Reddit.