Search and retrieve content from Twitter/X
Twitter/X Skill

Search and retrieve content from Twitter/X. Get user info, tweets, replies, followers, communities, spaces, and trends via twitterapi.io.
--- name: twitter description: Search and retrieve content from Twitter/X. Get user info, tweets, replies, followers, communities, spaces, and trends via twitterapi.io. Use when user mentions Twitter, X, or tweets. --- # Twitter/X Skill Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io. ## Prerequisites Set API key in `~/.zshrc`: ```bash export TWITTERAPI_API_KEY="your_api_key" ``` **Quick Check**: ```bash
Overview
Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.
Manual install (npx, ZIP)
Claude Code
npx skills add ReScienceLab/opc-skills --skill twitter -g -a claude-codeClaude Code (degit)
npx degit ReScienceLab/opc-skills/skills/twitter#main ~/.claude/skills/twitterClaude.ai / desktop
Codex, Cursor, other agents
Connects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md2.7 KB
Read SKILL.md here
SKILL.md
Show the full text100 lines
Twitter/X Skill
Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.
Prerequisites
Set API key in ~/.zshrc:
export TWITTERAPI_API_KEY="your_api_key"
Quick Check:
cd <skill_directory>
python3 scripts/get_user_info.py elonmusk
Commands
All commands run from the skill directory.
User Endpoints
python3 scripts/get_user_info.py USERNAME
python3 scripts/get_user_about.py USERNAME
python3 scripts/batch_get_users.py USER_ID1,USER_ID2
python3 scripts/get_user_tweets.py USERNAME --limit 20
python3 scripts/get_user_mentions.py USERNAME --limit 20
python3 scripts/get_followers.py USERNAME --limit 100
python3 scripts/get_following.py USERNAME --limit 100
python3 scripts/get_verified_followers.py USERNAME --limit 20
python3 scripts/check_relationship.py USER1 USER2
python3 scripts/search_users.py "query" --limit 20
Tweet Endpoints
python3 scripts/get_tweet.py TWEET_ID [TWEET_ID2...]
python3 scripts/search_tweets.py "query" --type Latest --limit 20
python3 scripts/get_tweet_replies.py TWEET_ID --limit 20
python3 scripts/get_tweet_quotes.py TWEET_ID --limit 20
python3 scripts/get_tweet_retweeters.py TWEET_ID --limit 50
python3 scripts/get_tweet_thread.py TWEET_ID
python3 scripts/get_article.py TWEET_ID
List Endpoints
python3 scripts/get_list_followers.py LIST_ID --limit 20
python3 scripts/get_list_members.py LIST_ID --limit 20
Community Endpoints
python3 scripts/get_community.py COMMUNITY_ID
python3 scripts/get_community_members.py COMMUNITY_ID --limit 20
python3 scripts/get_community_moderators.py COMMUNITY_ID
python3 scripts/get_community_tweets.py COMMUNITY_ID --limit 20
python3 scripts/search_community_tweets.py "query" --limit 20
Other Endpoints
python3 scripts/get_space.py SPACE_ID
python3 scripts/get_trends.py --woeid 1 # Worldwide
Search Query Syntax
# Basic search
python3 scripts/search_tweets.py "AI agent"
# From specific user
python3 scripts/search_tweets.py "from:elonmusk"
# Date range
python3 scripts/search_tweets.py "AI since:2024-01-01 until:2024-12-31"
# Exclude retweets
python3 scripts/search_tweets.py "AI -filter:retweets"
# With media
python3 scripts/search_tweets.py "AI filter:media"
# Minimum engagement
python3 scripts/search_tweets.py "AI min_faves:1000"
API: twitterapi.io
- Base URL: https://api.twitterapi.io/twitter
- Auth: X-API-Key header
- Pricing: ~$0.15-0.18/1k requests
- Docs: https://docs.twitterapi.io/
| 1 | |
| 2 | name twitter |
| 3 | description Search and retrieve content from Twitter/X. Get user info, tweets, replies, followers, communities, spaces, and trends via twitterapi.io. Use when user mentions Twitter, X, or tweets. |
| 4 | |
| 5 | |
| 6 | # Twitter/X Skill |
| 7 | |
| 8 | Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io. |
| 9 | |
| 10 | ## Prerequisites |
| 11 | |
| 12 | Set API key in `~/.zshrc`: |
| 13 | |
| 14 | export TWITTERAPI_API_KEY="your_api_key" |
| 15 | |
| 16 | |
| 17 | **Quick Check**: |
| 18 | |
| 19 | cd <skill_directory> |
| 20 | python3 scripts/get_user_info.py elonmusk |
| 21 | |
| 22 | |
| 23 | ## Commands |
| 24 | |
| 25 | All commands run from the skill directory. |
| 26 | |
| 27 | ### User Endpoints |
| 28 | |
| 29 | python3 scripts/get_user_info.py USERNAME |
| 30 | python3 scripts/get_user_about.py USERNAME |
| 31 | python3 scripts/batch_get_users.py USER_ID1,USER_ID2 |
| 32 | python3 scripts/get_user_tweets.py USERNAME --limit 20 |
| 33 | python3 scripts/get_user_mentions.py USERNAME --limit 20 |
| 34 | python3 scripts/get_followers.py USERNAME --limit 100 |
| 35 | python3 scripts/get_following.py USERNAME --limit 100 |
| 36 | python3 scripts/get_verified_followers.py USERNAME --limit 20 |
| 37 | python3 scripts/check_relationship.py USER1 USER2 |
| 38 | python3 scripts/search_users.py "query" --limit 20 |
| 39 | |
| 40 | |
| 41 | ### Tweet Endpoints |
| 42 | |
| 43 | python3 scripts/get_tweet.py TWEET_ID [TWEET_ID2...] |
| 44 | python3 scripts/search_tweets.py "query" --type Latest --limit 20 |
| 45 | python3 scripts/get_tweet_replies.py TWEET_ID --limit 20 |
| 46 | python3 scripts/get_tweet_quotes.py TWEET_ID --limit 20 |
| 47 | python3 scripts/get_tweet_retweeters.py TWEET_ID --limit 50 |
| 48 | python3 scripts/get_tweet_thread.py TWEET_ID |
| 49 | python3 scripts/get_article.py TWEET_ID |
| 50 | |
| 51 | |
| 52 | ### List Endpoints |
| 53 | |
| 54 | python3 scripts/get_list_followers.py LIST_ID --limit 20 |
| 55 | python3 scripts/get_list_members.py LIST_ID --limit 20 |
| 56 | |
| 57 | |
| 58 | ### Community Endpoints |
| 59 | |
| 60 | python3 scripts/get_community.py COMMUNITY_ID |
| 61 | python3 scripts/get_community_members.py COMMUNITY_ID --limit 20 |
| 62 | python3 scripts/get_community_moderators.py COMMUNITY_ID |
| 63 | python3 scripts/get_community_tweets.py COMMUNITY_ID --limit 20 |
| 64 | python3 scripts/search_community_tweets.py "query" --limit 20 |
| 65 | |
| 66 | |
| 67 | ### Other Endpoints |
| 68 | |
| 69 | python3 scripts/get_space.py SPACE_ID |
| 70 | python3 scripts/get_trends.py --woeid 1 # Worldwide |
| 71 | |
| 72 | |
| 73 | ## Search Query Syntax |
| 74 | |
| 75 | |
| 76 | # Basic search |
| 77 | python3 scripts/search_tweets.py "AI agent" |
| 78 | |
| 79 | # From specific user |
| 80 | python3 scripts/search_tweets.py "from:elonmusk" |
| 81 | |
| 82 | # Date range |
| 83 | python3 scripts/search_tweets.py "AI since:2024-01-01 until:2024-12-31" |
| 84 | |
| 85 | # Exclude retweets |
| 86 | python3 scripts/search_tweets.py "AI -filter:retweets" |
| 87 | |
| 88 | # With media |
| 89 | python3 scripts/search_tweets.py "AI filter:media" |
| 90 | |
| 91 | # Minimum engagement |
| 92 | python3 scripts/search_tweets.py "AI min_faves:1000" |
| 93 | |
| 94 | |
| 95 | ## API: twitterapi.io |
| 96 | Base URL: https://api.twitterapi.io/twitter |
| 97 | Auth: X-API-Key header |
| 98 | Pricing: ~$0.15-0.18/1k requests |
| 99 | Docs: https://docs.twitterapi.io/ |
| 100 |
Details
- License
- Apache-2.0
- Stars on the repo
- ★ 1,826
- Checked
- Source
- ReScienceLab/opc-skills ↗
- Creator
- ReScienceLab · 1 listing
Similar skills
See all →
SkillResearch what people actually say about any topicSTEP 0: STALE-CLONE SELF-CHECK — RUN BEFORE READING BELOW
SkillScrapes social platforms, business dataApify
Skill微信公众号长文增长闭环 ——
SkillSays 'YouTube script', 'video script'🎬 YouTube Script: Writing retention-optimized video script...
SkillAgent Reach — 互联网能力路由器
SkillRead your Instagram niche and profile from real dataInstagram Audience Insights