uidstringwajib
User ID (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-postsReturns posts from a specified Weibo user matching optional search keywords. Supports filtering by post types such as images, videos, and retweets, as well as date ranges.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns posts from one Weibo user's timeline that match optional keywords. It needs the user's uid and accepts filters for post type and a Unix timestamp date range.
starttime and endtime.data.total is above zero.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "8431518763"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User ID (required) |
endtime | string | No | End timestamp (optional, Unix timestamp format) |
hasmusic | integer | No | Include music posts (default 1 include) |
hasori | integer | No | Include original posts (default 1 include) |
haspic | integer | No | Include image posts (default 1 include) |
hasret | integer | No | Include retweets (default 1 include) |
hastext | integer | No | Include text posts (default 1 include) |
hasvideo | integer | No | Include video posts (default 1 include) |
page | integer | No | Page number, starts from 1 (default 1) |
q | string | No | Search keyword (optional, empty string means search all content) |
starttime | string | No | Start timestamp (optional, Unix timestamp format) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"list": [],
"total": 0
},
"ok": 1
}
| Field | Meaning |
|---|---|
ok | Status flag for the call. A value of 1 means the request went through. |
data.list | List of matching posts for the requested page. It is an empty list when nothing matches, as in the sample call. |
data.total | Count of posts that match the query and filters. It is 0 in the sample response, which has no matches. |
uid from a user lookup such as Weibo User Search or Weibo User Basic Information.page to move through results. It starts at 1.data.list with data.total of 0 means no posts matched the current q, type flags and time range.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "8431518763"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
uidstringwajibUser ID (required)
endtimeanyEnd timestamp (optional, Unix timestamp format)
hasmusicintegerInclude music posts (default 1 include)
hasoriintegerInclude original posts (default 1 include)
haspicintegerInclude image posts (default 1 include)
hasretintegerInclude retweets (default 1 include)
hastextintegerInclude text posts (default 1 include)
hasvideointegerInclude video posts (default 1 include)
pageintegerPage number, starts from 1 (default 1)
qstringSearch keyword (optional, empty string means search all content)
starttimeanyStart timestamp (optional, Unix timestamp format)
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Weibo User Post SearchAPI ini Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Weibo | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Wajib: uid (string). Opsional: endtime (any), hasmusic (integer), hasori (integer), haspic (integer), hasret (integer) dan hastext (integer) dan 4 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Weibo User Post Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Weibo secara terpisah.