Token导航 LogoToken导航

Agent Skill · 研究检索

twitterapi-io(twitterapi IO 搜索)

twitterapi-io 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

twitterapi-io 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 32,487。

总安装 2,519周安装 106GitHub Stars 3下载 882核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:twitterapi-io(twitterapi IO 搜索)
来源仓库:https://github.com/kaitoinfra/twitterapi-io
仓库路径:skills/twitterapi-io
安装命令:
npx skills add https://github.com/kaitoinfra/twitterapi-io --skill twitterapi-io
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kaitoinfra/twitterapi-io --skill twitterapi-io

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

twitterapi-io 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。安装前需确认权限范围、维护状态,以及是否会触发联网或文件操作。

建议结合原始 README 核验具体用法和功能边界。

来源仓库内路径:skills/twitterapi-io

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/kaitoinfra/twitterapi-io --skill twitterapi-io;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

twitterapi-io 怎么安装?

在终端执行 npx skills add https://github.com/kaitoinfra/twitterapi-io --skill twitterapi-io。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

twitterapi-io 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

twitterapi-io 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

twitterapi-io 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

twitterapi-io 用的人多吗?

公开数据是累计安装 2,519 次,近一周安装 106 次,下载 882 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

twitterapi-io 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
twitterapi-io

twitterapi IO 搜索 · 本页

2,5193接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

twitterapi.io

Official skill maintained by the twitterapi.io team. Paths, parameters, and body fields in this skill are verified against the live backend.

When to use this skill

Trigger when the user wants any of:

  • Fetch tweets, user profiles, followers/following, trends, replies, quote-tweets, retweeters, articles
  • Advanced tweet search (X operators, date ranges, engagement filters)
  • Monitor users or filter rules in near real time
  • Post / delete / like / retweet / bookmark / quote-tweet / reply / follow / DM / schedule tweets
  • Update profile / avatar / banner, upload media
  • Create/join/leave communities, manage lists, report content
  • Anything involving twitterapi.io, api.twitterapi.io, x-api-key, login_cookies, or the X API without OAuth

Core facts

Base URLhttps://api.twitterapi.io
Prefix/twitter/... most endpoints; /oapi/x_user_stream/... and /oapi/tweet_filter/... for real-time monitoring/webhooks; /oapi/my/info for balance
Auth headerx-api-key: YOUR_KEY
Dashboardhttps://twitterapi.io/dashboard
Docshttps://docs.twitterapi.io
Rate limit~200 req/s per client
Pricing~$0.15/1k tweets, ~$0.18/1k profiles, $0.00015 minimum

⚠️ Two rules that catch people

Rule 1 — Parameter naming is per-endpoint

No universal snake_case or camelCase rule. Examples (all correct):

  • /twitter/user/followers?userName= (camel)
  • /twitter/user/verifiedFollowers?user_id= (snake)
  • /twitter/user/articles?username= (all-lowercase)
  • /twitter/tweets?tweet_ids= (snake) but /twitter/tweet/replies?tweetId= (camel)
  • /twitter/list/tweets_timeline?listId= (camel) but /twitter/list/members?list_id= (snake)

Copy the exact parameter name from references/endpoints.md. Don't normalize.

Rule 2 — Writes need three things in body, not two

Every write endpoint requires:

  1. login_cookies (plural, not login_cookie) — base64-encoded JSON from /twitter/user_login_v2
  2. proxy (HTTP/SOCKS proxy URL — configure in dashboard)
  3. Action-specific fields, almost always snake_case (tweet_id, user_id)

Plus key field-name traps:

  • create_tweet_v2 text field is tweet_text (not text); reply field is reply_to_tweet_id (not in_reply_to_tweet_id)
  • update_profile_v2 uses description (not bio)
  • bookmarks_v2 uses count (not pageSize)
  • send_dm_to_user: user_id + text; optional media_id (singular)
  • Monitoring add uses x_user_name; remove uses id_for_user (different fields per endpoint!)

See references/write-operations.md for full body shapes.

Rule 3 — Response shape varies per endpoint

  • data-wrapped: user/info, user_about, last_tweets, tweet_timeline, trends, check_follow_relationship → r["data"]["..."]
  • Flat with envelope: followers, followings, replies, mentions, community/tweets → r["followers"], r["tweets"], etc.
  • Flat without envelope: advanced_search, thread_context, user/search, get_tweets_from_all_community → just {tweets[], has_next_page, next_cursor}
  • Named top-level field: community/info → r["community_info"]; batch_info_by_ids → r["users"]
  • oapi/my/info → {recharge_credits, total_bonus_credits} (no status wrapper)

Prefer defensive access: r.get("tweets", r.get("data", {}).get("tweets", [])).

Security

Never hardcode the API key. Read from env TWITTERAPI_IO_KEY. If missing, ask the user.

Minimal working example

curl -s "https://api.twitterapi.io/twitter/user/info?userName=elonmusk" \
  -H "x-api-key: $TWITTERAPI_IO_KEY"
import os, requests

BASE = "https://api.twitterapi.io"
HEADERS = {"x-api-key": os.environ["TWITTERAPI_IO_KEY"]}

r = requests.get(f"{BASE}/twitter/user/info",
                 headers=HEADERS,
                 params={"userName": "elonmusk"},
                 timeout=30)
r.raise_for_status()
d = r.json()["data"]
print(f"{d['userName']} — {d['followers']:,} followers")

Endpoint quick reference

Reads (API key only). Exact param names — copy as shown.

CapabilityMethodPath & key param
User by screen nameGET/twitter/user/info?userName=
Extended bioGET/twitter/user_about?userName=
Batch users by IDsGET/twitter/user/batch_info_by_ids?userIds=
Search usersGET/twitter/user/search?query= (not keyword)
Recent tweetsGET/twitter/user/last_tweets?userName= (or userId=)
Timeline by IDGET/twitter/user/tweet_timeline?userId=
User's articlesGET/twitter/user/articles?username= (all-lowercase)
Mentions of userGET/twitter/user/mentions?userName=
FollowersGET/twitter/user/followers?userName=&pageSize=200
Verified followersGET/twitter/user/verifiedFollowers?user_id= (snake)
FollowingsGET/twitter/user/followings?userName=
Check followGET/twitter/user/check_follow_relationship?source_user_name=&target_user_name=
Tweets by IDsGET/twitter/tweets?tweet_ids= (snake)
Tweet repliesGET/twitter/tweet/replies?tweetId=
Replies (sortable)GET/twitter/tweet/replies/v2?tweetId=&queryType=Latest
Quote tweetsGET/twitter/tweet/quotes?tweetId=
RetweetersGET/twitter/tweet/retweeters?tweetId=
Thread contextGET/twitter/tweet/thread_context?tweetId=
Article contentGET/twitter/article?tweet_id= (snake)
Advanced searchGET/twitter/tweet/advanced_search?query=
Bulk advanced searchPOST/twitter/tweet/bulk_advanced_search body {queries:[{query,queryType?,cursor?}]}
TrendsGET/twitter/trends?woeid=1&count=30
Space detailGET/twitter/spaces/detail?space_id= (snake)
List tweets (with filters)GET/twitter/list/tweets?listId=
List tweets_timelineGET/twitter/list/tweets_timeline?listId=
List members / followersGET/twitter/list/{members,followers}?list_id= (snake)
Community infoGET/twitter/community/info?community_id=
Community tweets/members/modsGET/twitter/community/{tweets,members,moderators}?community_id=
All-community firehoseGET/twitter/community/get_tweets_from_all_community?query= (required!)
Account balanceGET/oapi/my/info

Real-time monitoring (/oapi/x_user_stream/*). Field names differ per endpoint!

CapabilityMethodPath & body
Add monitorPOST/oapi/x_user_stream/add_user_to_monitor_tweet body {x_user_name} ← not user_id
List monitorsGET/oapi/x_user_stream/get_user_to_monitor_tweet (+ query_type 0/1/2)
Remove monitorPOST/oapi/x_user_stream/remove_user_to_monitor_tweet body {id_for_user} ← different field from add

Webhook filter rules (/oapi/tweet_filter/*):

CapabilityMethodPath & body
Add rulePOST/oapi/tweet_filter/add_rule body {tag, value, interval_seconds?=60} (range 0.05–86400)
List rulesGET/oapi/tweet_filter/get_rules
Update rulePOST/oapi/tweet_filter/update_rule body {rule_id, tag, value, interval_seconds?, is_effect?}
Delete ruleDELETE/oapi/tweet_filter/delete_rule body {rule_id} (body JSON, not query)

Writes — require login_cookies + proxy in body. login_cookies is base64(json(cookie_dict)) from /twitter/user_login_v2.

CapabilityMethodPathKey body fields (beyond login_cookies+proxy)
Log in → cookiesPOST/twitter/user_login_v2{user_name, email, password, totp_secret?, proxy}
Create tweetPOST/twitter/create_tweet_v2tweet_text (req); optional reply_to_tweet_id, quote_tweet_id, community_id, media_ids[], schedule_for
DeletePOST/twitter/delete_tweet_v2tweet_id
Like / UnlikePOST/twitter/{like,unlike}_tweet_v2tweet_id
RetweetPOST/twitter/retweet_tweet_v2tweet_id
Bookmark / UnbookmarkPOST/twitter/{bookmark,unbookmark}_tweet_v2tweet_id
List bookmarksPOST/twitter/bookmarks_v2optional count (def 20, not pageSize), cursor
Follow / UnfollowPOST/twitter/{follow,unfollow}_user_v2user_id
Send DMPOST/twitter/send_dm_to_useruser_id, text, optional media_id (singular), reply_to_message_id
ReportPOST/twitter/report_v2(tweet_id OR user_id), reason (enum, see endpoints.md)
Upload mediaPOST/twitter/upload_media_v2multipart: file, optional media_category, is_long_video
Update profilePATCH/twitter/update_profile_v2JSON: at least one of name, description (not bio!), location, url
Update avatar/bannerPATCH/twitter/update_{avatar,banner}_v2multipart: file
Create communityPOST/twitter/create_community_v2name, description (both required)
Join / Leave communityPOST/twitter/{join,leave}_community_v2community_id
Delete communityPOST/twitter/delete_community_v2community_id, community_name (both required)
Add list memberPOST/twitter/list/add_member_v2list_id, user_id

For exact param lists, response shapes, and edge cases see references/endpoints.md.

Recurring patterns

Cursor pagination — use has_next_page

def iter_followers(user_name):
    cursor = ""
    while True:
        r = requests.get(f"{BASE}/twitter/user/followers",
                         headers=HEADERS,
                         params={"userName": user_name, "cursor": cursor, "pageSize": 200},
                         timeout=30).json()
        yield from r.get("followers", [])
        if not r.get("has_next_page"):
            break
        cursor = r.get("next_cursor") or ""

Error handling

# FastAPI-style 4xx/5xx
{ "detail": "tweet_id is required" }
{ "detail": [{"type":"missing","loc":["body","file"]}] }  # 422 on multipart

# Semantic 200 errors
{ "status": "error", "msg": "No active monitoring subscription" }
  • 401 → bad x-api-key or expired login_cookies
  • 402 → top up balance at dashboard
  • 429 → rate-limited; exponential backoff
  • 400/422 → read detail — it names the missing/wrong field
  • 500 → transient; retry with jitter. If repeated, the param name is wrong

Cost awareness

Before a loop that could paginate for a long time (followers of a mega-account, years of advanced search), estimate cost up front and confirm with the user if it could exceed a few dollars. A 100M-follower crawl is $15k+ at $0.15/1k.

Anti-patterns

  • Do not assume a universal param-casing rule — check endpoints.md
  • Do not use login_cookie (singular) — it's login_cookies plural
  • Do not forget proxy in write bodies — every write requires it
  • Do not send text for create_tweet_v2 — use tweet_text
  • Do not use bio in update_profile_v2 — use description
  • Do not use in_reply_to_tweet_id for create_tweet_v2 — it's reply_to_tweet_id
  • Do not send JSON to upload_media_v2 / update_avatar_v2 / update_banner_v2 — they're multipart/form-data
  • Do not use pageSize for bookmarks_v2 — it's count
  • Do not send user_id to monitoring add — it's x_user_name; remove uses id_for_user
  • Do not log or commit API keys, login_cookies, proxies, or totp_secret
  • Do not use developer.twitter.com / official X OAuth — this API replaces them
  • Do not poll /user/last_tweets for "real-time" — use /oapi/tweet_filter/add_rule + webhook

平台分布

Codex

35.17%
按下载量换算310

Claude

30.28%
按下载量换算267

Cursor

21.51%
按下载量换算190

Gemini CLI

9.86%
按下载量换算87

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills