Suno-API
Suno-API copied to clipboard
API6 /gateway/query with multiple ids issue
When I make a request with multiple IDs (more than 2), the API only returns the first 2 results.
Steps to Reproduce:
-
Suppose I have 4 song IDs: id_1, id_2, id_3, id_4. id_1 and id_2 was generated in one request, same for id_3 and id_4.
-
When I send a GET request like this:
GET https://api.sunoaiapi.com/api/v1/gateway/query?ids=id_1,id_2,id_3,id_4The API response only includes the songs for id_1 and id_2. -
However, if I request only the last two IDs:
GET https://api.sunoaiapi.com/api/v1/gateway/query?ids=id_3,id_4I get the correct response with both songs. -
Additionally, if I request a pair of songs from different requests like:
GET https://api.sunoaiapi.com/api/v1/gateway/query?ids=id_1,id_3The response correctly includes both id_1 and id_3 songs.