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

Reference of v4 user best

TheSnowfield edited this page May 23, 2021 · 7 revisions
arguments description optional
user user name or 9-digit user code YES, while passing usercode
usercode 9-digit user code YES, while passing user
songname any song name for fuzzy search NO
difficulty accept format are 0/1/2/3 or pst/prs/ftr/byn or past/present/future/beyond NO

Explain

Search and return the best score that the user has submitted to the server.

Return data

format follows the original arcapi

  • automatically calculate score rating and place in rating
{
    "status": 0,
    "content": {
        "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": 1145141145141,
        "best_clear_type": 0,
        "clear_type": 0,
        "character": 0,
        "is_skill_sealed": false,
        "is_char_uncapped": false,
        "rating": 0.0000
    }
}

Error status

status description
0 everything is OK
-1 invalid username or usercode
-2 invalid usercode
-3 invalid songname
-4 invalid difficulty
-5 invalid difficulty (map format failed)
-6 this song is not recorded in the database
-7 too many records
-8 internal error
-9 this song has no beyond level
-10 internal error occurred
-11 user not found
-12 too many users
-13 internal error occurred
-14 clear friend list failed
-15 allocate an arc account failed
-16 add friend failed
-17 internal error occurred
-18 internal error occurred
-19 not played yet
-233 unknown error occurred
Clone this wiki locally