Skip to content
Back to skills

Fetch X Tweet

ASecurity

Fetch an X (Twitter) tweet that requires authentication by using alternative frontends instead of direct curl.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
content-marketingbashfrontend

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill fetch-x-tweet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch X Tweet?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch X Tweet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-fetch-x-tweet/badge)](https://www.skillsdirectory.com/skills/jleechanorg-fetch-x-tweet)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetch-x-tweet
description: Fetch an X (Twitter) tweet that requires authentication by using alternative frontends instead of direct curl.
---

# Fetch X (Twitter) Tweet

Fetch a tweet that may require authentication by using alternative frontends.

## Problem
Direct curl to `x.com` or `twitter.com` often returns 401/402 errors due to authentication requirements.

## Solution
Use alternative Twitter frontends that bypass auth:

### 1. fxtwitter (BEST - usually works)
```bash
curl -sL "https://fxtwitter.com/USERNAME/status/TWEET_ID"
```

Extract text:
```bash
curl -sL "https://fxtwitter.com/USERNAME/status/TWEET_ID" | grep -E "og:description|content=" | head -5
```

### 2. nitter (fallback)
```bash
curl -sL "https://nitter.net/USERNAME/status/TWEET_ID"
```

### 3. vxtwitter (alternative)
```bash
curl -sL "https://vxtwitter.com/USERNAME/status/TWEET_ID"
```

## Extract Tweet Text
```bash
# From fxtwitter
curl -sL "https://fxtwitter.com/USERNAME/status/123" | grep -o 'og:description" content="[^"]*"' | cut -d'"' -f4

# Or parse the oembed JSON in the link tag
curl -sL "https://fxtwitter.com/USERNAME/status/123" | grep -o '"application/json+oembed"[^>]*>' | grep -o 'https://fxtwitter.com/owoembed[^"]*'
```

## Get Video URL (if tweet has video)
```bash
curl -sL "https://fxtwitter.com/USERNAME/status/TWEET_ID" | grep -o 'twitter:player:stream" content="[^"]*"' | cut -d'"' -f4
```

## Examples
- Tweet URL: `https://x.com/om_patel5/status/2050062761229496425`
- Use: `https://fxtwitter.com/om_patel5/status/2050062761229496425`

## Notes
- fxtwitter embeds video directly in OG tags - can extract playable MP4 URL
- nitter may be rate-limited or down
- If all fail, try adding `-H "User-Agent: Mozilla/5.0"` header

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.