DEV Community

Vikas Singh
Vikas Singh

Posted on

How to reduce the Number of API call requests

Spotify API Vikas Singh
What are the ways/strategies you know to reduce the number of API requests(API request call limit)?

Here is mine!
To reduce the number of requests, use endpoints that fetch multiple entities in one request.

For example, you are using SpotifyAPI, so rather than requesting single tracks, albums, or artists, use endpoints such as Get Several Tracks, Get Several Albums or Get Several Artists, instead.

Top comments (1)

Collapse
 
kamo profile image
KAIDI

Hey,
I think it depends on what do you need, APIs are designed for handling a lot of requests, using GraphQL may help if you have a more complex structure.