Longbridge Developers
Get Started

Topic Detail

Get the full details of a community topic by its ID, including the body (Markdown), author info, associated tickers and hashtags, engagement counts, and the direct URL. View the topic on Topics.

>_ CLI
longbridge topic detail 6993508780031016960

Request

HTTP MethodGET
HTTP URL/v1/content/topics/

Path Parameters

NameTypeRequiredDescription
idstringYESTopic ID (e.g. 6993508780031016960)

Request Example

>_ CLI
longbridge topic detail 6993508780031016960
from longbridge.openapi import ContentContext, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url))
config = Config.from_oauth(oauth)
ctx = ContentContext(config)

topic = ctx.topic_detail("6993508780031016960")
print(topic)
import asyncio
from longbridge.openapi import AsyncContentContext, Config, OAuthBuilder

async def main() -> None:
    oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url))
    config = Config.from_oauth(oauth)
    ctx = AsyncContentContext.create(config)

    topic = await ctx.topic_detail("6993508780031016960")
    print(topic)

if __name__ == "__main__":
    asyncio.run(main())
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/longbridge/openapi-go/config"
	"github.com/longbridge/openapi-go/content"
)

func main() {
	conf, err := config.NewFromEnv()
	if err != nil {
		log.Fatal(err)
	}
	ctx, err := content.NewFromCfg(conf)
	if err != nil {
		log.Fatal(err)
	}
	topic, err := ctx.TopicDetail(context.Background(), "6993508780031016960")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("title: %s\nauthor: %s\nlikes: %d\n", topic.Title, topic.Author.Name, topic.LikesCount)
}
use std::sync::Arc;
use longbridge::{oauth::OAuthBuilder, content::ContentContext, Config};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?;
    let config = Arc::new(Config::from_oauth(oauth));
    let ctx = ContentContext::new(config);
    let topic = ctx.topic_detail("6993508780031016960").await?;
    println!("{:?}", topic);
    Ok(())
}

Response

Response Headers

  • Content-Type: application/json

Response Example

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

Response Status

StatusDescriptionSchema
200Successtopic_detail_response
500Internal errorNone

Schemas

topic_detail_response

NameTypeRequiredDescription
itemobjecttrueTopic detail object
∟ idstringtrueTopic ID
∟ titlestringfalseTitle (may be empty for short posts)
∟ descriptionstringfalsePlain-text excerpt
∟ bodystringfalseMarkdown body
∟ topic_typestringtrueContent type: article or post
∟ tickersstring[]falseAssociated security symbols (e.g. ["AAPL.US", "700.HK"])
∟ hashtagsstring[]falseHashtag names
∟ imagesobject[]falseAttached images
∟∟ urlstringfalseOriginal image URL
∟∟ smstringfalseSmall thumbnail URL
∟∟ lgstringfalseLarge image URL
∟ likes_countint32falseLikes count
∟ comments_countint32falseReplies count
∟ views_countint32falseViews count
∟ shares_countint32falseShares count
∟ detail_urlstringfalseURL to the topic detail page
∟ authorobjectfalseAuthor info
∟∟ member_idstringfalseAuthor member ID
∟∟ namestringfalseAuthor display name
∟∟ avatarstringfalseAuthor avatar URL
∟ created_atstringtrueCreation time as Unix timestamp (seconds)
∟ updated_atstringfalseLast updated time as Unix timestamp (seconds)