# Send TwitterAPI.io to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "twitterapi-io",
    "name": "TwitterAPI.io",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/dorukardahan/twitterapi-io",
    "canonicalUrl": "https://clawhub.ai/dorukardahan/twitterapi-io",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/twitterapi-io",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=twitterapi-io",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CHANGELOG.md",
      "README.md",
      "SKILL.md",
      "references/endpoint-index.md",
      "references/read-endpoints.md",
      "references/webhook-stream-endpoints.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "twitterapi-io",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T07:53:43.362Z",
      "expiresAt": "2026-05-17T07:53:43.362Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=twitterapi-io",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=twitterapi-io",
        "contentDisposition": "attachment; filename=\"twitterapi-io-3.8.5.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "twitterapi-io"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/twitterapi-io"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/twitterapi-io",
    "downloadUrl": "https://openagent3.xyz/downloads/twitterapi-io",
    "agentUrl": "https://openagent3.xyz/skills/twitterapi-io/agent",
    "manifestUrl": "https://openagent3.xyz/skills/twitterapi-io/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/twitterapi-io/agent.md"
  }
}
```
## Documentation

### TwitterAPI.io skill v3.5.0

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

Get API key: https://twitterapi.io/dashboard ($0.10 free credits, no CC)
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).
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 $/1KTweets (per returned tweet)15$0.15Profiles (per returned profile)18$0.18Profiles batch 100+ (per profile)10$0.10Followers (per returned follower)15$0.15Verified followers (per follower)30$0.30Minimum per API call15$0.00015List endpoint calls150$0.0015Check follow relationship100$0.001Get article100$0.001Community info20$0.0002Write actions (tweet, like, RT, follow)200-300$0.002-0.003Login300$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 Version Note

All V1 endpoints have been removed from the API. Use only V2 endpoints (_v2 suffix) for write operations.
V2 requires login_cookies (from user_login_v2) + residential proxy.

### 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.

### 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 (33 endpoints), consult references/read-endpoints.md
For WRITE V2 endpoint documentation (19 endpoints), consult references/write-endpoints.md
For Webhook and Stream endpoint documentation (6 endpoints), consult references/webhook-stream-endpoints.md
For the complete endpoint index table (all 58 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

FeatureStatusImpactsince: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 advancingsince_time:UNIX / until_time:UNIXWORKSAlternative date format using Unix timestamps -- returns correct date rangewithin_time:NhWORKSRelative time filter (e.g., within_time:72h)get_user_last_tweets paginationWORKSUser timeline cursor pagination is unaffectedget_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 userWorkingto:to:elonmuskReplies to userWorking"...""exact phrase"Exact matchWorkingORcat OR dogEither termWorking--spamExclude termWorkingsince: / until:since:2026-01-01_00:00:00_UTCDate range (UTC)DEGRADED -- use since_time: insteadsince_time: / until_time:since_time:1741219200Date range (Unix timestamp)Workingwithin_time:within_time:24hRelative time windowWorkingmin_faves:min_faves:100Min likesWorkingmin_retweets:min_retweets:50Min RTsWorkingfilter:mediafilter:mediaHas mediaWorkingfilter:linksfilter:linksHas linksWorkinglang:lang:enLanguageWorkingis: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" }

ErrorCauseFixInvalid API keyWrong or missing X-API-Key headerCheck key in dashboardInvalid login_cookieExpired or faulty cookieRe-login via user_login_v2 with valid totp_secret400 on v2 actionsFaulty cookie from login without proper totp_secretRe-login with 16-char string totp_secretProxy errorBad proxy format or dead proxyFormat: http://user:pass@host:port, use residentialRate limitedExceeded QPS for your balance tierBack off, add balance for higher QPSAccount suspendedTwitter account bannedUse different account404 on endpointWrong pathCheck correct path in this doc

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

GET /twitter/user/info?userName=TARGET -> extract data.id
Use that numeric ID in follow/DM calls
Note: get_user_mentions accepts userName directly -- no ID lookup needed.

### Post tweet with image

Upload: POST /twitter/upload_media_v2 -> get media_id
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:

POST /oapi/x_user_stream/add_user_to_monitor_tweet for each account
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.
V2 cookies only work with v2 endpoints (_v2 suffix).
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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: dorukardahan
- Version: 3.5.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T07:53:43.362Z
- Expires at: 2026-05-17T07:53:43.362Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/twitterapi-io)
- [Send to Agent page](https://openagent3.xyz/skills/twitterapi-io/agent)
- [JSON manifest](https://openagent3.xyz/skills/twitterapi-io/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/twitterapi-io/agent.md)
- [Download page](https://openagent3.xyz/downloads/twitterapi-io)