GET /v1/weibo/search/all_v2
Weibo Keyword Search API (V2)
stable · 10 credits per success
Search Weibo posts by keyword within a required hour-and-day time range, with page-based pagination, popularity or time sorting, and filters for images, video, music or links. Use it to find time-bounded posts for topic research or monitoring.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| q | string | query | yes | 搜索关键词。 | demo |
| page | integer | query | no | 页码,从1开始。 | 1 |
| endDay | string | query | yes | 结束日期 (yyyy-MM-dd)。 | demo |
| endHour | integer | query | yes | 结束小时(0-23)。 | 0 |
| hotSort | boolean | query | no | 热门排序,true 表示热门排序,false 表示时间排序。默认为 false。 | false |
| contains | string | query | no | 包含结果集的过滤器。 可用值: - `ALL`: 全部 - `PICTURE`: 包含图片 - `VIDEO`: 包含视频 - `MUSIC`: 包含音乐 - `LINK`: 包含链接 | ALL |
| startDay | string | query | yes | 开始日期 (yyyy-MM-dd)。 | demo |
| startHour | integer | query | yes | 起始小时(0-23)。 | 0 |
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 10 credits. Any failure — including a 200 that fails the quality gate — costs 0.