← 返回 Skills 市场
renning22

Production-ready Twitter/X data and automation for autonomous agents

作者 Ning Ren · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1043
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install asia-twitter-api-v1
功能描述
Search X (Twitter) in real time, monitor trends, extract posts, and analyze social media data—perfect for social listening and intelligence gathering. Safe read-only operations by default.
使用说明 (SKILL.md)

OpenClaw Twitter 🐦

Twitter/X data access and automation for autonomous agents. Powered by AIsa.

One API key. Full Twitter intelligence.


⚠️ IMPORTANT SECURITY NOTICE

This skill provides two types of operations:

✅ Read Operations (SAFE - Recommended for Most Users)

  • User profiles, tweets, search, trends, followers
  • No authentication required
  • No credentials transmitted
  • Safe for production use

⚠️ Write Operations (HIGH RISK - Use Only with Dedicated Accounts)

  • Posting, liking, retweeting
  • Requires transmitting email + password + proxy to third-party API
  • Security Risk: Full account access granted to api.aisa.one

⚠️ CRITICAL: Never use write operations with your primary Twitter account. Create dedicated automation accounts only.


🔥 What Can You Do? (Safe Read Operations)

Monitor Influencers

"Get Elon Musk's latest tweets and notify me of any AI-related posts"

Track Trends

"What's trending on Twitter worldwide right now?"

Social Listening

"Search for tweets mentioning our product and analyze sentiment"

Competitor Intelligence

"Monitor @anthropic and @GoogleAI - alert me on new announcements"

User Research

"Find AI researchers in the Bay Area and show their recent work"

Quick Start

export AISA_API_KEY="your-key"

Get your API key at aisa.one


Core Capabilities

✅ Read Operations (No Login Required - Safe)

All read operations are safe and require only your AIsa API key. No Twitter credentials needed.

Get User Information

curl "https://api.aisa.one/apis/v1/twitter/user/info?userName=elonmusk" \
  -H "Authorization: Bearer $AISA_API_KEY"

Get User's Latest Tweets

curl "https://api.aisa.one/apis/v1/twitter/user/user_last_tweet?userName=elonmusk" \
  -H "Authorization: Bearer $AISA_API_KEY"

Search Tweets (Advanced)

Important: queryType parameter is required (Latest or Top)

# Search latest tweets
curl "https://api.aisa.one/apis/v1/twitter/tweet/advanced_search?query=AI+agents&queryType=Latest" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Search top tweets
curl "https://api.aisa.one/apis/v1/twitter/tweet/advanced_search?query=AI+agents&queryType=Top" \
  -H "Authorization: Bearer $AISA_API_KEY"

Get Trending Topics

# Worldwide trends (woeid=1)
curl "https://api.aisa.one/apis/v1/twitter/trends?woeid=1" \
  -H "Authorization: Bearer $AISA_API_KEY"

Search Users

curl "https://api.aisa.one/apis/v1/twitter/user/search_user?keyword=AI+researcher" \
  -H "Authorization: Bearer $AISA_API_KEY"

Get Tweet Details by ID

curl "https://api.aisa.one/apis/v1/twitter/tweet/tweetById?tweet_ids=123456789" \
  -H "Authorization: Bearer $AISA_API_KEY"

Get User Followers

curl "https://api.aisa.one/apis/v1/twitter/user/user_followers?userName=elonmusk" \
  -H "Authorization: Bearer $AISA_API_KEY"

Get User Followings

curl "https://api.aisa.one/apis/v1/twitter/user/user_followings?userName=elonmusk" \
  -H "Authorization: Bearer $AISA_API_KEY"

⚠️ Write Operations (High Risk - Requires Authentication)

🚨 CRITICAL SECURITY WARNING

Write operations require you to:

  1. Send your Twitter email, password, and proxy credentials to api.aisa.one
  2. Trust a third-party service with full account access
  3. Accept responsibility for account security

NEVER use these operations with:

  • ❌ Your primary Twitter account
  • ❌ Accounts with sensitive data
  • ❌ Verified or high-value accounts
  • ❌ Accounts you cannot afford to lose

ONLY use with:

  • ✅ Dedicated test/automation accounts
  • ✅ Unique passwords not used elsewhere
  • ✅ Accounts created specifically for this purpose
  • ✅ After reviewing AIsa's security policies

You acknowledge and accept all risks by using write operations.


Write Operations API Reference

⚠️ Warning: All write operations require prior authentication via login endpoint.

Step 1: Account Login (Async Operation)

curl -X POST "https://api.aisa.one/apis/v1/twitter/user_login_v3" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_name": "test_automation_account",
    "email": "[email protected]",
    "password": "unique_password_here",
    "proxy": "http://user:pass@proxy-ip:port"
  }'

Login is asynchronous - check status after submission.

Step 2: Check Login Status

curl "https://api.aisa.one/apis/v1/twitter/get_my_x_account_detail_v3?user_name=test_automation_account" \
  -H "Authorization: Bearer $AISA_API_KEY"

Post a Tweet

curl -X POST "https://api.aisa.one/apis/v1/twitter/send_tweet_v3" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_name": "test_automation_account",
    "text": "Hello from OpenClaw!"
  }'

Like a Tweet

curl -X POST "https://api.aisa.one/apis/v1/twitter/like_tweet_v3" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_name": "test_automation_account",
    "tweet_id": "1234567890"
  }'

Retweet

curl -X POST "https://api.aisa.one/apis/v1/twitter/retweet_v3" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_name": "test_automation_account",
    "tweet_id": "1234567890"
  }'

Update Profile

curl -X POST "https://api.aisa.one/apis/v1/twitter/update_profile_v3" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_name": "test_automation_account",
    "name": "New Name",
    "bio": "New bio"
  }'

Python Client

Safe Read Operations

# User operations (safe)
python3 {baseDir}/scripts/twitter_client.py user-info --username elonmusk
python3 {baseDir}/scripts/twitter_client.py tweets --username elonmusk
python3 {baseDir}/scripts/twitter_client.py followers --username elonmusk
python3 {baseDir}/scripts/twitter_client.py followings --username elonmusk

# Search & Discovery (safe)
python3 {baseDir}/scripts/twitter_client.py search --query "AI agents"
python3 {baseDir}/scripts/twitter_client.py user-search --keyword "AI researcher"
python3 {baseDir}/scripts/twitter_client.py trends --woeid 1

⚠️ Write Operations (High Risk)

Only use with dedicated test accounts:

# Login (use test account only!)
python3 {baseDir}/scripts/twitter_client.py login \
  --username test_automation_account \
  --email [email protected] \
  --password unique_password \
  --proxy "http://user:pass@ip:port"

# Check account status
python3 {baseDir}/scripts/twitter_client.py account --username test_automation_account

# Post operations (after login)
python3 {baseDir}/scripts/twitter_client.py post \
  --username test_automation_account \
  --text "Test post"

python3 {baseDir}/scripts/twitter_client.py like \
  --username test_automation_account \
  --tweet-id 1234567890

python3 {baseDir}/scripts/twitter_client.py retweet \
  --username test_automation_account \
  --tweet-id 1234567890

API Endpoints Reference

Read Operations (Safe)

Endpoint Method Description
/twitter/user/info GET Get user profile
/twitter/user/user_last_tweet GET Get user's recent tweets
/twitter/user/user_followers GET Get user followers
/twitter/user/user_followings GET Get user followings
/twitter/user/search_user GET Search users by keyword
/twitter/tweet/advanced_search GET Advanced tweet search
/twitter/tweet/tweetById GET Get tweets by IDs
/twitter/trends GET Get trending topics

Write Operations (⚠️ High Risk)

Endpoint Method Description
/twitter/user_login_v3 POST Login to account ⚠️
/twitter/send_tweet_v3 POST Send a tweet ⚠️
/twitter/like_tweet_v3 POST Like a tweet ⚠️
/twitter/retweet_v3 POST Retweet ⚠️

Pricing

Operation Cost per Request
Read operations ~$0.0004
Write operations ~$0.001

Every API response includes usage.cost and usage.credits_remaining fields.


Getting Started

Step 1: Get API Key

Sign up at aisa.one and obtain your API key.

Step 2: Add Credits

AIsa uses pay-as-you-go pricing. Add credits to your account.

Step 3: Set Environment Variable

export AISA_API_KEY="your-key-here"

Step 4: Start with Read Operations

Begin with safe read operations to familiarize yourself with the API.

Only proceed to write operations if you have a specific need and dedicated test account.


Security Best Practices

  1. Default to read-only - Most use cases don't need write access
  2. Separate accounts - Never mix automation with personal accounts
  3. Unique credentials - Use unique passwords for automation accounts
  4. Environment variables - Never hardcode credentials in scripts
  5. Monitor activity - Regularly check your AIsa dashboard
  6. Rotate keys - Periodically rotate API keys
  7. Minimal permissions - Only use write operations when absolutely necessary
  8. Test thoroughly - Always test with test accounts first
  9. Review ToS - Understand both Twitter and AIsa terms of service
  10. Have a backup plan - Be prepared for account suspension

Documentation


Support

  • API Issues: Contact AIsa support at aisa.one
  • Skill Issues: Open issue on GitHub
  • Security Concerns: Review AIsa security documentation

Disclaimer

This skill facilitates access to Twitter data through AIsa's API. Write operations require transmitting credentials to a third-party service. Users assume all responsibility and risk. The authors and AIsa are not liable for account suspension, data loss, or security breaches. Use at your own risk.

安全使用建议
This package appears to do what it claims: use the AIsa API to fetch Twitter/X data, with read operations treated as safe and write operations explicitly labeled high-risk. Before installing or using it: (1) prefer read-only features — they only require the AISA_API_KEY; (2) never supply your primary Twitter account credentials to the tool or to api.aisa.one — if you must use write features, create a dedicated test/automation account with a unique password and accept the risk of account loss or suspension; (3) review the included twitter_client.py source and runtime warnings yourself to ensure the code behaves as documented; (4) verify the legitimacy and security posture of api.aisa.one (TLS, privacy policy, reputation) before sending credentials; (5) consider network controls (isolated environment, proxy, monitoring) if you will test write operations; and (6) because the agent can invoke this skill autonomously, restrict automatic use of write operations (require explicit user confirmation) to avoid accidental credential transmission.
功能分析
Type: OpenClaw Skill Name: asia-twitter-api-v1 Version: 1.0.0 The skill is classified as 'suspicious' due to its core functionality involving the transmission of Twitter account credentials (email, password, proxy) to a third-party API (api.aisa.one) for 'write operations' (login, post, like, retweet). This introduces a significant trust dependency and inherent security risk, as explicitly highlighted by the extensive security warnings throughout the `SKILL.md`, `README.md`, `twitter_client.py`, and dedicated `SECURITY.md` files. While this behavior is risky, there is no evidence of malicious intent; rather, the package goes to great lengths to transparently disclose these risks, classify operations as 'HIGH RISK', and provide comprehensive best practices and warnings to the user, including runtime warnings in `twitter_client.py` before credential transmission. The `cleanup.sh` script performs package hygiene and checks for potential secrets within the package itself, but does not exfiltrate data. The documentation (especially `SKILL.md`) does not contain any prompt injection attempts to subvert the AI agent for malicious purposes, instead focusing on user education and risk mitigation.
能力评估
Purpose & Capability
Name/description, required binaries (curl, python3), and the single required env var (AISA_API_KEY) all align with a client that calls the AIsa API for Twitter data. The included python client and curl examples point at api.aisa.one, which matches the documented provider.
Instruction Scope
SKILL.md and code focus primarily on read-only operations and provide concrete curl/python examples. However, the instructions explicitly include write operations that require sending Twitter credentials (email+password) and proxy info to https://api.aisa.one. Those write steps are clearly documented and repeatedly warned as high-risk — this is scope-consistent for an automation feature but represents a significant security/operational risk that users must opt into knowingly.
Install Mechanism
No install spec or external downloads are declared; code is bundled with the skill. That minimizes installer attack surface. There are no suspicious remote install URLs or archive extraction steps in the manifest.
Credentials
The skill only requires one environment variable (AISA_API_KEY), which is appropriate for an API-backed client. It does not demand unrelated system credentials. That said, write operations require explicit Twitter credentials to be provided (via API call payload, not as declared env vars), which is high-risk but documented rather than hidden.
Persistence & Privilege
The skill does not request always: true and does not declare system-level config changes. disable-model-invocation is false (normal) so the skill can be invoked autonomously — combine that with the documented write capability only if you intentionally allow it.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install asia-twitter-api-v1
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /asia-twitter-api-v1 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Twitter Command Center (Search + Monitor): - Provides real-time Twitter/X search, trend monitoring, post extraction, and social media data analysis. - Emphasizes safe, read-only operations with no need for Twitter login or credentials. - Allows advanced user, tweet, trend, and follower queries via API or Python client using only an API key. - Write operations (posting, liking, etc.) are supported, but carry high security risk and require sending credentials to a third-party. - Strong security warnings: write operations are for dedicated automation accounts only—never use with primary accounts. - Detailed usage instructions and code examples included for both read and write operations.
元数据
Slug asia-twitter-api-v1
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Production-ready Twitter/X data and automation for autonomous agents 是什么?

Search X (Twitter) in real time, monitor trends, extract posts, and analyze social media data—perfect for social listening and intelligence gathering. Safe read-only operations by default. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1043 次。

如何安装 Production-ready Twitter/X data and automation for autonomous agents?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install asia-twitter-api-v1」即可一键安装,无需额外配置。

Production-ready Twitter/X data and automation for autonomous agents 是免费的吗?

是的,Production-ready Twitter/X data and automation for autonomous agents 完全免费(开源免费),可自由下载、安装和使用。

Production-ready Twitter/X data and automation for autonomous agents 支持哪些平台?

Production-ready Twitter/X data and automation for autonomous agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Production-ready Twitter/X data and automation for autonomous agents?

由 Ning Ren(@renning22)开发并维护,当前版本 v1.0.0。

💬 留言讨论