← Back to Skills Marketplace
infra403

Opentwitter

by infra403 · GitHub ↗ · v0.1.0
darwinlinuxwin32 ✓ Security Clean
8509
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install opentwitter-2
Description
Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
README (SKILL.md)

Twitter/X Data Skill

Query Twitter/X data from the 6551 platform REST API. All endpoints require a Bearer token via $TWITTER_TOKEN.

Get your token: https://6551.io/mcp

Base URL: https://ai.6551.io

Authentication

All requests require the header:

Authorization: Bearer $TWITTER_TOKEN

Twitter Operations

1. Get Twitter User Info

Get user profile by username.

curl -s -X POST "https://ai.6551.io/open/twitter_user_info" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk"}'

2. Get Twitter User by ID

Get user profile by numeric ID.

curl -s -X POST "https://ai.6551.io/open/twitter_user_by_id" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"userId": "44196397"}'

3. Get User Tweets

Get recent tweets from a user.

curl -s -X POST "https://ai.6551.io/open/twitter_user_tweets" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk", "maxResults": 20, "product": "Latest"}'
Parameter Type Default Description
username string required Twitter username (without @)
maxResults integer 20 Max tweets (1-100)
product string "Latest" "Latest" or "Top"
includeReplies boolean false Include reply tweets
includeRetweets boolean false Include retweets

4. Search Twitter

Search tweets with various filters.

curl -s -X POST "https://ai.6551.io/open/twitter_search" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": "bitcoin", "maxResults": 20, "product": "Top"}'

Search from specific user:

curl -s -X POST "https://ai.6551.io/open/twitter_search" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fromUser": "VitalikButerin", "maxResults": 20}'

Search by hashtag:

curl -s -X POST "https://ai.6551.io/open/twitter_search" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"hashtag": "crypto", "minLikes": 100, "maxResults": 20}'

Twitter Search Parameters

Parameter Type Default Description
keywords string - Search keywords
fromUser string - Tweets from specific user
toUser string - Tweets to specific user
mentionUser string - Tweets mentioning user
hashtag string - Filter by hashtag (without #)
excludeReplies boolean false Exclude reply tweets
excludeRetweets boolean false Exclude retweets
minLikes integer 0 Minimum likes threshold
minRetweets integer 0 Minimum retweets threshold
minReplies integer 0 Minimum replies threshold
sinceDate string - Start date (YYYY-MM-DD)
untilDate string - End date (YYYY-MM-DD)
lang string - Language code (e.g. "en", "zh")
product string "Top" "Top" or "Latest"
maxResults integer 20 Max tweets (1-100)

5. Get Follower Events

Get new followers or unfollowers for a user.

# Get new followers
curl -s -X POST "https://ai.6551.io/open/twitter_follower_events" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk", "isFollow": true, "maxResults": 20}'

# Get unfollowers
curl -s -X POST "https://ai.6551.io/open/twitter_follower_events" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk", "isFollow": false, "maxResults": 20}'
Parameter Type Default Description
username string required Twitter username (without @)
isFollow boolean true true=new followers, false=unfollowers
maxResults integer 20 Max events (1-100)

6. Get Deleted Tweets

Get deleted tweets from a user.

curl -s -X POST "https://ai.6551.io/open/twitter_deleted_tweets" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk", "maxResults": 20}'
Parameter Type Default Description
username string required Twitter username (without @)
maxResults integer 20 Max tweets (1-100)

7. Get KOL Followers

Get which KOLs (Key Opinion Leaders) are following a user.

curl -s -X POST "https://ai.6551.io/open/twitter_kol_followers" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "elonmusk"}'
Parameter Type Default Description
username string required Twitter username (without @)

Data Structures

Twitter User

{
  "userId": "44196397",
  "screenName": "elonmusk",
  "name": "Elon Musk",
  "description": "...",
  "followersCount": 170000000,
  "friendsCount": 500,
  "statusesCount": 30000,
  "verified": true
}

Tweet

{
  "id": "1234567890",
  "text": "Tweet content...",
  "createdAt": "2024-02-20T12:00:00Z",
  "retweetCount": 1000,
  "favoriteCount": 5000,
  "replyCount": 200,
  "userScreenName": "elonmusk",
  "hashtags": ["crypto", "bitcoin"],
  "urls": [{"url": "https://..."}]
}

Common Workflows

Crypto Twitter KOL Tweets

curl -s -X POST "https://ai.6551.io/open/twitter_user_tweets" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"username": "VitalikButerin", "maxResults": 10}'

Trending Crypto Tweets

curl -s -X POST "https://ai.6551.io/open/twitter_search" \
  -H "Authorization: Bearer $TWITTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": "bitcoin", "minLikes": 1000, "product": "Top", "maxResults": 20}'

Notes

  • Get your API token at https://6551.io/mcp
  • Rate limits apply; max 100 results per request
  • Twitter usernames should not include the @ symbol
Usage Guidance
Install only if you trust the 6551 API provider. Use a revocable or scoped TWITTER_TOKEN if available, avoid submitting sensitive targets or searches you do not want processed by that service, and revoke the token when you no longer need the skill.
Capability Analysis
Type: OpenClaw Skill Name: opentwitter-2 Version: 0.1.0 The skill bundle is designed to interact with the '6551 API' for Twitter/X data, requiring a `TWITTER_TOKEN` environment variable for authentication. All `curl` commands in `SKILL.md` are directed to `https://ai.6551.io` endpoints, sending the token and JSON payloads consistent with the stated purpose. There is no evidence of data exfiltration to unauthorized destinations, arbitrary command execution, persistence mechanisms, or prompt injection attempts against the agent. The behavior is transparent and aligns with a standard API integration.
Capability Assessment
Purpose & Capability
The stated purpose is Twitter/X data access through the 6551 API, and the artifact only documents matching endpoints for profile lookup, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
Instruction Scope
The skill shows direct curl commands to https://ai.6551.io with user-supplied usernames, IDs, search terms, filters, and TWITTER_TOKEN; this is disclosed and user-invoked, though privacy warnings could be clearer.
Install Mechanism
Install metadata only requires curl and a TWITTER_TOKEN environment variable; the package contains SKILL.md and package.json with no executable scripts or hidden install behavior.
Credentials
Network access and a bearer token are proportionate for a third-party API integration, but users must trust 6551 with the token and query payloads.
Persistence & Privilege
No artifact evidence shows persistence, background workers, local file indexing, privilege escalation, destructive commands, or unrelated credential access.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install opentwitter-2
  3. After installation, invoke the skill by name or use /opentwitter-2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of the opentwitter skill for accessing Twitter/X data via the 6551 API. - Supports user profile lookup (by username or user ID). - Enables searching tweets with flexible filters (keywords, hashtags, users, language, date range). - Retrieve recent tweets, deleted tweets, follower events (follows/unfollows), and KOL followers. - Requires a Bearer token in the $TWITTER_TOKEN environment variable for all API requests.
Metadata
Slug opentwitter-2
Version 0.1.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Opentwitter?

Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers. It is an AI Agent Skill for Claude Code / OpenClaw, with 8509 downloads so far.

How do I install Opentwitter?

Run "/install opentwitter-2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Opentwitter free?

Yes, Opentwitter is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Opentwitter support?

Opentwitter is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).

Who created Opentwitter?

It is built and maintained by infra403 (@infra403); the current version is v0.1.0.

💬 Comments