资讯与社区

讨论详情

GEThttps://openapi.longbridge.com/v1/content/topics/{id}

鉴权

签名方式:每个请求用 App Key / Secret 签名。请求头如下:

名称类型必填说明
Authorizationstring · header必填OpenAPI 后台 上的账户 Access Token,作为原始 token 传入(不带 Bearer 前缀),并参与签名计算。
X-Api-Keystring · header必填你的 App Key。
X-Timestampstring · header必填请求时间戳,单位秒(Unix 时间)。
X-Api-Signaturestring · header必填HMAC-SHA256 签名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。

根据讨论 ID 获取完整详情,包含正文(Markdown)、作者信息、关联标的与标签、互动数据及详情页链接。可在 社区 查看。

>_ CLI
longbridge topic detail 6993508780031016960

请求

路径参数

名称类型必填说明
idstring必填讨论 ID,如 `6993508780031016960`

响应

响应字段

名称类型必填说明
itemobject必填讨论详情
└ idstring必填讨论 ID
└ titlestring可选标题(短帖可能为空)
└ descriptionstring可选纯文本摘要
└ bodystring可选Markdown 格式正文
└ topic_typestring必填内容类型,`article`(长文)或 `post`(短帖)
└ tickersstring[]可选关联标的代码,如 `["AAPL.US", "700.HK"]`
└ hashtagsstring[]可选讨论标签名称列表
└ imagesobject[]可选附图列表
└ ∟ urlstring可选原始图片 URL
└ ∟ smstring可选小缩略图 URL
└ ∟ lgstring可选大缩略图 URL
└ likes_countint32可选点赞数
└ comments_countint32可选回复数
└ views_countint32可选浏览数
└ shares_countint32可选分享数
└ detail_urlstring可选讨论详情页链接
└ authorobject可选作者信息
└ ∟ member_idstring可选作者 member ID
└ ∟ namestring可选作者昵称
└ ∟ avatarstring可选作者头像 URL
└ created_atstring必填创建时间,Unix 时间戳(秒)
└ updated_atstring可选最后更新时间,Unix 时间戳(秒)

响应 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "item": {
      "id": "6993508780031016960",
      "title": "My Analysis on AAPL",
      "description": "Brief plain-text summary...",
      "body": "**Bullish** on AAPL because...",
      "topic_type": "article",
      "tickers": [
        "AAPL.US"
      ],
      "hashtags": [
        "earnings"
      ],
      "images": [
        {
          "url": "https://cdn.longbridge.com/img/abc.jpg",
          "sm": "https://cdn.longbridge.com/img/abc_sm.jpg",
          "lg": "https://cdn.longbridge.com/img/abc_lg.jpg"
        }
      ],
      "likes_count": 42,
      "comments_count": 7,
      "views_count": 1500,
      "shares_count": 3,
      "detail_url": "https://longbridge.com/topics/6993508780031016960",
      "author": {
        "member_id": "10086",
        "name": "Jane Doe",
        "avatar": "https://example.com/avatar.jpg"
      },
      "created_at": "1742000000",
      "updated_at": "1742001000"
    }
  }
}

错误码

参见错误码文档。