Series api/series.php
.../api/series.php
Get all series
Format:
{ series: [
{
id: 1,
name: 'Classic series'
}
] }
Games api/games.php
.../api/games.php
Get all games
.../api/games.php?series=1
Get all games in series '1' (classic)
.../api/games.php?game=1
Show only game '1' (Mega Man)
Format:
{ games: [
{
id: 1,
series_id: 1,
name: 'Mega Man',
short_name: 'Mega Man',
has_gametime: 0,
uses_gametime: 0,
forum: 'http://awesome-forum.com/mm1',
categories: [
{ id: 268, name: 'Any%' },
{ id: 305, name: '100%' },
{ id: 676, name: 'Any% (Buster only)' }
] }
] }
Users api/users.php
.../api/users.php
Get all users
.../api/users.php?user=2
Show only user with id '2'
.../api/users.php?twitter=abc
Show users with a Twitter matching "abc"
.../api/users.php?twitch=abc
Show users with a Twitch matching "abc"
.../api/users.php?youtube=abc
Show users with a Youtube matching "abc"
.../api/users.php?douyutv=abc
Show users with a DouyuTV matching "abc"
.../api/users.php?niconico=abc
Show users with a NicoNico matching "abc"
.../api/users.php?smashcast=abc
Show users with a Smashcast matching "abc"
Format:
{ users: [
{
id: 2,
name: 'Joka',
user_level: 4,
country: 'se',
twitter: 'thisIsJoka',
twitch: 'jokaah',
smashcast: 'joka',
youtube: 'jokzzor'
}
] }
Runs api/runs.php
.../api/runs.php
Get all unverified runs (with a video link)
.../api/runs.php?id=3
Get a specific run
.../api/runs.php?limit=10
Get the 10 latest verified runs
.../api/runs.php?game=1
Get all runs of game '1' (Mega Man)
.../api/runs.php?game=1&limit=10
Get the 10 latest verified runs of game '1' (Mega Man)
.../api/runs.php?runner=Joka
Get all runs by 'Joka'
.../api/runs.php?ex=1
Show extended information (see below)
Format (normal):
{ runs: [
{
id: 1,
runner: 'Exo',
- OR -
user_id: 2,
game_id: 1,
category: 'Any% (Glitchless)',
version: 'Emulator',
version_detail: 'FCEUX', - If available
time: 136700,
game_time: 1000, - If available
converted_time: 136700,
video: 'http://www.twitch.tv/exosda/b/310088459', - If available
verified: 1,
verified_by: 'Joka', - If available
notes: 'lol run', - If available
submitted_by: 'Joka'
}
] }
Format (extended):
{ runs: [
{
id: 1,
runner: 'Exo',
- OR -
user: {
id: 2,
name: 'Joka',
user_level: 4,
country: 'se',
twitter: 'thisIsJoka',
twitch: 'jokaah',
smashcast: 'joka',
youtube: 'jokzzor'
},
game: {
id: 1,
series_id: 1,
name: 'Mega Man',
short_name: 'Mega Man',
has_gametime: 0,
uses_gametime: 0,
forum: 'http://awesome-forum.com/mm1',
categories: [
{ id: 268, name: 'Any%' },
{ id: 305, name: '100%' },
{ id: 676, name: 'Any% (Buster only)' }
]
},
category: 'Any% (Glitchless)',
version: 'Emulator',
version_detail: 'FCEUX', - If available
time: 136700,
game_time: 1000, - If available
converted_time: 136700,
video: 'http://www.twitch.tv/exosda/b/310088459', - If available
verified: 1,
verified_by: 'Joka', - If available
notes: 'lol run', - If available
submitted_by: 'Joka',
rank: 15
}
] }
Records api/records.php
.../api/records.php
Get the record for every category
.../api/records.php?category=3
Get the record for a specific category
.../api/records.php?game=10
Get the record for every category of game '10'
.../api/records.php?ex=1
Show extended information
Format:
Same as runs
Live api/live.php
.../api/live.php
Get all live streams
.../api/live.php?series=1
Get all live streams currently playing a game in series '1' (classic)
Format:
{ live: [
{
runner: 'Someone',
game: 'Mega Man',
series_id: 1,
stream: 'http://smashcast.tv/someone',
title: 'Playing mega man',
viewers: 1337
}
] }