Search a Weibo user's posts by keyword and dates
tikhub.x.weibo-web-v2-search-user-postsWeibo: search user posts (web_v2)
- 价格
- $0.001/success按供应商原价
- 成功率
- 100%近 30 天 · 8 次
- 延迟 p50
- 826 毫秒p95 1.2 秒
- 最后验证
- 2026年7月28日实测可用
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=1772294400预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
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 替换为你在控制台创建的密钥。
预览
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.001/success 计费,已含服务费。