ppy / osu-api

Public API for accessing osu! related data.
320 stars 16 forks source link

Retreive replay data from API #94

Open ddevault opened 9 years ago

ddevault commented 9 years ago

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.

peppy commented 9 years ago

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

peppy commented 9 years ago

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

peppy commented 9 years ago

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

thehowl commented 9 years ago

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?

peppy commented 9 years ago

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

thehowl commented 9 years ago

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

ddevault commented 9 years ago

Thanks! This should be suitable for what I need.