querystringจำเป็น
Search keyword (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/topic-searchSearches Weibo topics matching a keyword and returns topic names, URLs, discussion counts, and read metrics across paginated results.
[
{
"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
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.
OpenAI.read_count or discuss_count to see which hashtags draw the most attention.parsed_data.count.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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword (required) |
page | integer | No | Page number (default 1) |
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
}
}
| Field | Meaning |
|---|---|
parsed_data.count | Number of topic items in this response. |
parsed_data.items[].topic.name | Topic hashtag as written on Weibo, wrapped in # characters. |
parsed_data.items[].topic.name_plain | Topic name without the # characters. |
parsed_data.items[].topic.url | Weibo search URL for the topic. |
parsed_data.items[].discuss_count | Discussion count for the topic. For example, 78000 for #openai#. |
parsed_data.items[].read_count | Read count for the topic. For example, 110000000 for #openai#. |
parsed_data.items[].desc | Short text description of the topic. It is null when the topic has none. |
parsed_data.items[].cover.large / parsed_data.items[].cover.thumb | Image URLs for the topic cover, in a large and a thumbnail version. |
parsed_data.parse_success | Shows true when the response was parsed into the fields above. |
query is required. Use any keyword, in English or Chinese.page to get further results. It starts at 1.desc can be null, so check for it before you display it.$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/topic-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"query": "OpenAI"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
querystringจำเป็นSearch keyword (required)
pageintegerPage number (default 1)
ค่าเริ่มต้น: 1
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"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
}
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Weibo Topic SearchAPI นี้ 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/topic-search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: query (string). ตัวเลือก: page (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Weibo Topic Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก