GET /v1/kuaishou/app/fetch_music_ranking
Music ranking
stable · 2 credits per success
Fetch music ranking (songs in musics[]), with cursor pagination.;tab_id: 100002=hot songs (default), 100063=Pi-plan ranking;count: Page size, default 20, range 1-50;pcursor: Cursor, empty for first page;Music ranking data
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| count | integer | query | no | 默认 20,范围 1-50 | 20 |
| tab_id | integer | query | no | 100002=热歌榜(默认),100063=π计划推荐榜 | demo |
| pcursor | string | query | no | 首次留空,翻页传上一页响应的 pcursor | demo |
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.