使用 fxTwitter API(api.fxtwitter.com)获取 X(Twitter)链接的推文/帖子数据。当用户发送 x.com 或 twitter.com 链接并想阅读时使用。
Fetch tweet data from an X/Twitter URL without auth or browser automation.
text
GET https://api.fxtwitter.com/:tweetId
Extract the tweet ID from the URL:
https://x.com/user/status/1234567890 → ID: 1234567890https://twitter.com/user/status/1234567890 → ID: 1234567890bash
curl -s "https://api.fxtwitter.com/1234567890" | jq '.tweet'
Key fields in .tweet:
.text — tweet content.author.name / .author.screen_name.created_at.likes, .retweets, .replies.media.photos[], .media.videos[].url — canonical URLWhen presenting a tweet to the user: