V
V
Vlad Yanukovich2021-06-26 15:24:56
JavaScript
Vlad Yanukovich, 2021-06-26 15:24:56

How to get all elements of an array from the server?

Hello ladies and gentlemen.

A question. I work with the spotify API, get the playlist and display its content on the page. Everything seems to be ok, but:
when requesting from the server, it sends me only the first 100 elements, it does not send the remaining 82, although it estimates the length of the entire array correctly.

How to get the other 82 elements?

Below is a screenshot of the response from the server. maybe I don't see something.
60d71c82c9cb9934559877.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
y0u, 2021-06-26
@Vladislav6

https://developer.spotify.com/documentation/webap...

limit - The maximum number of items to return
offset - The index of the first item to return

First 100 - offset 0
Second 100 - offset 99

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question