資訊與社區

討論詳情

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"
    }
  }
}

錯誤碼

參見錯誤碼文檔。