Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Reference of v2 userbest30

TheSnowfield edited this page May 28, 2020 · 1 revision
arguments description optional
usercode 9-digit user code NO

Return data

format follows the original arcapi

  • automatically calculate the score rating and placed in rating
  • recent10_avg will be zero when user ptt is hidden (also is the grayscale)
  • best30_list length maybe less than 30 (usually happens on new players)
{
    "status": 0,
    "content": {
        "best30_avg": 0.0000,
        "recent10_avg": 0.0000,
        "best30_list": [
            {
                "song_id": "grievouslady",
                "difficulty": 2,
                "score": 0,
                "shiny_perfect_count": 0,
                "perfect_count": 0,
                "near_count": 0,
                "miss_count": 0,
                "health": 0,
                "modifier": 0,
                "time_played": 114514145141,
                "best_clear_type": 0,
                "clear_type": 0,
                "character": 0,
                "is_skill_sealed": false,
                "is_char_uncapped": false,
                "rating": 0.0000
            },
            // more data....
        ]
    }
}

Error status

status description
0 everything is OK
-1 invalid usercode
-2 allocate an arc account failed
-3 clear friend list failed
-4 add friend failed
-5 internal error occurred
-6 not played yet
-7 internal error occurred
-8 internal error occurred
-9 internal error occurred
-10 internal error occurred
-11 querying best30 failed
-12 internal error occurred
-13 querying best30 failed
-233 unknown error occurred
Clone this wiki locally