Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 83
  • 6.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-query

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install x-tweet-search-by-query in Claude Code

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

A

No 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 →

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.

x-tweet-search-by-query Install

Add to stack

Loading.