ppy / osu-api

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

Add request for a user's scores in the top 1-500. #218

Open willyosu opened 6 years ago

willyosu commented 6 years ago

Proposal I've been looking for a way to get data for a user's scores that are in the top 1-500 of all beatmaps. Pretty much the same as osustats.ppy.sh but as a get request. For some users this would be quite lengthy but I'm sure there's some way around that. Practical applications for this would include commands bots to return the amount of top n (1 to n) scores a user has, or alternative ranking systems that weight map rank and length held (and more applications I probably haven't thought of).

Example Parameters

Example Response

[{
    "beatmap_id"         : "7654321",
    "score"            : "1234567",
    "rank"            : "1",
    "count300"         : "300",
    "count100"         : "50",
    "count50"          : "10",
    "countmiss"        : "1",
    "maxcombo"         : "321",
    "countkatu"        : "10",
    "countgeki"        : "50",
    "perfect"          : "0",
    "enabled_mods"     : "76",
    "date"             : "2013-06-22 9:11:16",
    "rank"             : "SH",
    "pp"               : "1.3019",
}, { ... }, ...]
peppy commented 6 years ago

This is currently unfeasible due to the overhead involved, but will come with v2 of the api