osu-api icon indicating copy to clipboard operation
osu-api copied to clipboard

Retreive replay data from API

Open ddevault opened this issue 10 years ago • 7 comments

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.

ddevault avatar Jun 15 '15 02:06 ddevault

Please document this! Response contains data in base64 formatted content attribute.

peppy avatar Aug 07 '15 04:08 peppy

Make a note that this only allows 10 requests per minute and should not be used for batch retrievals.

peppy avatar Aug 07 '15 04:08 peppy

I realised you guys don't get score_ids, so this lookup now uses ?m=mode&b=beatmap_id&u=user_id

peppy avatar Aug 07 '15 05:08 peppy

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?

thehowl avatar Aug 07 '15 07:08 thehowl

i'll remove the score_id; it's not needed. encoding is always base64 for now.

peppy avatar Aug 07 '15 07:08 peppy

https://github.com/peppy/osu-api/wiki#get-replay-data documented

thehowl avatar Aug 07 '15 07:08 thehowl

Thanks! This should be suitable for what I need.

ddevault avatar Aug 07 '15 11:08 ddevault