平台目录 / 社交媒体 / X(Twitter)

社交媒体

X(Twitter)数据接口

X(Twitter)已上线 6 个接口:帖子、回复、用户、搜索、趋势。只对返回了数据的成功调用计费;每个接口的参数、价格和完整返回示例见 API 参考。

接口列表 在 API 参考中查看 →

真实返回示例 完整示例 →

@5dd0…120.4万 粉丝

Breaking: platform updates API terms

4,021转发1.9万点赞922回复

here we go again

示例 · 原生页面样式
GET /v1/raw/x/post真实返回 · 节选
{
  "id": "soc_x_88c4e895916c",
  "src": "social",
  "platform": "x",
  "lang": "en",
  "text": "There's a lot of ground to cover when you're building a Moo…",
  "author": {
    "uid_hash": "99eae2f7b3d7",
    "followers": 92313359,
    "nickname": "NASA",
    "uid": "11348282",
    "unique_id": "NASA"
  },
  "metrics": {
    "likes": 3365,
    "comments": 230,
    "shares": 492,
    "quotes": 59,
    "saves": 179,
    "views": 519079
  },
  "extra": {
    "source_id": "2112560723603632217",
    "published_at": "2026-10-20T15:05:00+00:00",
    "content_type": "video",
    "cover_url": "https://pbs.twimg.com/media/HVFSyBvWAAE5Y1_.jpg",
    "video_dur_s": 46,
    "conversation_id": "2112560723603632217",
    "sensitive": false,
    "url": "https://x.com/NASA/status/2112560723603632217"
  },
  "prov": {
    "hash": "0x4e5629f2f5dedf8f",
    "ts": "2026-10-22T03:30:00+08:00",
    "source": "live"
  }
}

调用示例

curl -G https://api.qovia.ai/v1/raw/x/post \
  -H "Authorization: Bearer $QOVIA_KEY" \
  --data-urlencode "post_id=2112560723603632217"
import os, requests

resp = requests.get(
    "https://api.qovia.ai/v1/raw/x/post",
    headers={"Authorization": f"Bearer {os.environ['QOVIA_KEY']}"},
    params={"post_id": "2112560723603632217"},
)
print(resp.json()["data"])
// 加到任意支持 MCP 的 AI 工具,然后直接用自然语言提问
{
  "mcpServers": {
    "qovia": {
      "url": "https://api.qovia.ai/mcp",
      "headers": { "Authorization": "Bearer sk-qovia-…" }
    }
  }
}

社交媒体里的其他平台

你的 Agent 能看到什么,取决于你给它什么数据

把抖音、小红书、公众号和电商评价交给它:结构化,按次计费,失败不扣费。