← 返回
未分类 Key 中文

TwtAPI

Access live Twitter/X data through TwtAPI's hosted public skill gateway. Search tweets, look up users, read timelines, inspect followers and following, fetch...
通过 TwtAPI 公共技能网关访问实时 Twitter/X 数据,支持搜索推文、查询用户、读取时间线、检查关注者及关注对象、获取...
tonygjj tonygjj 来源
未分类 clawhub v1.2.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 393
下载
💾 1
安装
1
版本
#latest

概述

TwtAPI - Twitter/X Data

Access live Twitter/X data through TwtAPI's hosted skill gateway. Search tweets, look up users, read timelines, browse followers, and check trends with structured JSON built for AI agents. Get your skill key at https://www.twtapi.com/en/.

Setup

  1. Install the public skill:
clawhub install twtapi
  1. Sign up and open the Skill tab in your TwtAPI dashboard.
  2. Copy your dedicated skill_key.
  3. Set the required environment variable:
export TWTAPI_SKILL_KEY="tsk-your-skill-key"

The public hosted gateway https://skill.twtapi.com is built in by default, so most users do not need to set a base URL.

If you are overriding the gateway for a self-hosted or custom deployment, you can optionally set:

export TWTAPI_SKILL_BASE_URL="https://your-skill-host.example.com"

If you use OpenClaw, you can also set skills."twtapi".env.TWTAPI_SKILL_KEY in ~/.openclaw/openclaw.json. Other compatible skill runners only need an equivalent way to inject TWTAPI_SKILL_KEY.

Verify the skill connection

Run this first after setup:

python3 {baseDir}/scripts/twtapi.py tools

If auth and routing are correct, you should get a JSON list of available skill tools.

Usage

Search tweets

python3 {baseDir}/scripts/twtapi.py search "AI agents"
python3 {baseDir}/scripts/twtapi.py search "#bitcoin" --type Top --count 10
python3 {baseDir}/scripts/twtapi.py search "from:elonmusk" --cursor "scroll_xxx"

Look up a user profile

python3 {baseDir}/scripts/twtapi.py user elonmusk
python3 {baseDir}/scripts/twtapi.py user-by-id 44196397

Get user tweets / replies / media

Requires a numeric user ID. Look up the user first if you only have a username.

python3 {baseDir}/scripts/twtapi.py tweets 44196397
python3 {baseDir}/scripts/twtapi.py tweets 44196397 --count 5
python3 {baseDir}/scripts/twtapi.py replies 44196397
python3 {baseDir}/scripts/twtapi.py media 44196397

Get a single tweet by ID

python3 {baseDir}/scripts/twtapi.py tweet 1897023456789012345

List followers / following

python3 {baseDir}/scripts/twtapi.py followers 44196397 --count 50
python3 {baseDir}/scripts/twtapi.py following 44196397

Get trending topics

python3 {baseDir}/scripts/twtapi.py trending

Workflow tips

  • Username → user ID: run user first, then use the rest_id from the result for tweets, followers, etc.
  • Pagination: most list commands accept --cursor for the next page. The cursor value is included in the response when more results are available.
  • Search operators: the search command supports Twitter search syntax — from:handle, to:handle, #hashtag, lang:en, date ranges, etc.

Notes

  • This skill uses TwtAPI's hosted public gateway plus your dedicated skill_key, not your main API key.
  • The hosted gateway is built in. Most end users only need TWTAPI_SKILL_KEY.
  • Each API call consumes credits from your TwtAPI account.
  • Returns raw Twitter JSON from the TwtAPI skill backend. Present results in a readable format with post content, author names, metrics, and timestamps.
  • Rate limits and credit balance are managed by your plan.

版本历史

共 1 个版本

  • v1.2.0 当前
    2026-03-31 18:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Watcher

robin797860
管理和监控个人股票自选列表,支持利用同花顺数据添加、删除、列出股票及汇总近期表现。适用于用户希望追踪特定股票、获取表现汇总或管理自选列表时。
★ 112 📥 46,623
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,770
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,758