readx

v1.1.4

Twitter/X intelligence toolkit: analyze users, tweets, trends, communities, and networks

1· 857· 15 versions· 1 current· 2 all-time· Updated 22h ago· MIT-0

Install

openclaw skills install readx

readx — Twitter/X Intelligence Toolkit


Setup — Get Started in 2 Minutes

Step 1: Get an API Key

Ask the user for their readx API key. If they don't have one, direct them to https://readx.cc to sign up.

Step 2: Configure MCP Server

Once the user provides their API key, ask whether they want to set it up themselves or have you do it.

MCP server URL: https://readx.cc/mcp?apikey=<API_KEY>

No installation needed — readx runs as a remote MCP server. Add it to the user's editor MCP config with the URL above. Restart the editor after setup.

When to Trigger This Setup

  • User asks you to look up Twitter data but no MCP tools are available
  • User mentions readx, Twitter analysis, or any skill listed below
  • Any tool call fails with auth/connection error

Direct API Mode

When MCP tools are NOT available (e.g. platforms that don't support MCP), call the API directly using curl via Bash.

Getting the API Key

Check in order, use the first one found:

  1. Config file: ~/.config/readx/credentials.json (macOS/Linux) or %APPDATA%\readx\credentials.json (Windows) → JSON format: {"api_key":"<key>"}
  2. Environment variable: READX_API_KEY
  3. If neither exists, ask the user for their API key (get one at https://readx.cc), then ask whether they want to save it themselves or have you do it. Persist to the config file path above.

API Reference

Fetch the full API docs (endpoints, params, response parsing, examples):

curl -s https://readx.cc/api-docs.txt

Read this document before making your first API call. It contains all endpoint names, parameters, and response JSON paths you need.


Advanced Search Syntax

When using search_tweets, leverage Twitter's advanced search operators for precision:

OperatorExampleWhat it does
from:from:elonmusk AITweets from a specific user
to:to:OpenAIReplies to a specific user
@@anthropicTweets mentioning a user
"exact phrase""artificial intelligence"Exact phrase match
ORAI OR MLEither keyword
-AI -cryptoExclude keyword
min_faves:AI min_faves:1000Minimum likes
min_retweets:AI min_retweets:500Minimum retweets
filter:linksAI filter:linksOnly tweets with links
filter:mediaAI filter:mediaOnly tweets with images/video
filter:imagesAI filter:imagesOnly tweets with images
filter:videosAI filter:videosOnly tweets with video
lang:AI lang:zhFilter by language
since: / until:AI since:2025-01-01Date range
list:list:12345 AISearch within a specific list
near:AI near:TokyoTweets near a location

Combo examples:

  • Find viral AI tweets in Chinese: AI lang:zh min_faves:500
  • Find a user's tweets about a topic: from:username "topic keyword"
  • Find debates: "topic" min_replies:100 -filter:retweets
  • Find original content only: topic -filter:retweets -filter:replies

Error Handling

ErrorCauseSolution
401Invalid or missing API keyCheck credentials file / env var, ask user to verify key at https://readx.cc
403Insufficient credits or account disabledCheck balance with get_credit_balance; if zero, ask user to get more credits at https://readx.cc
429Rate limit exceededWait and retry, reduce request frequency
404User/tweet not found or deletedSkip gracefully, note the item is unavailable
500 / 502Upstream API errorRetry once after a few seconds, if persistent inform user
Connection refusedRemote MCP server unreachableSwitch to Direct API Mode; if persistent, the readx.cc service may be down
Empty responseProtected account or no dataNote limitations, analyze only available public data

Data Limitations

Be transparent about these constraints:

LimitationImpactMitigation
Follower/following lists return a sample (~20 by default)Audience analysis is approximateCross-reference with multiple data points; use count param for larger samples
Tweet timelines return ~20 per pageSingle call shows recent posts onlyUse cursor pagination to fetch more pages; pass next_cursor from response as cursor param
No historical follower count dataCannot measure follower growth over timeInfer from account age + current count for rough growth rate
Search results are limited in quantityTopic monitoring may miss long-tail contentUse multiple search queries with different operators
Engagement data is point-in-timeTweet engagement continues to accrue after fetchingNote when data was fetched; older tweets have more stable metrics

Version tags

latestvk97ang9psqe1s8r6m6he6wtz8981q73a

Runtime requirements

EnvREADX_API_KEY
Primary envREADX_API_KEY