GET /v1/pipixia/app/fetch_search
Search API
stable · 2 credits per success
Search API, support search user, post, etc.;keyword: Search keyword.;offset: Page cursor, default is 0, get the corresponding value from the `offset` Key in the previous page.;search_type: Search type, available values are as follows;- 1: Comprehensive;- 8: Hot;- 9: Fresh;- 2: Video;- 3: Photo;- 4: User;- 5: Hashtag;Search result
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| offset | string | query | no | 翻页游标 | 0 |
| keyword | string | query | yes | 搜索关键词 | 皮皮虾 |
| search_type | string | query | no | 搜索类型 | 1 |
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 that fails the quality gate — costs 0.