01
注册账户
免费注册后进入控制台。
API Docs
HTTPS + JSON,按次计费,失败不扣费。Base URL:https://www.xmedi.cn/api/v1。机器可读契约: openapi.json。 API 参考与在线调试
X-XMEDI-Key: xm_live_…(也可用 ?key= 或请求体 key 字段)。Key 只放在服务端,不要写进前端或公开仓库。code = 0 才扣费;参数错误、平台取数失败、超时均不扣费。meta 带 request_id、本次扣费 cost_fen(分)与余额 balance_fen。排查问题时请提供 request_id。meta 另带数据血缘:observation_id 观测编号、observed_at 观测时间(UTC)、basis 取数方式(collected 本次实时获取,reused 复用近期同参数结果,held 来自已存数据)、contract_rev 字段契约版本、origin 固定为 xmedi.cn。编号用于同一次观测去重。新鲜度看 observed_at,且只在 basis 为 reused 时是第一次采集的时刻。curl -X POST https://www.xmedi.cn/api/v1/wechat/search/articles \
-H "X-XMEDI-Key: xm_live_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"keyword":"品牌名"}'{
"code": 0,
"message": "ok",
"data": { "items": [ ... ] },
"meta": {
"request_id": "0b6f…",
"cost_fen": 15,
"balance_fen": 9985,
"observation_id": "01JCX7Q2M4T8K3N5P6R9S0V1WZ",
"observed_at": "2026-11-11T08:30:12.345Z",
"basis": "collected",
"contract_rev": 1,
"origin": "xmedi.cn"
}
}/wechat/search/accounts/wechat/search/articles/wechat/search/mixed/wechat/search/videos/wechat/accounts/channels/wechat/accounts/posts/list/wechat/accounts/posts/today/wechat/accounts/profile/wechat/articles/comments/wechat/articles/detail/wechat/articles/detail-pro/wechat/articles/html/wechat/articles/metrics/wechat/articles/metrics/pro/wechat/articles/video-link/wechat/channels/collections/wechat/channels/collections/videos/wechat/channels/feeds/comments/wechat/channels/feeds/list/wechat/channels/feeds/convert-id/wechat/channels/feeds/download/wechat/channels/feeds/metrics/wechat/channels/feeds/search/wechat/channels/feeds/short-link/wechat/channels/feeds/title/wechat/channels/ids/resolve/wechat/channels/live-replays/wechat/channels/principal/wechat/channels/profile/wechat/channels/resolve/wechat/channels/feeds/sub-comments/douyin/hot/search/douyin/ids/resolve/douyin/music/detail/douyin/search/music/douyin/search/suggestions/douyin/search/topics/douyin/search/users/douyin/search/videos/douyin/topics/detail/douyin/topics/videos/douyin/users/creator-metrics/douyin/users/posts/douyin/users/profile/douyin/videos/comments/douyin/videos/danmaku/douyin/videos/detail/douyin/videos/detail-pro/douyin/videos/download/douyin/videos/metrics/douyin/videos/related/douyin/videos/short-link/douyin/videos/sub-comments/xhs/ids/resolve/xhs/notes/comments/xhs/notes/detail/xhs/notes/media/download/xhs/notes/search/xhs/notes/sub-comments/xhs/search/suggestions/xhs/search/users/xhs/topics/list/xhs/topics/notes/xhs/users/notes/xhs/users/profile/kuaishou/hot/board/kuaishou/ids/resolve/kuaishou/search/users/kuaishou/search/videos/kuaishou/users/posts/kuaishou/users/profile/kuaishou/videos/comments/kuaishou/videos/detail/kuaishou/videos/download/kuaishou/videos/short-link/kuaishou/videos/sub-comments/weibo/hot/board/weibo/hot/search/weibo/posts/comments/weibo/posts/detail/weibo/posts/media/download/weibo/posts/sub-comments/weibo/search/posts/weibo/search/suggestions/weibo/search/users/weibo/search/videos/weibo/topics/detail/weibo/topics/stats/weibo/users/followers/weibo/users/following/weibo/users/posts/weibo/users/profile/weibo/users/videos/bilibili/hot/search/bilibili/popular/list/bilibili/search/users/bilibili/search/videos/bilibili/users/posts/bilibili/users/profile/bilibili/videos/comments/bilibili/videos/danmaku/bilibili/videos/detail/bilibili/videos/download/bilibili/videos/sub-comments/bilibili/videos/transcript/tiktok/hot/search/tiktok/search/music/tiktok/search/topics/tiktok/search/users/tiktok/search/videos/tiktok/topics/detail/tiktok/topics/videos/tiktok/users/followers/tiktok/users/following/tiktok/users/posts/tiktok/users/profile/tiktok/users/similar/tiktok/videos/comments/tiktok/videos/detail/tiktok/videos/download/tiktok/videos/metrics/tiktok/videos/sub-comments/youtube/channels/posts/youtube/channels/profile/youtube/channels/shorts/youtube/channels/streams/youtube/channels/videos/youtube/search/channels/youtube/search/shorts/youtube/search/suggestions/youtube/search/videos/youtube/videos/comments/youtube/videos/detail/youtube/videos/download/youtube/videos/related/youtube/videos/sub-comments/youtube/videos/transcript/instagram/posts/comments/instagram/posts/detail/instagram/posts/media/download/instagram/posts/sub-comments/instagram/search/locations/instagram/search/music/instagram/search/posts/instagram/search/reels/instagram/search/users/instagram/topics/search/instagram/users/followers/instagram/users/following/instagram/users/posts/instagram/users/profile/instagram/users/reels/instagram/users/similar/instagram/users/tagged/twitter/hot/search/twitter/posts/comments/twitter/posts/detail/twitter/posts/media/download/twitter/search/posts/twitter/users/followers/twitter/users/following/twitter/users/posts/twitter/users/profile失败时 HTTP 状态码非 200,code 非 0,error_code 为稳定字符串,可用于程序判断。
| code | error_code | HTTP | 说明 |
|---|---|---|---|
| 40001 | VALIDATION_ERROR | 400 | 参数缺失或格式错误,data.details 给出字段 |
| 40100 | UNAUTHORIZED | 401 | API Key 缺失、无效或已吊销 |
| 40200 | INSUFFICIENT_BALANCE | 402 | 余额不足,充值后重试 |
| 40400 | NOT_FOUND | 404 | 接口路径不存在 |
| 42900 | RATE_LIMITED | 429 | 超过该接口每分钟调用上限 |
| 50000 | INTERNAL_ERROR | 500 | 服务异常或暂时没有取到,可稍后重试;不扣费 |
| 50300 | NOT_AVAILABLE | 503 | 接口暂不可用;不扣费 |
您的业务、看板或 Agent 通过 HTTPS 调用。
API Key 鉴权、按次计量、限流与统一字段契约。
平台能力分层选路,保障微信等场景的实时性。
需要合同与发票、更高并发、专属字段或私有化对接,请联系商务。
留下联系方式,专人为您推荐接口与报价