Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Weibo Topic Search

API 文档
https://api.sandbase.ai/v1/api/weibo/web-v2/topic-search

Searches Weibo topics matching a keyword and returns topic names, URLs, discussion counts, and read metrics across paginated results.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
Search keyword (required)
Page number (default 1)
输出示例
响应outputs · 2.0 KB · 55 行
[
  {
    "data": {
      "parsed_data": {
        "count": 19,
        "items": [
          {
            "cover": {
              "large": "https://wx1.sinaimg.cn/large/0024cZx9ly8hqa409rwgkj6050050wej02.jpg",
              "thumb": "https://wx1.sinaimg.cn/thumb180/0024cZx9ly8hqa409rwgkj6050050wej02.jpg"
            },
            "desc": null,
            "discuss_count": 75000,
            "read_count": 110000000,
            "topic": {
              "name": "#openai#",
              "name_plain": "openai",
              "url": "https://s.weibo.com/weibo/%23openai%23"
            }
          },
          {
            "cover": {
              "large": "https://wx1.sinaimg.cn/large/007Gut6Lly8hrim7x9mz9j30ad0adgls.jpg",
              "thumb": "https://wx1.sinaimg.cn/large/007Gut6Lly8hrim7x9mz9j30ad0adgls.jpg"
            },
            "desc": "这两天,中国国家计算机病毒应急处理中心、计算机病毒防治技术国家工程实验室和360...",
            "discuss_count": 23000,
            "read_count": 39561000,
            "topic": {
              "name": "#openai恐成美国情报部门帮凶#",
              "name_plain": "openai恐成美国情报部门帮凶",
              "url": "https://s.weibo.com/weibo?q=%23openai%E6%81%90%E6%88%90%E7%BE%8E%E5%9B%BD%E6%83%85%E6%8A%A5%E9%83%A8%E9%97%A8%E5%B8%AE%E5%87%B6%23"
            }
          },
          {
            "cover": {
              "large": "https://wx2.sinaimg.cn/large/7263fd1bly8hr1uxtjgysj20ak0akt8p.jpg",
              "thumb": "https://wx2.sinaimg.cn/large/7263fd1bly8hr1uxtjgysj20ak0akt8p.jpg"
            },
            "desc": null,
            "discuss_count": 23000,
            "read_count": 44870000,
            "topic": {
              "name": "#openai宣布终止对中国提供api服务#",
              "name_plain": "openai宣布终止对中国提供api服务",
              "url": "https://s.weibo.com/weibo?q=%23openai%E5%AE%A3%E5%B8%83%E7%BB%88%E6%AD%A2%E5%AF%B9%E4%B8%AD%E5%9B%BD%E6%8F%90%E4%BE%9Bapi%E6%9C%8D%E5%8A%A1%23"
            }
          },
          "… 16 more items in the full response"
        ],
        "parse_success": true
      }
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Weibo Topic Search API

This API searches Weibo topics that match a keyword. It returns each topic's hashtag name, search URL, discussion count, read count, cover image and a short description. It needs a query keyword and accepts an optional page number.

Use cases

  • Find hashtags that Weibo users have created around a brand or product name such as OpenAI.
  • Rank topics for a keyword by read_count or discuss_count to see which hashtags draw the most attention.
  • Collect topic URLs to open the matching Weibo search page for each hashtag.
  • Compare how many topics exist for several competing keywords by checking parsed_data.count.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/topic-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesSearch keyword (required)
pageintegerNoPage number (default 1)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "parsed_data": {
    "count": 19,
    "items": [
      {
        "cover": {
          "large": "https://wx1.sinaimg.cn/large/0024cZx9ly8hqa409rwgkj6050050wej02.jpg",
          "thumb": "https://wx1.sinaimg.cn/thumb180/0024cZx9ly8hqa409rwgkj6050050wej02.jpg"
        },
        "desc": null,
        "discuss_count": 78000,
        "read_count": 110000000,
        "topic": {
          "name": "#openai#",
          "name_plain": "openai",
          "url": "https://s.weibo.com/weibo/%23openai%23"
        }
      }
    ],
    "parse_success": true
  }
}

Response fields

FieldMeaning
parsed_data.countNumber of topic items in this response.
parsed_data.items[].topic.nameTopic hashtag as written on Weibo, wrapped in # characters.
parsed_data.items[].topic.name_plainTopic name without the # characters.
parsed_data.items[].topic.urlWeibo search URL for the topic.
parsed_data.items[].discuss_countDiscussion count for the topic. For example, 78000 for #openai#.
parsed_data.items[].read_countRead count for the topic. For example, 110000000 for #openai#.
parsed_data.items[].descShort text description of the topic. It is null when the topic has none.
parsed_data.items[].cover.large / parsed_data.items[].cover.thumbImage URLs for the topic cover, in a large and a thumbnail version.
parsed_data.parse_successShows true when the response was parsed into the fields above.

Notes

  • query is required. Use any keyword, in English or Chinese.
  • Send page to get further results. It starts at 1.
  • desc can be null, so check for it before you display it.
  • To search posts instead of topics, call Weibo Advanced Search.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON
Weibo$0.001 每次调用JSON

指南:Best Weibo API in 2026: Pricing Compared

问题

常见问题

如何使用 Weibo Topic Search API?

向 https://api.sandbase.ai/v1/api/weibo/web-v2/topic-search 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Weibo Topic Search API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Weibo Topic Search API 接受哪些参数?

必填:query (string)。 可选:page (integer)。 Parameters 表和本页的 Playground 列出了每个字段。

Weibo Topic Search API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Weibo 开发者账户或 API key 吗?

不需要。Weibo Topic Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Weibo API 访问权限。