← 返回
数据分析 Key 中文

readx

Twitter/X intelligence toolkit: analyze users, tweets, trends, communities, and networks
Twitter/X情报工具包:分析用户、推文、趋势、社群及网络
wxtsky
数据分析 clawhub v1.1.4 1 版本 99851.3 Key: 需要
★ 1
Stars
📥 1,323
下载
💾 21
安装
1
版本
#latest

概述

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=

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":""}
  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:

| Operator | Example | What it does |

|----------|---------|-------------|

| from: | from:elonmusk AI | Tweets from a specific user |

| to: | to:OpenAI | Replies to a specific user |

| @ | @anthropic | Tweets mentioning a user |

| "exact phrase" | "artificial intelligence" | Exact phrase match |

| OR | AI OR ML | Either keyword |

| - | AI -crypto | Exclude keyword |

| min_faves: | AI min_faves:1000 | Minimum likes |

| min_retweets: | AI min_retweets:500 | Minimum retweets |

| filter:links | AI filter:links | Only tweets with links |

| filter:media | AI filter:media | Only tweets with images/video |

| filter:images | AI filter:images | Only tweets with images |

| filter:videos | AI filter:videos | Only tweets with video |

| lang: | AI lang:zh | Filter by language |

| since: / until: | AI since:2025-01-01 | Date range |

| list: | list:12345 AI | Search within a specific list |

| near: | AI near:Tokyo | Tweets 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

| Error | Cause | Solution |

|-------|-------|----------|

| 401 | Invalid or missing API key | Check credentials file / env var, ask user to verify key at https://readx.cc |

| 403 | Insufficient credits or account disabled | Check balance with get_credit_balance; if zero, ask user to get more credits at https://readx.cc |

| 429 | Rate limit exceeded | Wait and retry, reduce request frequency |

| 404 | User/tweet not found or deleted | Skip gracefully, note the item is unavailable |

| 500 / 502 | Upstream API error | Retry once after a few seconds, if persistent inform user |

| Connection refused | Remote MCP server unreachable | Switch to Direct API Mode; if persistent, the readx.cc service may be down |

| Empty response | Protected account or no data | Note limitations, analyze only available public data |


Data Limitations

Be transparent about these constraints:

| Limitation | Impact | Mitigation |

|-----------|--------|------------|

| Follower/following lists return a sample (~20 by default) | Audience analysis is approximate | Cross-reference with multiple data points; use count param for larger samples |

| Tweet timelines return ~20 per page | Single call shows recent posts only | Use cursor pagination to fetch more pages; pass next_cursor from response as cursor param |

| No historical follower count data | Cannot measure follower growth over time | Infer from account age + current count for rough growth rate |

| Search results are limited in quantity | Topic monitoring may miss long-tail content | Use multiple search queries with different operators |

| Engagement data is point-in-time | Tweet engagement continues to accrue after fetching | Note when data was fetched; older tweets have more stable metrics |

版本历史

共 1 个版本

  • v1.1.4 当前
    2026-03-29 05:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,983
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,142
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,509