跳轉到內容

獲取討論詳情

根據討論 ID 獲取完整詳情,包含正文(Markdown)、作者信息、關聯標的與標籤、互動數據及詳情頁鏈接。

CLI安裝 CLI

bash
longbridge topic-detail 6993508780031016960

Request

HTTP MethodGET
HTTP URL/v1/content/topics/:id

Path Parameters

NameTypeRequiredDescription
idstringYES討論 ID,如 6993508780031016960

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

json
{
  "code": 0,
  "message": "success",
  "data": {
    "item": {
      "id": "6993508780031016960",
      "title": "我對蘋果的分析",
      "description": "文章摘要...",
      "body": "**看多** AAPL,因為...",
      "topic_type": "article",
      "tickers": ["AAPL.US"],
      "hashtags": ["earnings"],
      "images": [],
      "likes_count": 42,
      "comments_count": 7,
      "views_count": 1500,
      "shares_count": 3,
      "detail_url": "https://longbridge.com/topics/6993508780031016960",
      "author": {
        "member_id": "10086",
        "name": "張三",
        "avatar": "https://example.com/avatar.jpg"
      },
      "created_at": "1742000000",
      "updated_at": "1742001000"
    }
  }
}

Response Status

StatusDescriptionSchema
200返回成功topic_detail_response
500內部錯誤None

Schemas

topic_detail_response

NameTypeRequiredDescription
itemobjecttrue討論詳情
∟ idstringtrue討論 ID
∟ titlestringfalse標題(短帖可能為空)
∟ descriptionstringfalse純文本摘要
∟ bodystringfalseMarkdown 格式正文
∟ topic_typestringtrue內容類型,article(長文)或 post(短帖)
∟ tickersstring[]false關聯標的代碼,如 ["AAPL.US", "700.HK"]
∟ hashtagsstring[]false討論標籤名稱列表
∟ imagesobject[]false附圖列表
∟∟ urlstringfalse原始圖片 URL
∟∟ smstringfalse小縮略圖 URL
∟∟ lgstringfalse大縮略圖 URL
∟ likes_countint32false點讚數
∟ comments_countint32false回覆數
∟ views_countint32false瀏覽數
∟ shares_countint32false分享數
∟ detail_urlstringfalse討論詳情頁鏈接
∟ authorobjectfalse作者信息
∟∟ member_idstringfalse作者 member ID
∟∟ namestringfalse作者暱稱
∟∟ avatarstringfalse作者頭像 URL
∟ created_atstringtrue創建時間,Unix 時間戳(秒)
∟ updated_atstringfalse最後更新時間,Unix 時間戳(秒)