FFR API

Provides developers access to data pretaining to FFR The Game.

The current API url is located at:

http://www.flashflashrevolution.com/api/api.php

User API Key

IP Credits

These credits are shared across API keys for your IP.

Remaining: 250 / 250 (100%)

100%

Documentation

Global Parameters

These parameters are used for all API calls.

Type Parameters Description Values
required key API key used for the request. API_KEY
required action The requested API function. See Below

Global Errors

Code ERR_ID Error Message
-1 no_action No action was requested.
-1 invalid_key Invalid API Key.
-1 request_flood Too many request in the last 1 second(s).
-2 insufficient_credits Insufficient credits for request.

Actions

Credits

action = credits

Provides the remaining API credits remaining for the specified key along with the IP credits.


Level Ranks

action = ranks

Provides access to the level ranks for a user. Includes token + legacy files.

Parameters Description
userid The userid the ranks are being requested for. If used, username should be avoided.
username The username the rank are being requested for. If used, userid should be avoided.
Errors
Code ERR_ID Error Message
-1 invalid_user Invalid User Specified.


Recent Games

action = new_recent_games

Provides access to the users last 25 played games as displayed on the daily stats page.

Parameters Description
userid The userid the ranks being requested for. If used, username should be avoided.
username The username the rank being requested for. If used, userid should be avoided.
Errors
Code ERR_ID Error Message
-1 invalid_user Invalid User Specified.


Old Recent Games (Deprecated)

action = recent_games

Provides access to the users last 10 played games.

Parameters Description
userid The userid the ranks are being requested for. If used, username should be avoided.
username The username the rank are being requested for. If used, userid should be avoided.
Errors
Code ERR_ID Error Message
-1 invalid_user Invalid User Specified.


Acheievements

action = achievements

Provides access to the users last 50 achievements.

Parameters Description
userid The userid the ranks are being requested for. If used, username should be avoided.
username The username the rank are being requested for. If used, userid should be avoided.
Errors
Code ERR_ID Error Message
-1 invalid_user Invalid User Specified.


Level Scores

action = level_scores

Provides access to the highscore table of a single level.

Parameters Description
level The selected level to get highscores for.
page Which page of scores to retrieve based on the page limit.
limit The amount of entries per page within a range of 1-10000. If not set, this defaults to 10000.
Errors
Code ERR_ID Error Message
-1 invalid_level_id Invalid Level ID Specified.


Leaderboards

action = leaderboards

Provides access to the leaderboards.

Parameters Description
page Which page of scores to retrieve based on the page limit.
limit The amount of entries per page within a range of 1-500. If not set, this defaults to 50.
Errors
Code ERR_ID Error Message


Tournament

action = tournament

Provides access to the tournament.

Parameters Description
page Which page of scores to retrieve based on the page limit.
limit The amount of entries per page within a range of 1-500. If not set, this defaults to 50.
Errors
Code ERR_ID Error Message


Profile

action = profile

Provides access to the user profile.

Parameters Description
userid The userid the profile being requested for. If used, username should be avoided.
username The username the profile being requested for. If used, userid should be avoided.
Errors
Code ERR_ID Error Message
-1 invalid_user Invalid User Specified.


Top Scores

action = top_scores

Provides access to the users top scores.

Parameters Description
userid The userid the top scores being requested for. If used, username should be avoided.
username The username the top scores being requested for. If used, userid should be avoided.
Errors
Code ERR_ID Error Message
-1 invalid_user Invalid User Specified.


Users

action = users

Provides access to the user lookup.

Parameters Description
name[] A multiform array of usernames.
Errors
Code ERR_ID Error Message


Song List

action = songlist

Provides access to the game song metadata.

Parameters Description
levelid Optional: If set, returns only the single level specified.
Errors
Code ERR_ID Error Message