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

Reference of v4 user info

TheSnowfield edited this page Apr 20, 2021 · 5 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
recent number, range 0-7. The number of recently played songs expected YES

Explain

Search and return user info.

Return data

format follows the original arcapi

  • recent_score changed to an array, may be null.
  • The items in recent_score may be less than expected.
  • The recent records in recent_score come from the local database.
    While someone triggered the search, it will be updated automatically. It's NOT an arcapi hack.
{
    "status": 0,
    "content": {
        "user_id": 114514,
        "name": "114514",
        "recent_score": [
            {
                "song_id": "grievouslady",
                "difficulty": 2,
                "score": 0,
                "shiny_perfect_count": 0,
                "perfect_count": 0,
                "near_count": 0,
                "miss_count": 0,
                "clear_type": 0,
                "best_clear_type": 0,
                "health": 0,
                "time_played": 1145141145141,
                "modifier": 0,
                "rating": 0
            },
            {
                "song_id": "grievouslady",
                "difficulty": 4,
                "score": 0,
                "shiny_perfect_count": 0,
                "perfect_count": 0,
                "near_count": 0,
                "miss_count": 0,
                "clear_type": 0,
                "best_clear_type": 0,
                "health": 0,
                "time_played": 233333,
                "modifier": 0,
                "rating": 0
            },
            // more data... up to 7 scores
        ],
        "character": 0,
        "join_date": 1145141145141,
        "rating": 0,
        "is_skill_sealed": false,
        "is_char_uncapped": false,
        "is_char_uncapped_override": false,
        "is_mutual": false
    }
}

Error status

status description
0 everything is OK
-1 invalid username or usercode
-2 invalid usercode
-3 invalid recent number
-4 invalid recent number
-5 internal error occurred
-6 user not found
-7 too many users
-8 user not found
-9 allocate an arc account failed
-10 clear friend list failed
-11 add friend failed
-12 internal error occurred
-233 unknown error occurred
Clone this wiki locally