x-tweet-search-by-query
Skill by browser-act
Searches X (Twitter) by advanced query and returns a normalized list of matching tweets. Built for researchers and marketers who need keyword, hashtag, or brand mention data from a logged-in X session.
Install x-tweet-search-by-query
Built from the published package, never by AI.
git clone --depth 1 https://github.com/browser-act/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/solutions/social-listening/x-tweet-search-by-query ~/.claude/skills/x-tweet-search-by-queryRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install x-tweet-search-by-query in Claude Code
git clone --depth 1 https://github.com/browser-act/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/solutions/social-listening/x-tweet-search-by-query ~/.gemini/antigravity-cli/skills/x-tweet-search-by-queryAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install x-tweet-search-by-query in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill searches X using its advanced search syntax. A URL builder script turns a raw query and optional filters such as date range, language, engagement thresholds, media type, and location into a search URL. The browser opens that URL, and the X page itself makes the signed request. The skill reads the search response from network traffic and parses it into structured tweet data.
Each tweet includes text, author profile, engagement counts, media, hashtags, mentions, and cursors. The skill scrolls to load further pages until a target count is reached or the timeline ends. The source says it is meant for time-bounded research, sentiment input gathering, hashtag campaign tracking, and paginated bulk tweet collection.
Written from the project's SKILL.md and checked against it.
What it can do
- Advanced query builderTurns a raw query and filters into an X advanced search URL via a Python script.
- Sort by Latest or TopRuns the search on the X Latest tab or Top tab.
- Engagement and date filtersApplies minimum retweets, likes, replies, and since or until dates to a query.
- Author, mention, and reply filtersLimits results to tweets from, to, or mentioning a given handle.
- Media and verification filtersFilters tweets by images, video, quotes, or verified and blue verified authors.
- Location filtersRestricts results with geocode, near, and within parameters.
- Paginated collectionScrolls the search timeline and reads each new page using a cursor.
- Normalized tweet outputReturns tweets with text, author profile, engagement, media, hashtags, and mentions as JSON.
What you need
- An active X account logged in within the browser session
- browser-act skill with network capture enabled
- Python to run the URL builder and parser scripts
- Bash tool access to run the scripts
Try asking
- Search X for tweets about #FIFAWorldCup from the last week, sorted by Top
- Find tweets mentioning our brand handle with at least 50 likes
- Collect latest English tweets with images about a topic, up to 200 results
Good to know
- Only public tweets appear in results. Protected accounts are excluded.
- view_count is null for some new or low-traffic tweets.
- X rate limits search. The source suggests staying under about 150 SearchTimeline calls per 15 minutes.
- Results depend on the logged-in account's permissions, such as NSFW and blocked-user settings.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: solutions/social-listening/x-tweet-search-by-query/SKILL.md, solutions/social-listening/x-tweet-search-by-query/scripts/build-search-url.py, solutions/social-listening/x-tweet-search-by-query/scripts/parse-tweets.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
scripts/build-search-url.py4 KB -
scripts/parse-tweets.py10 KB
Alternatives to x-tweet-search-by-query
All alternatives →Box lets an AI assistant search, read, upload, download, move, rename, delete, restore and share Box content. It also manages comments and metadata. It suits people who work with files stored in Box.
Guides AI assistants in using n8n-mcp MCP tools to search nodes, validate configs, browse templates and manage n8n workflows. Aimed at people building n8n workflows through MCP.
Manages citations across the research and writing process. It covers searching Google Scholar and PubMed, converting DOIs, PMIDs and arXiv IDs to BibTeX, and validating bibliographies. It is for researchers building bibliographies for manuscripts or theses.
Exa Search is a skill that guides an AI assistant to use the Exa MCP server for neural search. It covers web pages, code, companies, and people, and is for users who need current information or research during development tasks.
Runs recent community and social trend research over the last 30 days. It suits teams who need to know what people are saying now about a topic or launch.
seo-flow adds the FLOW SEO framework to Claude SEO. It surfaces stage-specific AI prompts from the FLOW knowledge base across the Find, Leverage, Optimize and Win stages. It is for SEO practitioners who want evidence-led prompts.
Compare with box, n8n-mcp-tools-expert or citation-management
x-tweet-search-by-query: common questions
Does this skill need an X login?
Yes. The source requires an active X session in the browser, and it only reads data shown in that logged-in session. It does not bypass authentication.
How does pagination work?
The skill scrolls the search page, and X's own page code sends the next cursor. Collection stops when the target count is reached, no new tweets arrive, or the cursor stops advancing.
Can it search by hashtag or date range?
Yes. The source lists hashtag keywords, since and until dates, and minimum engagement thresholds among the supported query options.
How do I install x-tweet-search-by-query?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is x-tweet-search-by-query free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is x-tweet-search-by-query safe to use?
It scores 83 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to x-tweet-search-by-query?
Similar skills: box, n8n-mcp-tools-expert, citation-management, exa-search.
