Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

twitterapi-iotwitterapi IO 搜索

Agent Skill

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

总安装

34,967

周安装

1,502

GitHub Stars

1

下载量

12,256
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install twitterapi-io

简介

通过 TwitterAPI.io 网关访问全部 67 个活跃 API 端点。

  • 涵盖搜索、用户资料、发帖、私信等完整功能集。
  • 适合需要深度集成 Twitter 生态系统的开发者。
  • 依赖外部服务稳定性,存在中断或变更风险。twitterapi-io 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 务必查阅最新文档确认参数格式与计费方式。

SKILL.md

name
twitterapi-io
description
Interact with Twitter/X via TwitterAPI.io — search tweets, get user info, post tweets, like, retweet, follow, send DMs, and more. Covers all 67 active endpoints. Use when the user wants to read or write Twitter data.
metadata
version
3.8.5
updated
2026-04-29
author
dorukardahan

TwitterAPI.io skill v3.8.5

Access Twitter/X data and perform actions via TwitterAPI.io REST API. Use TwitterAPI.io REST API for read, write, webhook, and stream operations.

Docs: https://docs.twitterapi.io | Dashboard: https://twitterapi.io/dashboard


Setup

  1. Get API key: https://twitterapi.io/dashboard ($0.10 free credits, no CC)
  2. Store the key in a .env file or your shell's secure config (do not use raw export with the actual key in the terminal -- it gets saved to shell history).
  3. For write actions, you also need login_cookies from v2 login + residential proxy.

Base URL: https://api.twitterapi.io Auth header: X-API-Key: $TWITTERAPI_IO_KEY (all requests)


Pricing (credit-based, 1 USD = 100,000 credits)

ResourceCreditsApprox $/1K
Tweets (per returned tweet)15$0.15
Profiles (per returned profile)18$0.18
Profiles batch 100+ (per profile)10$0.10
Followers (per returned follower)15$0.15
Verified followers (per follower)30$0.30
Minimum per API call15$0.00015
List endpoint calls150$0.0015
Check follow relationship100$0.001
Get article100$0.001
Community info20$0.0002
Write actions (tweet, like, RT, follow)200-300$0.002-0.003
Login300$0.003

Note: If the API returns 0 or 1 item, you are still charged the minimum (15 credits).


QPS (rate limits) -- balance-based

Account Balance (Credits)QPS Limit
< 1,000 (free tier)1 req / 5 sec
>= 1,0003
>= 5,0006
>= 10,00010
>= 50,00020

API Notes

OpenAPI now also exposes several legacy auth/write paths alongside V2 endpoints. Prefer V2 where available. V3 endpoints were taken offline by TwitterAPI.io in March 2026. Use V2 for write operations. For mission-critical tweet posting, consider Twitter's official API.

login_cookie vs login_cookies -- API Inconsistency

The API has an inconsistency in naming:

  • user_login_v2 response returns the field as login_cookie (singular)
  • All v2 action endpoints expect the field as login_cookies (plural)

Always use login_cookies (plural) in request bodies. The value is the same string.


Response schemas

Tweet object (from search, replies, etc.)

{
  "type": "tweet",
  "id": "1234567890",
  "url": "https://x.com/user/status/1234567890",
  "text": "Tweet content...",
  "source": "Twitter Web App",
  "retweetCount": 5,
  "replyCount": 2,
  "likeCount": 42,
  "quoteCount": 1,
  "viewCount": 1500,
  "bookmarkCount": 3,
  "createdAt": "Sun Feb 08 12:00:00 +0000 2026",
  "lang": "en",
  "isReply": false,
  "inReplyToId": null,
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "conversationId": "1234567890",
  "displayTextRange": [0, 280],
  "isLimitedReply": false,
  "author": { "...User Object..." },
  "entities": {
    "hashtags": [{ "text": "AI", "indices": [10, 13] }],
    "urls": [{ "display_url": "example.com", "expanded_url": "https://example.com", "url": "https://t.co/xxx" }],
    "user_mentions": [{ "id_str": "123", "name": "Someone", "screen_name": "someone" }]
  },
  "quoted_tweet": null,
  "retweeted_tweet": null
}

User object

{
  "type": "user",
  "id": "999888777",
  "userName": "elonmusk",
  "name": "Elon Musk",
  "url": "https://x.com/elonmusk",
  "isBlueVerified": true,
  "verifiedType": "none",
  "profilePicture": "https://pbs.twimg.com/...",
  "coverPicture": "https://pbs.twimg.com/...",
  "description": "Bio text...",
  "location": "Mars",
  "followers": 200000000,
  "following": 800,
  "canDm": false,
  "favouritesCount": 50000,
  "mediaCount": 2000,
  "statusesCount": 30000,
  "createdAt": "Tue Jun 02 20:12:29 +0000 2009",
  "pinnedTweetIds": ["1234567890"],
  "isAutomated": false,
  "possiblySensitive": false,
  "profile_bio": {
    "description": "Bio text...",
    "entities": {
      "description": { "urls": [] },
      "url": { "urls": [{ "display_url": "example.com", "expanded_url": "https://example.com" }] }
    }
  }
}

Paginated list response

{
  "tweets": [ "...array of Tweet Objects..." ],
  "has_next_page": true,
  "next_cursor": "cursor_string...",
  "status": "success",
  "msg": null
}

Endpoint reference

For detailed endpoint documentation with curl examples, consult the reference files:

  • For READ endpoint documentation (31 endpoints), consult references/read-endpoints.md
  • For WRITE endpoint documentation (28 endpoints), consult references/write-endpoints.md
  • For Webhook and Stream endpoint documentation (8 endpoints), consult references/webhook-stream-endpoints.md
  • For the complete endpoint index table (all 67 endpoints), consult references/endpoint-index.md

X/Twitter platform degradation notice (March 2026)

CRITICAL: Around March 5, 2026, Twitter/X disabled or degraded several advanced search features due to high platform usage. This affects ALL Twitter API providers (not just TwitterAPI.io) because TwitterAPI.io proxies Twitter's own search infrastructure.

What's broken

FeatureStatusImpact
since:DATE / until:DATE in searchDEGRADEDReturns incomplete results (often only 7-20 tweets per query regardless of actual volume)
Search paginationBROKENCursor-based pagination returns the SAME page of results repeatedly instead of advancing
since_time:UNIX / until_time:UNIXWORKSAlternative date format using Unix timestamps -- returns correct date range
within_time:NhWORKSRelative time filter (e.g., within_time:72h)
get_user_last_tweets paginationWORKSUser timeline cursor pagination is unaffected
get_user_mentions sinceTime/untilTimeWORKSServer-side Unix timestamp parameters (not search operators)
Webhook filter rulesWORKSReal-time collection unaffected (but webhook URL may be lost during API key rotation)

Workarounds for date-range queries

Instead of (broken):

$BTC since:2026-03-06_00:00:00_UTC until:2026-03-07_00:00:00_UTC

Use (working):

$BTC since_time:1741219200 until_time:1741305600

Convert dates to Unix timestamps: date -d "2026-03-06T00:00:00Z" +%s or use Python: int(datetime(2026,3,6,tzinfo=timezone.utc).timestamp())

Pagination workaround: Since pagination is broken, use hourly time windows instead of paginating through a large result set. Each 1-hour window returns a unique set of ~7-16 tweets (page 1 only). This gives ~250 unique tweets per coin per day across 24 windows.

For user timelines: Use GET /twitter/user/last_tweets with cursor pagination (works normally). Paginate backwards through the user's timeline, then client-side filter by createdAt date. This completely bypasses search operators.

Webhook URL gotcha

When a TwitterAPI.io API key is rotated (e.g., after account data reset), the webhook filter rules may be restored but the webhook URL is NOT automatically restored. You must manually re-set the webhook URL in the dashboard at https://twitterapi.io/tweet-filter-rules after any key rotation event.

Monitoring tip: Check that collection_type='webhook' tweets are still arriving. If rules are active but zero webhook tweets arrive for 30+ minutes, verify the webhook URL is configured.


Twitter search syntax (for query param in advanced_search)

OperatorExampleDescriptionStatus (Mar 2026)
from:from:elonmuskTweets by userWorking
to:to:elonmuskReplies to userWorking
"...""exact phrase"Exact matchWorking
ORcat OR dogEither termWorking
--spamExclude termWorking
since: / until:since:2026-01-01_00:00:00_UTCDate range (UTC)DEGRADED -- use since_time: instead
since_time: / until_time:since_time:1741219200Date range (Unix timestamp)Working
within_time:within_time:24hRelative time windowWorking
min_faves:min_faves:100Min likesWorking
min_retweets:min_retweets:50Min RTsWorking
filter:mediafilter:mediaHas mediaWorking
filter:linksfilter:linksHas linksWorking
lang:lang:enLanguageWorking
is:replyis:replyOnly repliesWorking
-is:retweet-is:retweetExclude RTsWorking

More examples: https://github.com/igorbrigadir/twitter-advanced-search


Pagination

Most list endpoints return:

{ "has_next_page": true, "next_cursor": "cursor_string..." }

Pass cursor=NEXT_CURSOR to get next page. First page: omit cursor or cursor="".

Known issues (March 2026):

  • advanced_search pagination is broken -- returns the same results on every page. Use hourly time windows (1 page per window) instead of deep pagination.
  • get_user_last_tweets pagination works normally -- cursor advances through the user's timeline chronologically.
  • has_next_page may return true even when no more data exists (Twitter API limitation). If a subsequent request returns empty or identical results, stop paginating.

Error handling

{ "status": "error", "msg": "Error message" }
ErrorCauseFix
Invalid API keyWrong or missing X-API-Key headerCheck key in dashboard
Invalid login_cookieExpired or faulty cookieRe-login via user_login_v2 with valid totp_secret
400 on v2 actionsFaulty cookie from login without proper totp_secretRe-login with 16-char string totp_secret
Proxy errorBad proxy format or dead proxyFormat: http://user:pass@host:port, use residential
Rate limitedExceeded QPS for your balance tierBack off, add balance for higher QPS
Account suspendedTwitter account bannedUse different account
404 on endpointWrong pathCheck correct path in this doc

Common workflows

Get user ID from username (needed for follow, DM)

  1. GET /twitter/user/info?userName=TARGET -> extract data.id
  2. Use that numeric ID in follow/DM calls

Note: get_user_mentions accepts userName directly -- no ID lookup needed.

Post tweet with image

  1. Upload: POST /twitter/upload_media_v2 -> get media_id
  2. Tweet: POST /twitter/create_tweet_v2 with media_ids: ["media_id"]

Reply to a tweet

POST /twitter/create_tweet_v2 with tweet_text + reply_to_tweet_id

Quote tweet

POST /twitter/create_tweet_v2 with tweet_text + attachment_url (full tweet URL)

Post to community

POST /twitter/create_tweet_v2 with tweet_text + community_id

Monitor accounts for new tweets (cheapest method)

Use Stream endpoints instead of polling /twitter/user/last_tweets:

  1. POST /oapi/x_user_stream/add_user_to_monitor_tweet for each account
  2. Set up webhook to receive notifications

MCP server

claude mcp add twitterapi-io -- npx -y twitterapi-io-mcp

npm: https://www.npmjs.com/package/twitterapi-io-mcp GitHub: https://github.com/dorukardahan/twitterapi-io-mcp

Also available: twitterapi-docs MCP server for querying this documentation programmatically.


Important notes

  • Read endpoints need only API key. No Twitter account needed.
  • Write endpoints need login_cookies from v2 login + residential proxy.
  • V3 endpoints are offline. Only V2 write endpoints are available.
  • 2FA strongly recommended -- use 16-character string totp_secret for reliable login.
  • Proxy mandatory for all write actions. Use high-quality residential proxies.
  • Credits never expire once recharged. Bonus credits valid 30 days.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.74%
按下载量换算10,018

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills