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/successAl precio del proveedor
- Success rate
- 100 %Last 30 days · 8 calls
- Latency p50
- 826 msp95 1.2 s
- Last verified
- 28 jul 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 onlinePróximamenteProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
q | cadena | Opcional | Search keyword | |
uid | cadena | Obligatorio | User ID | 7277477906 |
page | entero | Opcional | Page number | 1 |
hasori | entero | Opcional | Include original posts, 1=include, 0=exclude | 1 |
haspic | entero | Opcional | Include image posts, 1=include, 0=exclude | 1 |
hasret | entero | Opcional | Include retweets, 1=include, 0=exclude | 1 |
endtime | other | Opcional | End timestamp | 1772294400 |
hastext | entero | Opcional | Include text posts, 1=include, 0=exclude | 1 |
hasmusic | entero | Opcional | Include music posts, 1=include, 0=exclude | 1 |
hasvideo | entero | Opcional | Include video posts, 1=include, 0=exclude | 1 |
starttime | other | Opcional | Start timestamp | 1772294400 |
- Parámetros de consulta
qcadenaOpcionalSearch keyword
uidcadenaObligatorioUser ID
Ejemplo:
7277477906pageenteroOpcionalPage number
Ejemplo:
1hasorienteroOpcionalInclude original posts, 1=include, 0=exclude
Ejemplo:
1haspicenteroOpcionalInclude image posts, 1=include, 0=exclude
Ejemplo:
1hasretenteroOpcionalInclude retweets, 1=include, 0=exclude
Ejemplo:
1endtimeotherOpcionalEnd timestamp
Ejemplo:
1772294400hastextenteroOpcionalInclude text posts, 1=include, 0=exclude
Ejemplo:
1hasmusicenteroOpcionalInclude music posts, 1=include, 0=exclude
Ejemplo:
1hasvideoenteroOpcionalInclude video posts, 1=include, 0=exclude
Ejemplo:
1starttimeotherOpcionalStart timestamp
Ejemplo:
1772294400
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.001/success, incluida la tarifa de servicio.