osu-api
osu-api copied to clipboard
Retreive replay data from API
I'd like to be able to retrieve replays through the API. For example, I would like to retrieve the top plays for a given map, and download the osr file for the best play.
Please document this! Response contains data in base64 formatted content attribute.
Make a note that this only allows 10 requests per minute and should not be used for batch retrievals.
I realised you guys don't get score_ids, so this lookup now uses ?m=mode&b=beatmap_id&u=user_id
In the response, there is mentioned a "score_id", which value is always 0. Will it eventually have the replay's score ID? And there is also a "encoding" key in the object. Should this tell the API requester the encoding of the replay, in case it changes in the future?
i'll remove the score_id; it's not needed. encoding is always base64 for now.
https://github.com/peppy/osu-api/wiki#get-replay-data documented
Thanks! This should be suitable for what I need.