# 账号资料 API

[规范网址](https://social2api.com/roles/accounts-get/)

已知公开账号的 ID、用户名或可识别链接时，查询账号资料。这个总览覆盖 17 个平台的 18 个扩展入口。保留平台账号标识、展示名和可用的粉丝或作品数。用查询时间标记账号快照。

DataXAPI 价目生效日期与版本 [2026-11-25 · v22](https://social2api.com/pricing-catalog.json)

## Agent 提示词

~~~~text
用 Social2api 完成这个任务。已知公开账号的 ID、用户名或可识别链接时，查询账号资料。
先向我核对平台、输入、采集范围和请求上限，再按此页选端点。只从环境读取授权凭据。
昵称可重名。只有昵称时先走账号搜索，核对主页再保存平台 ID。持续观察粉丝数时按固定间隔重复查询。
保留平台账号标识、展示名和可用的粉丝或作品数。用查询时间标记账号快照。请附实际调用量、数据源、空结果和缺失字段。
https://social2api.com/roles/accounts-get/
~~~~

[查看 X 用户详情 接口](https://social2api.com/docs/api/catalog-x-users-get/)

## 按平台和输入选择接口

扩展接口要有含 catalog 权限的 Social2api Key 和自有 DataXAPI Key。下面的价格是 DataXAPI 通道的默认报价。各通道的覆盖与返回字段以端点文档为准。

| 平台接口 | 必需输入 | 结果与条数 | 默认价格（USD） |
| --- | --- | --- | --- |
| [哔哩哔哩 用户详情](https://social2api.com/docs/api/catalog-bilibili-users-get/) · GET /v1/bilibili/users/get | id | data.item | $0.002/次 |
| [抖音 用户详情](https://social2api.com/docs/api/catalog-douyin-users-get/) · GET /v1/douyin/users/get | id 或 url | data.item | $0.002/次 |
| [Facebook 主页详情](https://social2api.com/docs/api/catalog-facebook-pages-get/) · GET /v1/facebook/pages/get | id 或 username 或 url | data.item | $0.002/次 |
| [Instagram 用户详情](https://social2api.com/docs/api/catalog-instagram-users-get/) · GET /v1/instagram/users/get | username | data.item | $0.002/次 |
| [快手 用户详情](https://social2api.com/docs/api/catalog-kuaishou-users-get/) · GET /v1/kuaishou/users/get | id | data.item | $0.02/次 |
| [领英 公司详情](https://social2api.com/docs/api/catalog-linkedin-companies-get/) · GET /v1/linkedin/companies/get | username 或 url | data.item | $0.002/次 |
| [Reddit 用户详情](https://social2api.com/docs/api/catalog-reddit-users-get/) · GET /v1/reddit/users/get | username | data.item | $0.002/次 |
| [Telegram 频道详情](https://social2api.com/docs/api/catalog-telegram-channels-get/) · GET /v1/telegram/channels/get | username | data.item | $0.002/次 |
| [Threads 用户详情](https://social2api.com/docs/api/catalog-threads-users-get/) · GET /v1/threads/users/get | username | data.item | $0.002/次 |
| [TikTok 用户详情](https://social2api.com/docs/api/catalog-tiktok-users-get/) · GET /v1/tiktok/users/get | id 或 username | data.item | $0.002/次 |
| [微信视频号 用户详情（备用）](https://social2api.com/docs/api/catalog-wechat-channels-backup-users-get/) · GET /v1/wechat\_channels/backup/users/get | id | data.item | $0.03/次 |
| [微信视频号 用户详情](https://social2api.com/docs/api/catalog-wechat-channels-users-get/) · GET /v1/wechat\_channels/users/get | id | data.item | $0.02/次 |
| [微信公众号 账号详情](https://social2api.com/docs/api/catalog-wechat-mp-accounts-get/) · GET /v1/wechat\_mp/accounts/get | id | data.item | $0.02/次 |
| [微博 用户详情](https://social2api.com/docs/api/catalog-weibo-users-get/) · GET /v1/weibo/users/get | id | data.item | $0.002/次 |
| [X 批量用户详情](https://social2api.com/docs/api/catalog-x-users-get-batch/) · POST /v1/x/users/get | ids | data.items · 最多 100 个输入 | $0.0004/条 |
| [小红书 用户详情](https://social2api.com/docs/api/catalog-xiaohongshu-users-get/) · GET /v1/xiaohongshu/users/get | id 或 url | data.item | $0.02/次 |
| [YouTube 频道详情](https://social2api.com/docs/api/catalog-youtube-channels-get/) · GET /v1/youtube/channels/get | id 或 username | data.item | $0.002/次 |
| [知乎 用户详情](https://social2api.com/docs/api/catalog-zhihu-users-get/) · GET /v1/zhihu/users/get | username | data.item | $0.002/次 |

## 从 X 用户详情 开始

先读该端点的参数和计费表，再把示例值换成你的输入。命令会调用实时 API。

该示例默认报价为 $0.0004/条。单次公开价格上限为 $0.04，空结果和参数变体费用见该端点的说明。

~~~~bash
curl -fsS -G "https://social2api.com/v1/x/users/get" \
  --data-urlencode "id=11348282" \
  -H "Authorization: Bearer $SOCIAL2API_API_KEY" \
  -H "X-DataXAPI-Key: $DATAXAPI_API_KEY"
~~~~

## 核对返回结构

下方是端点文档中的合成结构。输出字段和结果数量以实际响应为准。

~~~~json
{
  "code": "ok",
  "request_id": "3f022215-9708-4eef-9878-cc67b31f3d6b",
  "data": {
    "item": {
      "id": "11348282",
      "name": "Example contributor",
      "metrics": {
        "followers": 120
      }
    }
  },
  "warnings": [],
  "meta": {
    "capability": "x.users.get",
    "result_status": "complete",
    "fetched_at": "2026-11-15T12:00:00Z"
  }
}
~~~~

## 保存结果和覆盖范围

保留平台账号标识、展示名和可用的粉丝或作品数。用查询时间标记账号快照。

昵称可重名。只有昵称时先走账号搜索，核对主页再保存平台 ID。持续观察粉丝数时按固定间隔重复查询。

记录 request\_id、采集时间、warnings 与结果状态。有游标时保持筛选项、字段和通道一致，再继续读取。

## 相关指南和问答

- [账号搜索 API](https://social2api.com/roles/accounts-search/)。 只有昵称、用户名片段或垂类词时，找可能匹配的公开账号。每位候选保留来源关键词、账号 ID、展示名和可用主页地址，随后查账号详情核对身份。
- [账号作品列表 API](https://social2api.com/roles/accounts-posts-list/)。 已知公开账号标识时，拉取该账号的一批公开作品。以账号和作品 ID 建表，保存正文或标题、原链接和可用发布日期，再按任务的日期窗口过滤。
- [创作者发现与初筛](https://social2api.com/solutions/creators/)。 按垂类找创作者和样本作品，核对公开账号资料、粉丝量和近期内容，形成可复查的合作候选名单。

## 接口文档

- [X 用户详情](https://social2api.com/docs/api/catalog-x-users-get/)
- [扩展数据 API 的认证和用量](https://social2api.com/docs/#extended-data)

## 参考来源

- [Social2api 生产操作与参数契约](https://social2api.com/openapi.json)
- [DataXAPI 上游端点契约](https://dataxapi.com/zh/apis/x/users/get/)

## 给 AI 代理

- [给 AI 的站点说明](https://social2api.com/zh/llms.txt)。 面向代理的功能概览与文档发现索引。
- [接入 AI 的步骤](https://social2api.com/zh/agents/)。 从免费试跑到 API Key 与 MCP 接入。
- [接入步骤（Markdown）](https://social2api.com/agents.md)。 接入指南的纯文本 Markdown 版本。
- [OpenAPI](https://social2api.com/openapi.json)。 查看 HTTP 请求参数、认证方式和响应结构。
- [价格表](https://social2api.com/prices.json)。 查看托管积分规则、扩展 API 报价和充值状态。
- [MCP 地址](https://social2api.com/docs/api/mcp/)。 Streamable HTTP 接入、授权方式和工具说明。

MCP Streamable HTTP 地址 `https://social2api.com/mcp`。

[查看 X 用户详情 接口](https://social2api.com/docs/api/catalog-x-users-get/)
