← Back to Skills Marketplace
aisapay

AIsa Twitter API (Search + Post)

by AIsaPay · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
3285
Downloads
4
Stars
16
Active Installs
2
Versions
Install in OpenClaw
/install aisa-twitter-api
Description
Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the use...
README (SKILL.md)

OpenClaw Twitter 🐦

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

One API key. Full Twitter intelligence.

What Can You Do?

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 Intel

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

Posting Workflows

This file does not define publishing logic.

If the user asks to send, publish, or reply, or quote on X/Twitter, handle that workflow with ./references/post_twitter.md.

Quick Start

export AISA_API_KEY="your-key"

Core Capabilities

Read Operations (No Login Required)

User Endpoints

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

# Get user profile about (account country, verification, username changes)
curl "https://api.aisa.one/apis/v1/twitter/user_about?userName=elonmusk" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Batch get user info by IDs
curl "https://api.aisa.one/apis/v1/twitter/user/batch_info_by_ids?userIds=44196397,123456" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get user's latest tweets
curl "https://api.aisa.one/apis/v1/twitter/user/last_tweets?userName=elonmusk" \
  -H "Authorization: Bearer $AISA_API_KEY"

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

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

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

# Get user verified followers (requires user_id, not userName)
curl "https://api.aisa.one/apis/v1/twitter/user/verifiedFollowers?user_id=44196397" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Check follow relationship between two users
curl "https://api.aisa.one/apis/v1/twitter/user/check_follow_relationship?source_user_name=elonmusk&target_user_name=BillGates" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Search users by keyword
curl "https://api.aisa.one/apis/v1/twitter/user/search?query=AI+researcher" \
  -H "Authorization: Bearer $AISA_API_KEY"

Tweet Endpoints

# Advanced tweet search (queryType is required: Latest or Top)
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 tweets by IDs (comma-separated)
curl "https://api.aisa.one/apis/v1/twitter/tweets?tweet_ids=1895096451033985024" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get tweet replies
curl "https://api.aisa.one/apis/v1/twitter/tweet/replies?tweetId=1895096451033985024" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get tweet quotes
curl "https://api.aisa.one/apis/v1/twitter/tweet/quotes?tweetId=1895096451033985024" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get tweet retweeters
curl "https://api.aisa.one/apis/v1/twitter/tweet/retweeters?tweetId=1895096451033985024" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get tweet thread context (full conversation thread)
curl "https://api.aisa.one/apis/v1/twitter/tweet/thread_context?tweetId=1895096451033985024" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get article by tweet ID
curl "https://api.aisa.one/apis/v1/twitter/article?tweet_id=1895096451033985024" \
  -H "Authorization: Bearer $AISA_API_KEY"

Trends, Lists, Communities & Spaces

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

# Get list members
curl "https://api.aisa.one/apis/v1/twitter/list/members?list_id=1585430245762441216" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get list followers
curl "https://api.aisa.one/apis/v1/twitter/list/followers?list_id=1585430245762441216" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get community info
curl "https://api.aisa.one/apis/v1/twitter/community/info?community_id=1708485837274263614" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get community members
curl "https://api.aisa.one/apis/v1/twitter/community/members?community_id=1708485837274263614" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get community moderators
curl "https://api.aisa.one/apis/v1/twitter/community/moderators?community_id=1708485837274263614" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get community tweets
curl "https://api.aisa.one/apis/v1/twitter/community/tweets?community_id=1708485837274263614" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Search tweets from all communities
curl "https://api.aisa.one/apis/v1/twitter/community/get_tweets_from_all_community?query=AI" \
  -H "Authorization: Bearer $AISA_API_KEY"

# Get Space detail
curl "https://api.aisa.one/apis/v1/twitter/spaces/detail?space_id=1dRJZlbLkjexB" \
  -H "Authorization: Bearer $AISA_API_KEY"

Python Client

# User operations
python3 {baseDir}/scripts/twitter_client.py user-info --username elonmusk
python3 {baseDir}/scripts/twitter_client.py user-about --username elonmusk
python3 {baseDir}/scripts/twitter_client.py tweets --username elonmusk
python3 {baseDir}/scripts/twitter_client.py mentions --username elonmusk
python3 {baseDir}/scripts/twitter_client.py followers --username elonmusk
python3 {baseDir}/scripts/twitter_client.py followings --username elonmusk
python3 {baseDir}/scripts/twitter_client.py verified-followers --user-id 44196397
python3 {baseDir}/scripts/twitter_client.py check-follow --source elonmusk --target BillGates

# Search & discovery
python3 {baseDir}/scripts/twitter_client.py search --query "AI agents"
python3 {baseDir}/scripts/twitter_client.py search --query "AI agents" --type Top
python3 {baseDir}/scripts/twitter_client.py user-search --query "AI researcher"
python3 {baseDir}/scripts/twitter_client.py trends --woeid 1

# Tweet operations
python3 {baseDir}/scripts/twitter_client.py detail --tweet-ids 1895096451033985024
python3 {baseDir}/scripts/twitter_client.py replies --tweet-id 1895096451033985024
python3 {baseDir}/scripts/twitter_client.py quotes --tweet-id 1895096451033985024
python3 {baseDir}/scripts/twitter_client.py retweeters --tweet-id 1895096451033985024
python3 {baseDir}/scripts/twitter_client.py thread --tweet-id 1895096451033985024

# List operations
python3 {baseDir}/scripts/twitter_client.py list-members --list-id 1585430245762441216
python3 {baseDir}/scripts/twitter_client.py list-followers --list-id 1585430245762441216

# Community operations
python3 {baseDir}/scripts/twitter_client.py community-info --community-id 1708485837274263614
python3 {baseDir}/scripts/twitter_client.py community-members --community-id 1708485837274263614
python3 {baseDir}/scripts/twitter_client.py community-tweets --community-id 1708485837274263614
python3 {baseDir}/scripts/twitter_client.py community-search --query "AI"

API Endpoints Reference

Read Endpoints (GET)

Endpoint Description Key Params
/twitter/user/info Get user profile userName
/twitter/user_about Get user profile about userName
/twitter/user/batch_info_by_ids Batch get users by IDs userIds
/twitter/user/last_tweets Get user's recent tweets userName, cursor
/twitter/user/mentions Get user mentions userName, cursor
/twitter/user/followers Get user followers userName, cursor
/twitter/user/followings Get user followings userName, cursor
/twitter/user/verifiedFollowers Get verified followers user_id, cursor
/twitter/user/check_follow_relationship Check follow relationship source_user_name, target_user_name
/twitter/user/search Search users by keyword query, cursor
/twitter/tweet/advanced_search Advanced tweet search query, queryType (Latest/Top), cursor
/twitter/tweets Get tweets by IDs tweet_ids (comma-separated)
/twitter/tweet/replies Get tweet replies tweetId, cursor
/twitter/tweet/quotes Get tweet quotes tweetId, cursor
/twitter/tweet/retweeters Get tweet retweeters tweetId, cursor
/twitter/tweet/thread_context Get tweet thread context tweetId, cursor
/twitter/article Get article by tweet tweet_id
/twitter/trends Get trending topics woeid (1=worldwide)
/twitter/list/members Get list members list_id, cursor
/twitter/list/followers Get list followers list_id, cursor
/twitter/community/info Get community info community_id
/twitter/community/members Get community members community_id, cursor
/twitter/community/moderators Get community moderators community_id, cursor
/twitter/community/tweets Get community tweets community_id, cursor
/twitter/community/get_tweets_from_all_community Search all community tweets query, cursor
/twitter/spaces/detail Get Space detail space_id

Pricing

API Cost
Twitter read query ~$0.0004

Every response includes usage.cost and usage.credits_remaining.

Get Started

  1. Sign up at aisa.one
  2. Get your API key
  3. Add credits (pay-as-you-go)
  4. Set environment variable: export AISA_API_KEY="your-key"

Full API Reference

See API Reference for complete endpoint documentation.

Usage Guidance
This skill works by proxying all Twitter/X reads, OAuth flows, and media uploads through aisa.one. Before installing: (1) confirm you trust aisa.one and its privacy/security practices, because all tweets, follower data, OAuth approvals, and any workspace files you upload will be sent to that service; (2) understand AISA_API_KEY is the only declared credential but is sent in headers and sometimes in POST bodies—treat it like a secret and do not reuse it for other services; (3) note the SKILL homepage (openclaw.ai) does not match the relay domain (aisa.one) — ask the publisher to clarify ownership and privacy policy; (4) avoid uploading sensitive files or secrets via this skill unless you trust the relay; (5) if you need stronger assurances, review the included Python scripts locally, run them in a sandbox, or prefer a skill that integrates directly with the official Twitter API under your own credentials.
Capability Analysis
Type: OpenClaw Skill Name: aisa-twitter-api Version: 1.0.1 The skill bundle is a well-structured Twitter/X API wrapper for the AIsa service (aisa.one). It provides comprehensive read and write capabilities, including tweet searching, user analytics, and OAuth-based posting with media support. The Python scripts (twitter_client.py and twitter_oauth_client.py) use standard libraries to communicate with the official AIsa API endpoints and include robust logic for handling multi-chunk threaded posts. The documentation (SKILL.md and post_twitter.md) provides clear operational instructions and security guardrails for the AI agent, such as explicitly forbidding the collection of user passwords.
Capability Assessment
Purpose & Capability
Name/description (Twitter read + post) match the code and SKILL.md: the skill calls a relay API (api.aisa.one) to perform read operations and OAuth-based posting. Requiring AISA_API_KEY, curl, and python3 is consistent with this design. However, the homepage listed (openclaw.ai) differs from the relay domain (aisa.one), which is worth verifying.
Instruction Scope
Runtime instructions and code instruct the agent to (a) read local workspace file paths and upload them to the relay, (b) open OAuth approval links in the browser, and (c) post content on the user's behalf. The code also reads other env vars (TWITTER_RELAY_BASE_URL, TWITTER_RELAY_TIMEOUT) although only AISA_API_KEY is declared in metadata. Uploading local attachments and OAuth tokens to a remote relay is expected for this flow but is a privacy/exfiltration risk users must accept explicitly.
Install Mechanism
No install spec (instruction-only with included scripts). No downloads from arbitrary URLs; scripts are provided with the skill. Risk from install mechanism is low.
Credentials
Only AISA_API_KEY is declared and used as the primary credential, which is appropriate for a relay-based API. The code may also use TWITTER_RELAY_BASE_URL and TWITTER_RELAY_TIMEOUT (with defaults) but these are optional. One implementation detail: some POST requests explicitly add the API key to JSON bodies (body.setdefault('aisa_api_key', ...)), which increases the places the key is transmitted and could broaden leakage if the relay or intermediate logging is compromised.
Persistence & Privilege
always:false and user-invocable:true — the skill is not force-included and can be invoked by the agent normally; it does not request elevated platform privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install aisa-twitter-api
  3. After installation, invoke the skill by name or use /aisa-twitter-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
**Expanded X (Twitter) read API coverage and new OAuth-based posting workflow.** - Added OAuth-based post publishing: users can now publish tweets/replies safely after authenticating in their browser—no password sharing required. - Introduced `scripts/twitter_oauth_client.py` for OAuth-based posting support. - Expanded documentation coverage: added `README.md` and `references/post_twitter.md` for easier setup and posting guidance. - Updated references and client commands for new endpoints (profiles, mentions, tweet context, communities, Spaces, etc.). - Posting workflows now reference a separate guide rather than password-based login calls. - General docs structure improved for clarity and up-to-date endpoint support.
v1.0.0
Initial release of Twitter Command Center (Search + Post) skill. - Real-time Twitter/X search, including user lookup, tweet extraction, and trends. - Programmatic posting: tweet, reply, like, retweet, and profile updates (login required). - Social listening, influencer monitoring, and competitor tracking capabilities. - cURL and Python client examples for all endpoints. - Simple pay-per-use pricing and API key-based authentication.
Metadata
Slug aisa-twitter-api
Version 1.0.1
License MIT-0
All-time Installs 16
Active Installs 16
Total Versions 2
Frequently Asked Questions

What is AIsa Twitter API (Search + Post)?

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the use... It is an AI Agent Skill for Claude Code / OpenClaw, with 3285 downloads so far.

How do I install AIsa Twitter API (Search + Post)?

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

Is AIsa Twitter API (Search + Post) free?

Yes, AIsa Twitter API (Search + Post) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does AIsa Twitter API (Search + Post) support?

AIsa Twitter API (Search + Post) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created AIsa Twitter API (Search + Post)?

It is built and maintained by AIsaPay (@aisapay); the current version is v1.0.1.

💬 Comments