Weibo Hot Search List
https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summaryGet the complete real-time Weibo hot search ranking (top 50): keyword, rank, heat tag and search link for each trending topic.
- Preço
- $0.0015USD / chamada
- Método
- POST
- Resposta
- JSON
- Parâmetros
- 0 obrigatórios · 0 opcionais
Playground
[
{
"data": {
"data": [
{
"heat": "",
"is_top": true,
"keyword": "总书记指引宣传思想文化工作",
"keyword_url": "/weibo?q=%23%E6%80%BB%E4%B9%A6%E8%AE%B0%E6%8C%87%E5%BC%95%E5%AE%A3%E4%BC%A0%E6%80%9D%E6%83%B3%E6%96%87%E5%8C%96%E5%B7%A5%E4%BD%9C%23&Refer=new_time",
"rank": 0,
"tag": "热"
},
{
"heat": "",
"is_top": false,
"keyword": "疑似缅北电诈园区图片曝光",
"keyword_url": "/weibo?q=%E7%96%91%E4%BC%BC%E7%BC%85%E5%8C%97%E7%94%B5%E8%AF%88%E5%9B%AD%E5%8C%BA%E5%9B%BE%E7%89%87%E6%9B%9D%E5%85%89&t=31&band_rank=1&Refer=top",
"rank": 1,
"tag": ""
},
{
"heat": "",
"is_top": false,
"keyword": "华为PuraXView",
"keyword_url": "/weibo?q=%E5%8D%8E%E4%B8%BAPuraXView&t=31&band_rank=2&Refer=top",
"rank": 2,
"tag": "新"
},
"… 49 more items in the full response"
],
"total": 52
}
}
]Exemplos
Selecione um exemplo para carregar as entradas e o resultado no playground.
README da API
Weibo Hot Search List API
Returns the current Weibo hot search ranking as a list of trending topics. Each entry has a keyword, rank, tag and a search link. The request takes no input parameters.
Use cases
- Track which topics trend on Weibo right now and log the list at set times.
- Send an alert when a brand name or product keyword appears in the hot list.
- Build a daily report of trending topics and how long each stays in the ranking.
- Feed trending keywords into a post search to collect the discussion around each topic.
Request
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"heat": "",
"is_top": true,
"keyword": "乌镇网事",
"keyword_url": "/weibo?q=%23%E4%B9%8C%E9%95%87%E7%BD%91%E4%BA%8B%23&Refer=new_time",
"rank": 0,
"tag": "热"
}
],
"total": 51
}
Response fields
| Field | Meaning |
|---|---|
data[].keyword | The trending topic text as shown on the hot search list. |
data[].rank | Position of the topic in the list. The first entry has rank set to 0, so the count starts at zero. |
data[].tag | Short label for the topic, such as 热 (hot) or 新 (new). |
data[].keyword_url | Relative Weibo search path for the topic. The q value is the URL-encoded keyword wrapped in # hashtag marks. |
data[].is_top | true for the pinned entry at the top of the list, false for the others. |
data[].heat | Heat value for the topic. It can be an empty string, as in the sample response. |
total | Number of items counted for the list. It can be one higher than the number of ranked entries. |
Notes
- The request body is an empty JSON object
{}. There is no pagination. keyword_urlis a relative path. Add the Weibo domain before you open it in a browser.- To read the posts behind a topic, pass the
keywordto Weibo Real-Time Search or Weibo Topic Search. - For a different view of the ranking, see Weibo Real-Time Hot Search.
Pricing
$0.0015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Comece a construir
Envie sua primeira solicitação
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autenticação
Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
3. Parâmetros
Nenhum schema de parâmetros foi publicado para esta API.
4. Resposta
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
[
{
"data": {
"data": [
{
"heat": "",
"is_top": true,
"keyword": "总书记指引宣传思想文化工作",
"keyword_url": "/weibo?q=%23%E6%80%BB%E4%B9%A6%E8%AE%B0%E6%8C%87%E5%BC%95%E5%AE%A3%E4%BC%A0%E6%80%9D%E6%83%B3%E6%96%87%E5%8C%96%E5%B7%A5%E4%BD%9C%23&Refer=new_time",
"rank": 0,
"tag": "热"
},
{
"heat": "",
"is_top": false,
"keyword": "疑似缅北电诈园区图片曝光",
"keyword_url": "/weibo?q=%E7%96%91%E4%BC%BC%E7%BC%85%E5%8C%97%E7%94%B5%E8%AF%88%E5%9B%AD%E5%8C%BA%E5%9B%BE%E7%89%87%E6%9B%9D%E5%85%89&t=31&band_rank=1&Refer=top",
"rank": 1,
"tag": ""
},
{
"heat": "",
"is_top": false,
"keyword": "华为PuraXView",
"keyword_url": "/weibo?q=%E5%8D%8E%E4%B8%BAPuraXView&t=31&band_rank=2&Refer=top",
"rank": 2,
"tag": "新"
},
"… 49 more items in the full response"
],
"total": 52
}
}
]Explorar mais
APIs relacionadas
| API | Preço | Resposta |
|---|---|---|
Weibo Hot Search ListEsta API Weibo | $0.0015 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Perguntas
FAQ
Como eu uso a API Weibo Hot Search List?
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/weibo/web-v2/hot-search-summary com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
Quanto custa a API Weibo Hot Search List?
$0.0015 por chamada. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. Não há assinatura.
Quais parâmetros a API Weibo Hot Search List aceita?
Weibo Hot Search List não recebe parâmetros de entrada; envie um corpo JSON vazio.
O que a API Weibo Hot Search List retorna?
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Preciso de uma conta de desenvolvedor Weibo ou de uma chave de API?
Não. Weibo Hot Search List funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Weibo separadamente.
