keywordstringจำเป็น
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": ""
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นSearch keyword (required, recommend using topic format #TopicName#)
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"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": ""
}
}
]สำรวจเพิ่มเติม
| 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 |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/web-v2/ai-related-search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Weibo AI Related Search Content ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก