[API] FFR API Beta

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dinglesberry
    longing
    • Dec 2007
    • 2679

    #31
    Re: [API] FFR API Beta

    Made some API stuff:



    Free webhost lol so its probably gonna be slow, either way theres a simple html form on the index page to search, so far theres:

    Code:
    http://dinglesffr.byethost5.comg/getSongStats.php?levelid=#
    Returns a json object of a songs stats
    Example: http://dinglesffr.byethost5.com/getS...p?levelid=2482

    Result:
    Code:
    {
        "song_name": "Undici",
        "musician": "Terminal 11",
        "step_artist": "DossarLX ODI & TC_Halogen",
        "level_number": "2482",
        "song_genre": "Misc",
        "song_style": "Glitchcore Extreme",
        "difficulty": "0",
        "note_count": "3339",
        "release_date": "08_12_16",
        "song_length": "3:18",
        "number_of_aaas": "0",
        "number_of_fcs": "0",
        "number_of_players": "89",
        "number_of_times_played": "274"
    }
    
    {
        "song_name": "Time to Eye",
        "musician": "SUN3",
        "step_artist": "bmah",
        "level_number": "1337",
        "song_genre": "Dance 2",
        "song_style": "Dance Speed",
        "difficulty": "78",
        "note_count": "1148",
        "release_date": "11_29_09",
        "song_length": "1:49",
        "number_of_aaas": "45",
        "number_of_fcs": "391",
        "number_of_players": "3170",
        "number_of_times_played": "24337"
    }
    Code:
    http://dinglesffr.byethost5.comg/getAdvancedPlayerStats.php?username=""
    Returns a json object of a players advanced stats
    Note: Stats only include games after April 17, 2016. 
    Some stats, like FCs and AAA, are not song specific (e.g. multiple FCs on the same song increase your count)
    Example: http://dinglesffr.byethost5.com/getA...e=Dinglesberry
    Result:
    Code:
    {
        "skill_rating": {
            "value": "62",
            "global_rank": "1186",
            "country_rank": "181",
            "skill_bracket": "Expert (Division 4)"
        },
        "average_rank": {
            "value": "8385.47",
            "global_rank": "3503",
            "country_rank": "548"
        },
        "grandtotal": {
            "value": "4055894755",
            "global_rank": "1887",
            "country_rank": "293"
        },
        "tier_points": {
            "value": "104",
            "global_rank": "1071",
            "country_rank": "184",
            "skill_bracket": "Tier 0"
        },
        "AAAs": {
            "value": "17",
            "global_rank": "141",
            "country_rank": "28"
        },
        "full_combos": {
            "value": "523",
            "global_rank": "23",
            "country_rank": "7"
        },
        "single_digit_goods": {
            "value": "170",
            "global_rank": "62",
            "country_rank": "14"
        },
        "passes": {
            "value": "523",
            "global_rank": "23",
            "country_rank": "7"
        },
        "notes_hit": {
            "value": "2374124",
            "global_rank": "14",
            "country_rank": "5"
        },
        "keys_hit": {
            "value": "2392596",
            "global_rank": "16",
            "country_rank": "5"
        },
        "play_time": {
            "value": "73.67 Hours",
            "global_rank": "16",
            "country_rank": "4"
        },
        "max_combos": {
            "value": "1679214",
            "global_rank": "12",
            "country_rank": "5"
        },
        "ranked_plays": {
            "value": "2785",
            "global_rank": "20",
            "country_rank": "5"
        },
        "unranked_plays": {
            "value": "46",
            "global_rank": "107",
            "country_rank": "16"
        },
        "player_info": {
            "username": "Dinglesberry",
            "skill_rating": "62",
            "progress_to_level": "6.99"
        }
    }
    Code:
    http://dinglesffr.byethost5.com/getTopScores.php?username=""
    Returns a json object of a players top scores, as well as their level + progress to next level
    Example: http://dinglesffr.byethost5.com/getT...e=Dinglesberry
    Result:
    Code:
    {
        "player_info": {
            "username": "Dinglesberry",
            "skill_rating": "62",
            "progress_to_level": "6.99"
        },
        "rank_1": {
            "song_difficulty": "69",
            "song_name": "Midnight Dragon",
            "aaa_equiv": "62.67",
            "perfects": "24.04%",
            "goods": "1386",
            "averages": "9",
            "misses": "0",
            "boos": "1",
            "time_obtained": "5 hours ago"
        },
        "rank_2": {
            "song_difficulty": "66",
            "song_name": "Crimson Flood",
            "aaa_equiv": "62.58",
            "perfects": "18.60%",
            "goods": "1048",
            "averages": "4",
            "misses": "1",
            "boos": "0",
            "time_obtained": "4 days ago"
        },
        "rank_3": {
            "song_difficulty": "68",
            "song_name": "Lawn Wake I",
            "aaa_equiv": "62.36",
            "perfects": "14.35%",
            "goods": "1407",
            "averages": "10",
            "misses": "0",
            "boos": "0",
            "time_obtained": "2 days ago"
        },
    	.^.
    	.|.
    	.v.
        "rank_98": {
            "song_difficulty": "63",
            "song_name": "reveal yourself",
            "aaa_equiv": "52.49",
            "perfects": "0%",
            "goods": "1061",
            "averages": "19",
            "misses": "0",
            "boos": "0",
            "time_obtained": "2 months ago"
        },
        "rank_99": {
            "song_difficulty": "63",
            "song_name": "We Wish You A Merry XMas (Jazz...",
            "aaa_equiv": "52.39",
            "perfects": "0%",
            "goods": "1444",
            "averages": "17",
            "misses": "1",
            "boos": "0",
            "time_obtained": "1 month ago"
        },
        "rank_100": {
            "song_difficulty": "56",
            "song_name": "Entry",
            "aaa_equiv": "52.29",
            "perfects": "0%",
            "goods": "841",
            "averages": "6",
            "misses": "0",
            "boos": "0",
            "time_obtained": "2 months ago"
        }
    }
    TODO:
    -Please suggesterino any stats.. perhaps daily stats is next.
    Last edited by Dinglesberry; 08-18-2016, 08:24 PM.

    Comment

    Working...