Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Weibo Keyword Search

เอกสาร API
https://api.sandbase.ai/v1/api/weibo/search-all

Search Weibo posts by keyword within a required day-and-hour time range, with page-based pagination, hot or time sorting, and filters for pictures, video, music, or links.

ราคา
$0.014286USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
5 จำเป็น · 3 ไม่บังคับ

Playground

อินพุต
Search Keywords.
Start Day (yyyy-MM-dd).
Start Hour (0-23).
End Day (yyyy-MM-dd).
End Hour (0-23).
Hot sort, true for hot sort, false for time sort. Default is false.
Contains filter for the result set.
Page number, starting with 1.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Weibo Keyword Search API

Returns Weibo posts that match a keyword within a required start and end day-and-hour range. Each post includes its text, author, engagement counts, topics, and any video link. You pass the keyword in q and the time range in startDay, startHour, endDay and endHour.

Use cases

  • Collect posts about a news event during a specific window, such as the day after a announcement.
  • Track which accounts post most often about a keyword and how much engagement they get.
  • Find posts that carry a video by setting contains to VIDEO and read the video_url values.
  • Gather hashtags used with a keyword by reading the topics field across results.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/search-all" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "新闻", "startDay": "2026-10-22", "startHour": 0, "endDay": "2026-10-29", "endHour": 23}'

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

Parameters

NameTypeRequiredDescription
endDaystringYesEnd Day (yyyy-MM-dd).
endHourintegerYesEnd Hour (0-23).
qstringYesSearch Keywords.
startDaystringYesStart Day (yyyy-MM-dd).
startHourintegerYesStart Hour (0-23).
containsstringNoContains filter for the result set.
hotSortbooleanNoHot sort, true for hot sort, false for time sort. Default is false.
pageintegerNoPage number, starting with 1.

Example response

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

{
  "has_next_page": true,
  "weibo_list": [
    {
      "article_url": "",
      "at_users": "",
      "attitudes_count": "357",
      "bid": "RoXFjgJp5",
      "comments_count": "1",
      "created_at": "2026-10-29 23:00",
      "forwarded": "false",
      "id": "5359492293987783",
      "location": "",
      "pics": "",
      "reposts_count": "2",
      "retweet_id": ""
    }
  ]
}

Response fields

FieldMeaning
has_next_pageShows whether more results exist. When it is true, request the next page.
weibo_list[]The list of matching posts for the current page.
weibo_list[].id / weibo_list[].bidIdentifiers of the post. id is a numeric string and bid is a short code.
weibo_list[].textThe post text. It can include leading spaces, hashtags marked with #, and a cut-off ending.
weibo_list[].created_atTime the post was created, in yyyy-MM-dd HH:mm format.
weibo_list[].screen_name / weibo_list[].user_idDisplay name and numeric ID of the author.
weibo_list[].attitudes_count / weibo_list[].comments_count / weibo_list[].reposts_countCounts of likes, comments and reposts for the post. Values are strings.
weibo_list[].topicsHashtag topics in the post, joined by commas without the # signs.
weibo_list[].video_urlLink to the post video. It is an empty string when the post has no video.
weibo_list[].sourceThe client or channel the post was published from, such as 微博网页版.

Notes

  • All five of q, startDay, startHour, endDay and endHour are required. Dates use yyyy-MM-dd and hours run from 0 to 23.
  • Page through results with page, starting at 1. Keep going while has_next_page is true.
  • Set hotSort to true to sort by hot instead of time. Set contains to PICTURE, VIDEO, MUSIC or LINK to filter the result set.
  • Empty fields such as pics, location and retweet_id come back as empty strings, and numeric values come back as strings.

Pricing

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

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Weibo$0.014286 ต่อการเรียก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 Keyword Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/weibo/search-all โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Weibo Keyword Search API ราคาเท่าไร?

$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Weibo Keyword Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: q (string), startDay (string), startHour (integer), endDay (string) และ endHour (integer). ตัวเลือก: hotSort (boolean), contains (หนึ่งใน ALL, PICTURE, VIDEO, MUSIC, LINK) และ page (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Weibo Keyword Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Weibo ไหม?

ไม่จำเป็น Weibo Keyword Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Weibo API แยกต่างหาก