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

Skill by ythx-101

Fetch tweets, replies, timelines, search results, X Lists and X Articles from X/Twitter. It is for agents that need this data without logging in or using API keys.

  • Score 81
  • 1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install x-tweet-fetcher

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ythx-101/x-tweet-fetcher /tmp/x-tweet-fetcher && mkdir -p ~/.claude/skills && cp -r /tmp/x-tweet-fetcher ~/.claude/skills/x-tweet-fetcher

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

Step-by-step: install x-tweet-fetcher in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

x-tweet-fetcher is a command-line tool and Python API for reading X/Twitter content. Single tweets are fetched through FxTwitter with zero dependencies. Timelines, search and replies use a Nitter instance set in XTF_NITTER, and X Lists and Articles use a browser driver, either Camofox or Playwright. A router picks a backend automatically, with Nitter first and the browser as fallback.

All backends return a unified JSON schema. Every error includes a machine-readable error_code, so agents can branch on failures. A mentions monitor is included for cron jobs, with exit codes for new mentions and setup errors. The skill is aimed at developers and agents that need to read public X posts, lists and articles in a structured form.

Written from the project's SKILL.md and checked against it.

What it can do

  • Single tweetFetches one tweet with text, author, stats, media URLs and quoted tweets.
  • Reply threadsFetches replies to a tweet using Nitter or a browser backend.
  • User timelineFetches a user's timeline with a set limit, using Nitter or a browser.
  • SearchRuns a search query on X and returns matching results through Nitter.
  • User profileFetches profile information for a username with zero dependencies.
  • X ListFetches the tweets from an X List URL or ID through the browser driver.
  • X ArticleFetches an X Article by URL or ID through the browser driver.
  • Mentions monitorChecks for new mentions of a handle and reports only new URLs after the first run.

What you need

  • Python 3
  • A Nitter instance for timelines, search and replies
  • Camofox on localhost:9377 or Playwright for Lists and Articles
  • An X login for full Article text

Try asking

  • Fetch the text and stats of this tweet: https://x.com/user/status/1234567890
  • Get the latest 20 posts from the elonmusk timeline.
  • Search X for recent posts about openclaw and return 10 results.

Good to know

  • Timelines, search and replies need a Nitter instance.
  • Lists and Articles need a browser driver, Camofox or Playwright.
  • Full X Article text requires X login. Without it you get the title and a partial preview.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • .gitignore88 B
  • CHANGELOG.md6 KB
  • LICENSE1 KB
  • MIGRATION.md4 KB
  • README.md9 KB
Show all 8 files
  • SKILL.md4 KB
  • VERSION6 B
  • pyproject.toml1 KB

Alternatives to x-tweet-fetcher

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

x-tweet-fetcher: common questions

Does x-tweet-fetcher need an X account or API key?

The description says it works without login or API keys. Full X Article text is the exception and requires X login.

What happens when a fetch fails?

Every error result includes an error message and an error_code, such as rate_limited, upstream_down or all_backends_failed. The all_backends_failed case also lists per-backend error_causes.

Can I use it from Python instead of the command line?

Yes. The source shows a Python API with a Router class that has a fetch_timeline method returning Tweet objects.

How do I install x-tweet-fetcher?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is x-tweet-fetcher free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is x-tweet-fetcher safe to use?

It scores 81 of 100. Grades: maintenance A, 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-fetcher?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

x-tweet-fetcher Install

Add to stack

Loading.