speedruncomorg / api

REST API Documentation for speedrun.com
346 stars 36 forks source link

Internal ID of a Game can conflict with URL links #114

Open Suprnova opened 3 years ago

Suprnova commented 3 years ago

If you have a game accessible through the API, such as Super Mario 64 with the internal ID of o1y9wo6q, you can access it through the API with https://www.speedrun.com/api/v1/games/o1y9wo6q AND with https://www.speedrun.com/api/v1/games/sm64, its custom URL. Giving another game the custom URL of "o1y9wo6q", the internal ID for SM64, will cause the game to be inaccessible through the API by its custom URL name, and instead only by its internal ID, which can only be found through the API by searching for the specific game with the relevant endpoint. This conflict affects multiple endpoints, such as games, leaderboards, runs, and more.