Twitter/X Skill
Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.
Best use case
Twitter/X Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.
Teams using Twitter/X Skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/twitter/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Twitter/X Skill Compares
| Feature / Agent | Twitter/X Skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Get user profiles, tweets, replies, followers/following, communities, spaces, and trends from Twitter/X via twitterapi.io.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 cd <skill_directory> python3 scripts/get_user_info.py elonmusk ``` ## Commands All commands run from the skill directory. ### User Endpoints ```bash 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 ```bash 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 ```bash python3 scripts/get_list_followers.py LIST_ID --limit 20 python3 scripts/get_list_members.py LIST_ID --limit 20 ``` ### Community Endpoints ```bash 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 ```bash python3 scripts/get_space.py SPACE_ID python3 scripts/get_trends.py --woeid 1 # Worldwide ``` ## Search Query Syntax ```bash # 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/
Related Skills
Post to X (Twitter)
Posts text, images, videos, and long-form articles to X via real Chrome browser (bypasses anti-bot detection).
twitter-crawler
Twitter 推文爬取器 - 指定用户名爬取推文,保存为 Markdown 格式,支持自定义数量和字段
twitter-reader
Fetch Twitter/X post content by URL using jina.ai API to bypass JavaScript restrictions. Use when Claude needs to retrieve tweet content including author, timestamp, post text, images, and thread replies. Supports individual posts or batch fetching from x.com or twitter.com URLs.
../../../marketing-skill/x-twitter-growth/SKILL.md
No description provided.
twitter-automation
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
Twitter/X Marketing
## Overview
twitter-algorithm-optimizer
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
Daily Logs
Record the user's daily activities, progress, decisions, and learnings in a structured, chronological format.
Socratic Method: The Dialectic Engine
This skill transforms Claude into a Socratic agent — a cognitive partner who guides
Sokratische Methode: Die Dialektik-Maschine
Dieser Skill verwandelt Claude in einen sokratischen Agenten — einen kognitiven Partner, der Nutzende durch systematisches Fragen zur Wissensentdeckung führt, anstatt direkt zu instruieren.
College Football Data (CFB)
Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.
College Basketball Data (CBB)
Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.