Printing first 5 artists for the music app

When I just pass the API key as the parameter the response has no issues

,
But when I declare the parameter limit with value of 5 it shops displaying artists.

parameter declaration for reference

Please help someone!

Hi @191320. Once try including the limit in the endpoint url https://api.napster.com/v2.2/artists/top?limit=5 . It’s working in my case when I am giving the limit in the parameter section. Let me know if it doesn’t work.

Yes this works for me! Thank you so much sir!

1 Like