speedruncomorg / api

REST API Documentation for speedrun.com
349 stars 35 forks source link

Is there a way to get every former WR ? #123

Open hankiou opened 3 years ago

hankiou commented 3 years ago

Hello I would like to get every previous World Record of a given game+category. Is there a way to do it via the API ?

TY

Mango0x45 commented 3 years ago

Not that I am aware of. I think the best way would be to get all the runs for that game+category, sort them by date, and then iterate through them while removing any runs thats slower than the previous.

GB127 commented 3 years ago

I'd do a request of the leaderboard by date instead if you don't mind multiple requests. That way, you won't get as much runs in one request and getting the WR will be easy.

GB127 commented 3 years ago

After more thinking : The better option is to use this: https://github.com/speedruncomorg/api/blob/master/version1/categories.md#get-categoriesidrecords

with the leaderboard embeds of date.

In other words, Yes there is a way. this issue could be closed.