GET /v1/twitter/search/search_v1
Twitter Search Timeline API (V1)
stable · 20 credits per success
Search X (Twitter) by keyword across top, latest, media, people or list result modes, with cursor pagination. Use it to find public conversations, accounts, media or lists related to a topic.
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| cursor | string | query | no | 由先前响应返回的分页游标。 | demo |
| keyword | string | query | yes | 搜索关键词。 | 咖啡 |
| searchType | string | query | no | 搜索结果类型。 可用值: - `TOP`:热门搜索结果 - `LATEST`:最新搜索结果 - `MEDIA`:媒体搜索结果 - `PEOPLE`:人物搜索结果 - `LISTS`:列表搜索结果 | Top |
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 20 credits. Any failure — including a 200 that fails the quality gate — costs 0.