FeedMCP

数据接口 / X(Twitter)

X 账号搜索 API

按关键词找 X 账号:用户名、名字、简介、头像、认证、粉丝数和发帖数,每页约 20 个。

项目 值
地址 GET https://api.feedmcp.com/v1/x/users/search
ID x.users.search
价格 $0.0004/条(每次 $0.0004–0.008)
返回 一页 账号对象列表
认证 Authorization: Bearer $FEEDMCP_API_KEY

参数

参数 类型 必填 说明
keyword string 是 搜索词
cursor string 否 翻页游标。第一页不传;下一页传上一页返回的 page.next_cursor。每一页单独计费

所有接口还支持 view=full:在返回里附上平台的原始数据(raw),价格不变。

返回字段

data.items 是一组「账号」对象,所有平台字段相同:

字段 类型 说明
id string 账号 ID,就是这个平台账号接口要的 id:TikTok、Instagram、X、Threads 是用户名,Telegram 是频道名,Reddit 是版块名,LinkedIn 是主页链接 /in/ 或 /company/ 后面那一串,Facebook 是主页名或数字 ID,YouTube 是 UC 开头的频道 ID,抖音是 sec_user_id,快手是数字用户 ID,视频号是 v2_…@finder,知乎是主页链接里的用户 ID,小红书是用户 ID,B 站和微博是 UID,公众号是原始 ID
platform string 平台
name string | null 昵称
handle string | null 平台号:用户名、抖音号、小红书号、微信号
uid string | null 抖音数字 uid(只有抖音账号;巨量算数的达人接口要用)
bio string | null 简介
avatar string | null 头像地址
url string | null 主页链接
verified boolean | null 是否认证
verified_reason string | null 认证说明或认证主体
metrics.followers number | null 粉丝数
metrics.following number | null 关注数
metrics.posts number | null 作品或文章数
metrics.likes number | null 获赞数
metrics.views number | null 总播放量(只有 YouTube 频道)
metrics.employees number | null 员工数(只有 LinkedIn 公司)
metrics.weekly_active_users number | null 每周活跃人数(只有 Reddit 版块)
metrics.articles number | null 文章数(只有知乎账号搜索)
private boolean | null 是否私密账号(只有 Instagram 账号搜索)
owner object | null 公众号注册主体:name 公司名、country、registered_at 注册时间、verified_at 认证日期、third_party_services 授权的第三方(只有公众号主体接口)
metrics.ads number | null 大约有多少条广告(只有 Google 广告主)
metrics.instagram_followers number | null 关联的 Instagram 粉丝数(只有 Meta 广告主)
location string | null 地区(LinkedIn、Facebook)
category string | null 类别:Facebook 主页类别、LinkedIn 公司行业、微信账号类型(公众号、服务号、视频号、小程序)
website string | null 官网(LinkedIn 公司、Facebook 主页)
experience object[] LinkedIn 个人公开的任职组织:organization、location、start、end
education object[] LinkedIn 个人公开的学校和组织:school、start、end

什么时候扣费

按返回的条数收费:每条 $0.0004,每次至少 $0.0004、最多 $0.008,扣了多少写在返回的 meta.billing 里(items 是条数)。空结果按最低 $0.0004 收。参数错误、平台出错、超时都不收费。

每次返回的 meta.billing 里写着这次扣了多少、还剩多少余额。

调用示例

cURL

curl "https://api.feedmcp.com/v1/x/users/search?keyword=camping" \
  -H "Authorization: Bearer $FEEDMCP_API_KEY"

Python

import os, requests

r = requests.get(
    "https://api.feedmcp.com/v1/x/users/search",
    params={"keyword": "camping"},
    headers={"Authorization": f"Bearer {os.environ['FEEDMCP_API_KEY']}"},
    timeout=30,
)
print(r.json())

JavaScript

const res = await fetch("https://api.feedmcp.com/v1/x/users/search?keyword=camping", {
  headers: { Authorization: `Bearer ${process.env.FEEDMCP_API_KEY}` },
});
console.log(await res.json());

MCP

在装好 FeedMCP 的 AI 里,调用 call 工具:

{
  "endpoint": "x.users.search",
  "params": {
    "keyword": "camping"
  },
  "max_price": "0.008"
}

返回示例

示例数据是虚构的,格式和真实返回一致。

{
  "code": "ok",
  "request_id": "req_7Qm2kXb9TzLp",
  "data": {
    "items": [
      {
        "id": "CampingWorld1",
        "platform": "x",
        "name": "Camping World 1",
        "handle": "CampingWorld1",
        "bio": "RVs and gear",
        "avatar": "https://pbs.twimg.com/b.jpg",
        "url": "https://x.com/CampingWorld1",
        "verified": false,
        "location": null,
        "metrics": {
          "followers": 418289,
          "following": 297,
          "posts": 69688
        }
      },
      {
        "id": "CampingWorld2",
        "platform": "x",
        "name": "Camping World 2",
        "handle": "CampingWorld2",
        "bio": "RVs and gear",
        "avatar": "https://pbs.twimg.com/b.jpg",
        "url": "https://x.com/CampingWorld2",
        "verified": false,
        "location": null,
        "metrics": {
          "followers": 418289,
          "following": 297,
          "posts": 69688
        }
      }
    ]
  },
  "page": {
    "next_cursor": "eyJjdXJzb3IiOjIwfQ",
    "has_more": true
  },
  "warnings": [],
  "meta": {
    "endpoint": "x.users.search",
    "platform": "x",
    "fetched_at": "2026-11-19T08:00:00.000Z",
    "source": "FeedMCP",
    "catalog_revision": "d09a736bd39e8b3f",
    "billing": {
      "charged": true,
      "amount": "0.0008",
      "currency": "USD",
      "balance": "9.99",
      "unit": "item",
      "items": 2,
      "price_per_item": "0.0004"
    }
  }
}

出错时的格式见 错误码:每个错误都写明扣没扣钱(charged)和能不能重试(retry)。

X(Twitter)的其他接口

常见问题

X 账号搜索接口多少钱?

按返回的条数收费:每条 $0.0004,每次至少 $0.0004、最多 $0.008,扣了多少写在返回的 meta.billing 里(items 是条数)。空结果按最低 $0.0004 收。参数错误、平台出错、超时都不收费。

需要平台账号吗?

不需要,只取公开数据。

ID 或链接怎么找?

帖子 ID 是链接 /status/ 后面的数字;账号用用户名(@ 后面那一串,不带 @)。

怎么取更多条?

返回里有 page.next_cursor 时,把它作为 cursor 参数传回来取下一页。每一页单独计费。

怎么在 AI 里用?

装好 MCP 后直接说你要什么,AI 会调用 x.users.search。