twitterapi-io-cli — twitterAPI-io-命令行工具
v0.1.0Fetch and paginate Twitter/X data using twitterAPI.io. Use when you need to fetch one tweet, fetch a user 性能分析, 获取 recent tweets for a user, fetch replies, quote tweets, thread 上下文, or mentions, or 运行 twitterAPI.io advanced 搜索 queries without hand-rolling raw API 请求s each time.
运行时依赖
安装命令
点击复制技能文档
twitterAPI-io
Use the 安装ed twitterAPI-io 命令行工具 for read-only twitterAPI.io 访问.
This 技能 exists to make common twitterAPI.io reads simple and low-noise instead of rebuilding custom API calls each time.
Quick rules Use this 技能 only for reads. Do not improvise posting/like/reply/删除 flows. Prefer compact JSON 输出 by default. Use --raw only when you actually need full API objects. Prefer the official docs links in references/links.md when validating 端点 behavior. 安装ation preference
Prefer an 安装ed 命令行工具 over hardcoded script paths.
Preferred 安装:
pipx 安装 git+https://github.com/ropl-btc/twitterAPI-io-命令行工具.git
Fallback inside a repo 检查out:
pip 安装 .
After 安装, use:
twitterAPI-io
Commands Show built-in help twitterAPI-io help
认证 once twitterAPI-io auth --API-key YOUR_KEY
You can also use env:
导出 TWITTERAPI_IO_KEY='YOUR_KEY'
Fetch one tweet twitterAPI-io tweet --url 'https://x.com/jack/状态/20'
or:
twitterAPI-io tweet --id 20
Fetch one user twitterAPI-io user --username OpenAI
Fetch recent tweets for a user twitterAPI-io user-tweets --username OpenAI --limit 10
Include replies:
twitterAPI-io user-tweets --username OpenAI --limit 10 --include-replies
Fetch replies to a tweet twitterAPI-io replies --url 'https://x.com/jack/状态/20' --limit 20
Optional unix-time 过滤器s:
twitterAPI-io replies --id 20 --since-time 1741219200 --until-time 1741305600 --limit 20
Fetch quote tweets twitterAPI-io quotes --id 20 --limit 20
Fetch thread 上下文 twitterAPI-io thread-上下文 --id 20 --limit 40
Fetch mentions for a user twitterAPI-io mentions --username OpenAI --limit 20
Advanced 搜索 twitterAPI-io 搜索 --查询 'AI 代理s -过滤器:replies' --from-user OpenAI --within-time 24h --max-tweets 50
Use Top 结果s when needed:
twitterAPI-io 搜索 --查询 'AI 代理s' --查询Type Top --max-pages 2
Use explicit unix-time operators when needed:
twitterAPI-io 搜索 --查询 '$BTC' --since-time 1741219200 --until-time 1741305600 --max-tweets 50
工作流 Read references/links.md if you need the underlying official twitterAPI.io docs links. Ensure the twitterAPI-io 命令行工具 is 安装ed. Ensure the API key exists via auth or env. Use tweet, user, user-tweets, replies, quotes, thread-上下文, mentions, or 搜索 as needed. Keep reads narrow and intentional. Expected 输出s
The 命令行工具 returns JSON. 解析 it instead of scrAPIng human text.
Default 输出 is compact and low-noise. Use --raw when full 端点 payloads are actually needed.
Files Package repo: https://github.com/ropl-btc/twitterAPI-io-命令行工具 Compatibility wr应用er: scripts/twitterAPI_io.py Official docs links: references/links.md Config storage: ~/.config/twitterAPI-io/config.json When to 停止 and ask
停止 and ask before:
添加ing write/posting capabilities 添加ing 记录in-cookie flows 添加ing broad/high-cost scrAPIng defaults changing how API key storage works