x-tweet-fetch

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

X Tweet Fetch

X 推文获取

Get a specific tweet by URL or ID.
通过URL或ID获取特定推文。

Setup

配置

bash
export X_BEARER_TOKEN="your-token"  # https://developer.x.com/en/portal/dashboard
bash
export X_BEARER_TOKEN="your-token"  # https://developer.x.com/en/portal/dashboard

Usage

使用方法

bash
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh <url_or_id>
bash
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh <url_or_id>

Examples

示例

bash
undefined
bash
undefined

By URL

通过URL获取

${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh "https://x.com/kurtwuckertjr/status/1234567890"
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh "https://x.com/kurtwuckertjr/status/1234567890"

By ID

通过ID获取

${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh 1234567890
undefined
${CLAUDE_PLUGIN_ROOT}/scripts/fetch.sh 1234567890
undefined

Response Fields

响应字段

  • text
    - Tweet content
  • created_at
    - Post timestamp
  • public_metrics
    - Likes, retweets, replies, views
  • author
    - User info (expanded)
  • entities
    - URLs, mentions, hashtags
  • text
    - 推文内容
  • created_at
    - 发布时间戳
  • public_metrics
    - 点赞、转发、回复、浏览量
  • author
    - 扩展的用户信息
  • entities
    - 链接、提及、话题标签

References

参考链接