API - filter personal bests by variables ?
5 years ago
France

Hi :)

First of all, I don't know if I'm in the right subforum to post this, but this one seemed the most appropriate.

I have a little question about the API : I'm trying to fetch the personal best for many players in a game which has sub-categories under the categories (for information the game in question is ALTTP, but it's the same issue for other games with sub-categories).

When I try to get the personal best from a given user, I can filter by categories, but as there are many sub-categories under one category, I still get several runs. That's why I would also like to filter by sub-category, thus by variable, in order to get only one run.

For instance, to get the world record for a category/sub-category couple, you have the option filter var-{variable_id} (as explained here : https://github.com/speedruncomorg/api/blob/master/version1/leaderboards.md ).

I wonder if there is a way to do the same via the users/{user_id}/personal-best URI, of if there is another way ?

Thanks for help !

Edited by the author 5 years ago