Search a Weibo user's posts by keyword and dates
tikhub.x.weibo-web-v2-search-user-postsWeibo: search user posts (web_v2)
- Price
- $0.001/successプロバイダー原価
- Success rate
- 100%Last 30 days · 8 calls
- Latency p50
- 826 msp95 1.2 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400PreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 任意 | Search keyword | |
uid | 文字列 | 必須 | User ID | 7277477906 |
page | 整数 | 任意 | Page number | 1 |
hasori | 整数 | 任意 | Include original posts, 1=include, 0=exclude | 1 |
haspic | 整数 | 任意 | Include image posts, 1=include, 0=exclude | 1 |
hasret | 整数 | 任意 | Include retweets, 1=include, 0=exclude | 1 |
endtime | other | 任意 | End timestamp | 1772294400 |
hastext | 整数 | 任意 | Include text posts, 1=include, 0=exclude | 1 |
hasmusic | 整数 | 任意 | Include music posts, 1=include, 0=exclude | 1 |
hasvideo | 整数 | 任意 | Include video posts, 1=include, 0=exclude | 1 |
starttime | other | 任意 | Start timestamp | 1772294400 |
- クエリパラメータ
q文字列任意Search keyword
uid文字列必須User ID
例:
7277477906page整数任意Page number
例:
1hasori整数任意Include original posts, 1=include, 0=exclude
例:
1haspic整数任意Include image posts, 1=include, 0=exclude
例:
1hasret整数任意Include retweets, 1=include, 0=exclude
例:
1endtimeother任意End timestamp
例:
1772294400hastext整数任意Include text posts, 1=include, 0=exclude
例:
1hasmusic整数任意Include music posts, 1=include, 0=exclude
例:
1hasvideo整数任意Include video posts, 1=include, 0=exclude
例:
1starttimeother任意Start timestamp
例:
1772294400
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.weibo-web-v2-search-user-posts?uid=7277477906&page=1&hasori=1&haspic=1&hasret=1&endtime=1772294400&hastext=1&hasmusic=1&hasvideo=1&starttime=1772294400", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001/success です。サービス料を含みます。