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

Downloading mapsets from API

Open Erinaaaaaaa opened this issue 8 years ago • 7 comments

My friends and I are trying to make a collection manager for osu! We store collections in our own file format (that obviously doesn't contain the mapsets) and we have to download the mapsets in order to successfully import the mapset. As we can't directly download from the website without logging in, we have to use a beatmap mirror (in our case bloodcat) that doesn't host pending maps, which is a problem to restore the collections as its creator intended them to be. We could make a mappack out of the collection and then import it, but as downloading is the most convenient way, we were wondering if we could download from osu! servers without explicitly logging in (users privacy and stuff)

tl;dr i need to download whole mapset with song and everything from my collection manager avoiding if possible logging in as mirrors don't host pending maps

Erinaaaaaaa avatar Feb 04 '17 20:02 Erinaaaaaaa

You could just do a /api/get_beatmaps request using s=SET_ID to get all the beatmap_ids in the set, and then just download the beatmaps returned individually via https://osu.ppy.sh/osu/BEATMAP_ID which doesn't require a login. Unless I misunderstood what you were trying to do

Syriiin avatar Feb 04 '17 20:02 Syriiin

does using this link download the whole mapset (song and everything) ?

Erinaaaaaaa avatar Feb 04 '17 20:02 Erinaaaaaaa

Ah no. Just the beatmap file. Didn't really take into account the actual use case :/

Syriiin avatar Feb 04 '17 20:02 Syriiin

Bump, not having a way to programmatically download beatmaps even if you're authenticated is quite sad. There are lots of cool integrations that this would unlock.

christopher-dG avatar Jun 09 '18 20:06 christopher-dG

It's possible you just need a server and do the magic behind it. It's working on our end pretty well. (osustats)

Ezoda avatar Jun 11 '18 21:06 Ezoda

That's not really the point, public APIs are there to avoid having to do that kind of magic. And I can't back this up but I'm pretty sure peppy does not approve of any of the current methods being used.

christopher-dG avatar Jun 12 '18 16:06 christopher-dG

In addition, I had found something much more interesting than the API to retrieve data but I was told not to use it and use the API instead, so as you just said said, I doubt they'll approve that on the long term. I assume they're ok with it because there's no other way as of now..?

Erinaaaaaaa avatar Jun 12 '18 16:06 Erinaaaaaaa