读写 Twitter 数据
- 认证方式
- OAuth
- HTTPS
- Yes
- CORS
- No
- 分类
- 社交
简介
Twitter API v2——基于 OAuth 2.0(缺少 token 返回 401,已实测)。
快速开始
Me(需要 OAuth):
curl "https://api.twitter.com/2/users/me" \
-H "Authorization: Bearer YOUR_TOKEN"
认证方式
- Twitter 开发者应用 → OAuth 2.0(或 1.0a)凭据。
- 通过
Authorization: Bearer发送(缺失 → 401,已实测)。
速率限制与注意事项
- 免费层带限额(看文档);付费档可扩展。
- 推文、时间线、用户。
常见问题
Twitter 免费吗? 免费层带限额;更多需要付费。
为什么 401? 需要 OAuth token(已实测)。
认证风格是什么? OAuth 2.0 Bearer。
社交 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 4chan Simple image-based bulletin board dedicated to a variety of topics | No auth | Yes | Yes | ↗ |
| Ayrshare Social media APIs to post, get analytics, and manage multiple users social media accounts | API Key | Yes | Yes | ↗ |
| aztro Daily horoscope info for yesterday, today, and tomorrow | No auth | Yes | Unknown | ↗ |
| Blogger The Blogger APIs allows client applications to view and update Blogger content | OAuth | Yes | Unknown | ↗ |
| Bluesky Decentralized social networking via the AT protocol | No auth | Yes | Yes | ↗ |