keywordstringobbligatorio
Search keyword (required, recommend using topic format #TopicName#)
https://api.sandbase.ai/v1/api/weibo/web-v2/ai-related-searchReturns AI-generated content extensions for a keyword, including related questions, recommended bloggers, and reference posts.
[
{
"data": {
"code": "100000",
"data": {
"html": " <div class=\"zhisou_module_9000\">\n <div class=\"zhisou_9000\">\n <div class=\"zhisou_title_9000\">\n <div class=\"zhisou_name_9000\">\n <div class=\"zhisou_name_wrap_9000\">\n <div class=\"zhisou_title_text_9000 zhisou_9000_after_img\" >你可能想问</div>\n </div>\n </div>\n <div class=\"zhisou_more_9000\"></div>\n </div>\n\n <div class=\"zhisou_list_9000\">\n <a href=\"/aisearch?q=OpenAI%E7%9A%84%E7%94%A8%E6%88%B7%E8%BF%9D%E7%BA%A6%E9%97%AE%E9%A2%98%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F\" target=\"_blank\">\n <div class=\"zhisou_9000_item_gray\">…"
},
"msg": ""
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns AI-generated search extension content for a keyword on Weibo. The content comes back as one HTML string that holds related questions, recommended bloggers, and reference posts. It needs one input, keyword.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/ai-related-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword (required, recommend using topic format #TopicName#) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": "100000",
"data": {
"html": " <div class=\"zhisou_module_9000\">\n <div cl…"
},
"msg": ""
}
| Field | Meaning |
|---|---|
code | Status code of the response. The sample call returned 100000. |
msg | Message text. It was an empty string in the sample call. |
data.html | HTML markup of the AI search extension module. It holds the related questions, recommended bloggers, and reference posts as page elements, so you need to parse the HTML to read them. |
#TopicName# for keyword, for example #OpenAI#, as the parameter description recommends.data.html to get them.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/ai-related-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "OpenAI"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
keywordstringobbligatorioSearch keyword (required, recommend using topic format #TopicName#)
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"code": "100000",
"data": {
"html": " <div class=\"zhisou_module_9000\">\n <div class=\"zhisou_9000\">\n <div class=\"zhisou_title_9000\">\n <div class=\"zhisou_name_9000\">\n <div class=\"zhisou_name_wrap_9000\">\n <div class=\"zhisou_title_text_9000 zhisou_9000_after_img\" >你可能想问</div>\n </div>\n </div>\n <div class=\"zhisou_more_9000\"></div>\n </div>\n\n <div class=\"zhisou_list_9000\">\n <a href=\"/aisearch?q=OpenAI%E7%9A%84%E7%94%A8%E6%88%B7%E8%BF%9D%E7%BA%A6%E9%97%AE%E9%A2%98%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F\" target=\"_blank\">\n <div class=\"zhisou_9000_item_gray\">…"
},
"msg": ""
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Weibo AI Related Search ContentQuesta API Weibo | $0.001 per chiamata | JSON |
Weibo | $0.001 per chiamata | JSON |
Weibo | $0.001 per chiamata | JSON |
Weibo | $0.001 per chiamata | JSON |
Weibo | $0.001 per chiamata | JSON |
Weibo | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/weibo/web-v2/ai-related-search con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: keyword (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Weibo AI Related Search Content funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Weibo.