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/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 8 calls
- Latency p50
- 826 msp95 1.2 s
- Last verified
- 28 de jul. de 2026Verified 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 onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
q | string | Opcional | Search keyword | |
uid | string | Obrigatório | User ID | 7277477906 |
page | inteiro | Opcional | Page number | 1 |
hasori | inteiro | Opcional | Include original posts, 1=include, 0=exclude | 1 |
haspic | inteiro | Opcional | Include image posts, 1=include, 0=exclude | 1 |
hasret | inteiro | Opcional | Include retweets, 1=include, 0=exclude | 1 |
endtime | other | Opcional | End timestamp | 1772294400 |
hastext | inteiro | Opcional | Include text posts, 1=include, 0=exclude | 1 |
hasmusic | inteiro | Opcional | Include music posts, 1=include, 0=exclude | 1 |
hasvideo | inteiro | Opcional | Include video posts, 1=include, 0=exclude | 1 |
starttime | other | Opcional | Start timestamp | 1772294400 |
- Parâmetros de consulta
qstringOpcionalSearch keyword
uidstringObrigatórioUser ID
Exemplo:
7277477906pageinteiroOpcionalPage number
Exemplo:
1hasoriinteiroOpcionalInclude original posts, 1=include, 0=exclude
Exemplo:
1haspicinteiroOpcionalInclude image posts, 1=include, 0=exclude
Exemplo:
1hasretinteiroOpcionalInclude retweets, 1=include, 0=exclude
Exemplo:
1endtimeotherOpcionalEnd timestamp
Exemplo:
1772294400hastextinteiroOpcionalInclude text posts, 1=include, 0=exclude
Exemplo:
1hasmusicinteiroOpcionalInclude music posts, 1=include, 0=exclude
Exemplo:
1hasvideointeiroOpcionalInclude video posts, 1=include, 0=exclude
Exemplo:
1starttimeotherOpcionalStart timestamp
Exemplo:
1772294400
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.001/success, incluindo a taxa de serviço.