---
name: php186-skill-7803
description: "无需官方API即可读取X（Twitter）帖子。支持Nitter（免费）和RapidAPI（详细）两种方式。"
---

# X Reader

## X-Reader

 

Read X (Twitter) posts without official API key.

 

## Features

 

- **Nitter Mode** (Default): Free, no API key required
- **RapidAPI Mode**: Detailed tweet info with API key
- Simple CLI interface
- JSON output for easy integration

 

## Usage

 

### Basic (Nitter - Free)

 

```
python3 x-reader.py "https://x.com/username/status/1234567890"
```

 

### Advanced (RapidAPI - Detailed)

 

```
export RAPIDAPI_KEY="your_rapidapi_key"
python3 x-reader.py "https://x.com/username/status/1234567890"
```

 

## Output Format

 

```
{
  "id": "1234567890",
  "text": "Tweet content...",
  "author": "Display Name",
  "username": "username",
  "created_at": "2024-01-01T00:00:00.000Z",
  "likes": 100,
  "retweets": 50,
  "replies": 25,
  "url": "https://x.com/username/status/1234567890"
}
```

 

## Notes

 

- Nitter mode may have rate limits
- RapidAPI free tier: 100 requests/month
- For production use, consider RapidAPI paid tier
