# 内容详情 API

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

按公开作品的原链接或平台 ID 查一条内容详情。这个总览覆盖 18 个平台的 21 个扩展入口。返回一条内容记录，按平台读取正文、标题、发布时间和可用的作者或互动字段。

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

## Agent 提示词

~~~~text
用 Social2api 完成这个任务。按公开作品的原链接或平台 ID 查一条内容详情。
先向我核对平台、输入、采集范围和请求上限，再按此页选端点。只从环境读取授权凭据。
请先确认内容类型。同一平台的帖子、问答和专栏可能使用不同接口。需要评论正文时，用这条作品的原生 ID 转到评论列表。
返回一条内容记录，按平台读取正文、标题、发布时间和可用的作者或互动字段。请附实际调用量、数据源、空结果和缺失字段。
https://social2api.com/roles/posts-get/
~~~~

[查看 YouTube 视频详情 接口](https://social2api.com/docs/api/catalog-youtube-videos-get/)

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

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

| 平台接口 | 必需输入 | 结果与条数 | 默认价格（USD） |
| --- | --- | --- | --- |
| [哔哩哔哩 视频详情](https://social2api.com/docs/api/catalog-bilibili-videos-get/) · GET /v1/bilibili/videos/get | id 或 url | data.item | $0.002/次 |
| [抖音 视频详情](https://social2api.com/docs/api/catalog-douyin-videos-get/) · GET /v1/douyin/videos/get | id 或 url | data.item | $0.002/次 |
| [Facebook 帖子详情](https://social2api.com/docs/api/catalog-facebook-posts-get/) · GET /v1/facebook/posts/get | url | data.item | $0.002/次 |
| [Instagram 帖子详情](https://social2api.com/docs/api/catalog-instagram-posts-get/) · GET /v1/instagram/posts/get | id 或 url | data.item | $0.002/次 |
| [快手 视频详情](https://social2api.com/docs/api/catalog-kuaishou-videos-get/) · GET /v1/kuaishou/videos/get | id 或 url | data.item | $0.002/次 |
| [领英 帖子详情](https://social2api.com/docs/api/catalog-linkedin-posts-get/) · GET /v1/linkedin/posts/get | id 或 url | data.item | $0.002/次 |
| [Pinterest 图钉详情](https://social2api.com/docs/api/catalog-pinterest-pins-get/) · GET /v1/pinterest/pins/get | id 或 url | data.item | $0.002/次 |
| [Reddit 帖子详情](https://social2api.com/docs/api/catalog-reddit-posts-get/) · GET /v1/reddit/posts/get | id 或 url | data.item | $0.002/次 |
| [Telegram 消息详情](https://social2api.com/docs/api/catalog-telegram-messages-get/) · GET /v1/telegram/messages/get | id 或 url | data.item | $0.002/次 |
| [Threads 帖子详情](https://social2api.com/docs/api/catalog-threads-posts-get/) · GET /v1/threads/posts/get | id 或 url | data.item | $0.002/次 |
| [TikTok 视频详情](https://social2api.com/docs/api/catalog-tiktok-videos-get/) · GET /v1/tiktok/videos/get | id 或 url | data.item | $0.002/次 |
| [微信视频号 视频详情](https://social2api.com/docs/api/catalog-wechat-channels-videos-get/) · GET /v1/wechat\_channels/videos/get | id 或 url 或 export\_id | data.item | $0.02/次 |
| [微信公众号 文章详情](https://social2api.com/docs/api/catalog-wechat-mp-articles-get/) · GET /v1/wechat\_mp/articles/get | url | data.item | $0.02/次 |
| [微博 帖子详情](https://social2api.com/docs/api/catalog-weibo-posts-get/) · GET /v1/weibo/posts/get | id 或 url | data.item | $0.002/次 |
| [X 帖子详情](https://social2api.com/docs/api/catalog-x-posts-get/) · GET /v1/x/posts/get | id 或 url | data.item | $0.0003/次 |
| [小红书 笔记详情](https://social2api.com/docs/api/catalog-xiaohongshu-notes-get/) · GET /v1/xiaohongshu/notes/get | id 或 url | data.item | $0.02/次 |
| [YouTube 视频详情](https://social2api.com/docs/api/catalog-youtube-videos-get/) · GET /v1/youtube/videos/get | id 或 url | data.item | $0.002/次 |
| [知乎 回答详情](https://social2api.com/docs/api/catalog-zhihu-answers-get/) · GET /v1/zhihu/answers/get | id 或 url | data.item | $0.002/次 |
| [知乎 文章详情](https://social2api.com/docs/api/catalog-zhihu-articles-get/) · GET /v1/zhihu/articles/get | id 或 url | data.item | $0.002/次 |
| [知乎 图钉详情](https://social2api.com/docs/api/catalog-zhihu-pins-get/) · GET /v1/zhihu/pins/get | id 或 url | data.item | $0.002/次 |
| [知乎 问题详情](https://social2api.com/docs/api/catalog-zhihu-questions-get/) · GET /v1/zhihu/questions/get | id 或 url | data.item | $0.002/次 |

## 从 YouTube 视频详情 开始

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

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

~~~~bash
curl -fsS -G "https://social2api.com/v1/youtube/videos/get" \
  --data-urlencode "id=dQw4w9WgXcQ" \
  --data-urlencode "view=full" \
  -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": "dQw4w9WgXcQ",
      "type": "video",
      "title": "Example public result",
      "published_at": "2026-11-15T12:00:00Z",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "ext": {
        "video_id": "dQw4w9WgXcQ",
        "duration": 213,
        "category": "Music",
        "chapters": [
          {
            "title": "Opening",
            "start": 0
          }
        ]
      }
    }
  },
  "warnings": [],
  "meta": {
    "capability": "youtube.videos.get",
    "result_status": "complete",
    "fetched_at": "2026-11-15T12:00:00Z"
  }
}
~~~~

## 保存结果和覆盖范围

返回一条内容记录，按平台读取正文、标题、发布时间和可用的作者或互动字段。

请先确认内容类型。同一平台的帖子、问答和专栏可能使用不同接口。需要评论正文时，用这条作品的原生 ID 转到评论列表。

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

## 相关指南和问答

- [社媒评论 API](https://social2api.com/roles/posts-comments-list/)。 比较 Social2api 的跨平台公开评论与回复接口，查看作品标识、单页条数、返回字段、游标和上游报价。
- [内容互动数据 API](https://social2api.com/roles/posts-metrics/)。 已有作品 ID 或链接时，读取单条公开作品的互动数据。按作品保存当前接口返回的计数、采集时间及可用的源计数时点。
- [竞品内容监测与账号复盘](https://social2api.com/solutions/competitor-monitoring/)。 把已知竞品账号的公开作品排成周报，再用扩展 API 查看抖音、小红书账号资料和公开内容。

## 接口文档

- [YouTube 视频详情](https://social2api.com/docs/api/catalog-youtube-videos-get/)
- [扩展数据 API 的认证和用量](https://social2api.com/docs/#extended-data)

## 参考来源

- [Social2api 生产操作与参数契约](https://social2api.com/openapi.json)
- [DataXAPI 上游端点契约](https://dataxapi.com/zh/apis/youtube/videos/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`。

[查看 YouTube 视频详情 接口](https://social2api.com/docs/api/catalog-youtube-videos-get/)
