API 参考总览
Twidata 对外提供与常见 Twitter Data API 一致的 REST 路径。请求经本平台鉴权、计费后转发上游。
Base URL
https://twidata.wvovw.com
完整 URL 形如:{BASE}/twitter/...
公共约定
- Header:
Authorization: Bearer <API_KEY>+Accept: application/json - 大整数 ID(用户 / 推文)请用 字符串(
id_str) - 列表接口一页约 20 条,用
next_cursor→ 下次cursor翻页 - 计费按成功返回条数(默认 1 条 = 1 点);空结果不扣
- 余额不足:
402;鉴权失败:401
端点一览
搜索
| 方法 | 路径 | 文档 |
|---|---|---|
| GET | /twitter/search | 搜索推文 |
用户
| 方法 | 路径 | 文档 |
|---|---|---|
| GET | /twitter/user/{username_or_id} | 用户资料 |
| POST | /twitter/users-by-ids | 用户资料#批量按-id |
| POST | /twitter/users-by-usernames | 用户资料#批量按用户名 |
| GET | /twitter/user/{user_id}/tweets | 用户推文 |
| GET | /twitter/user/{user_id}/tweets-and-replies | 用户推文 |
| GET | /twitter/user/{user_id}/followers | 粉丝与关注 |
| GET | /twitter/user/{user_id}/following | 粉丝与关注 |
| GET | /twitter/user/{user_id}/verified-followers | 粉丝与关注 |
| GET | /twitter/user/{username}/mentions | 粉丝与关注 |
推文
| 方法 | 路径 | 文档 |
|---|---|---|
| GET | /twitter/tweets/{id} | 获取推文 |
| POST | /twitter/tweets-by-ids | 获取推文#批量按-id |
| GET | /twitter/tweets/{id}/comments | 获取推文 |
| GET | /twitter/tweets/{id}/quotes | 获取推文 |
| GET | /twitter/tweets/{id}/retweeters | 获取推文 |
| GET | /twitter/thread/{thread_id} | 获取推文 |