GET /v1/weibo/web_v2/search_user_posts
Search user posts
stable · 2 credits per success
Search for content containing specific keywords in a specified user's posts.;uid: User ID (required);q: Search keyword (optional, empty string means search all content);page: Page number, starts from 1 (default 1);starttime: Start timestamp (optional, Unix timestamp format);endtime: End timestamp (optional, Unix timestamp format);hasori: Include original posts (default 1 include);hasret: Include …
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| q | string | query | no | 搜索关键词 | demo |
| uid | string | query | yes | 用户ID | 7277477906 |
| page | integer | query | no | 页数 | 1 |
| hasori | integer | query | no | 是否包含原创微博,1=包含,0=不包含 | 1 |
| haspic | integer | query | no | 是否包含图片微博,1=包含,0=不包含 | 1 |
| hasret | integer | query | no | 是否包含转发微博,1=包含,0=不包含 | 1 |
| endtime | integer | query | no | 结束时间戳 | 1772294400 |
| hastext | integer | query | no | 是否包含文字微博,1=包含,0=不包含 | 1 |
| hasmusic | integer | query | no | 是否包含音乐微博,1=包含,0=不包含 | 1 |
| hasvideo | integer | query | no | 是否包含视频微博,1=包含,0=不包含 | 1 |
| starttime | integer | query | no | 开始时间戳 | 1772294400 |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 2 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.