Hello,
important parts are marked in bold to save reading on potential devs reading this.
I wanted to make something that goes through online top 50 replays and do some statistical analyzing on them.
The official API has no endpoint to fetch replay data, though.
If it is possible to implement, I suggest adding onto /api/get_scores by adding an optional parameter:
r - get replays (default 0 = false, 1 = true)
If the parameter is true, the JSON reply will be entirely replaced by a single key for each entry named "replay" containing the replay data as an encoded BASE64 string (or any usable format to convert byte data into a string)
As the default is 0, this will not affect any running programs currently using this endpoint, and will allow new programs to fetch replay data as requested.
If server load is not an issue, the original keys for entries (like username, count300, etc.) could still be sent, however, all this data is also inside the replay format, so this would most likely be waste of bandwidth.
Thanks in advance,
zkf
important parts are marked in bold to save reading on potential devs reading this.
I wanted to make something that goes through online top 50 replays and do some statistical analyzing on them.
The official API has no endpoint to fetch replay data, though.
If it is possible to implement, I suggest adding onto /api/get_scores by adding an optional parameter:
r - get replays (default 0 = false, 1 = true)
If the parameter is true, the JSON reply will be entirely replaced by a single key for each entry named "replay" containing the replay data as an encoded BASE64 string (or any usable format to convert byte data into a string)
As the default is 0, this will not affect any running programs currently using this endpoint, and will allow new programs to fetch replay data as requested.
If server load is not an issue, the original keys for entries (like username, count300, etc.) could still be sent, however, all this data is also inside the replay format, so this would most likely be waste of bandwidth.
Thanks in advance,
zkf