API-FOOTBALL

ÜCRETSİZ PREMIUM
Verified
Taraf API-SPORTS | Güncelleyen 14 дней назад | Sports
Popülerlik

10 / 10

Gecikme

369ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

Pagination

Rapid account: Mbabikir 4
mbabikir4
2 года назад

Hi,
I’m calling the players endpoint and I’m serving the website as static using next.js, Is there anyway to know the total number of pages or to cancel pagination to get all players data using the search/players endpoint

thanks in return

Rapid account: Api Sports
api-sports Commented 2 года назад

Hi,

No, this is not a way to make the user use more API calls, but a way to combine data quantity and performance because this endpoint contains a lot of player data.

But it is not impossible that in the future this will change. You can add this request to our public roadmap: https://github.com/api-sports/public-roadmap/projects/1

Best

Rapid account: Drorsal 84 V Ps S 4 Exa IXZ
drorsal84-VPsS4exaIXZ Commented 2 года назад

There should be a way if they raise the results per page to more than 20, but I guess it’s designed that way so you will need to spend more API calls.

Rapid account: Mbabikir 4
mbabikir4 Commented 2 года назад

is there anyway to save API calls because right now I have to call for the first page then call for every page, is there anyway to avoid this

Rapid account: Api Sports
api-sports Commented 2 года назад

Hi,

Yes you have this information in the API response, it indicates the page you are on and also the number of pages available

“paging”: {
“current”: 1,
“total”: 10
},

Best

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun