Suno-API icon indicating copy to clipboard operation
Suno-API copied to clipboard

API6 /gateway/query with multiple ids issue

Open andreyulaez opened this issue 1 year ago • 0 comments

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_4 The 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_4 I 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_3 The response correctly includes both id_1 and id_3 songs.

andreyulaez avatar Aug 20 '24 10:08 andreyulaez