The following is an example of how an API call might be formatted using JavaScript.
fetch('https://mario-kart-tour-api.herokuapp.com/api/v1/drivers/name?q=mario', {
method: "GET",
headers: {"Content-type": "application/json;charset=UTF-8"}
})
.then(response => response.json())
.then(json => console.log(json));
{}
Drivers |
|
---|---|
GET api/v1/drivers | Returns a list of all drivers |
GET api/v1/drivers/babies | Returns a list of all baby drivers |
GET api/v1/drivers/daily_selects | Returns a list of all drivers that can appear in the Shop as Daily Selects |
GET api/v1/drivers/high_end | Returns a list of all High-End drivers |
GET api/v1/drivers/in_pipes | Returns a list of all drivers that can appear in pipes (e.g. All-Clear Pipe) |
GET api/v1/drivers/kongs | Returns a list of all Kong drivers |
GET api/v1/drivers/koopalings | Returns a list of all Koopaling drivers |
GET api/v1/drivers/name?q= | Returns the driver with the specified name (e.g. mario, lakitu_(party_time)) |
GET api/v1/drivers/name_contains?q= | Returns a list of all drivers with a name that contains the specified string (e.g. mario) |
GET api/v1/drivers/normal | Returns a list of all Normal drivers |
GET api/v1/drivers/special_skill?q= | Returns a list of all drivers with the specified skill (e.g. boomerang_flower, triple_mushrooms) |
GET api/v1/drivers/super | Returns a list of all Super drivers |
Karts |
|
GET api/v1/karts | Returns a list of all karts (data still being added) |
GET api/v1/karts/high_end | Returns a list of all High-End karts |
GET api/v1/karts/name?q= | Returns the kart with the specified name (e.g. daytripper, green_kiddie_kart) |
GET api/v1/karts/name_contains?q= | Returns a list of all karts with a name that contains the specified string (e.g. egg) |
GET api/v1/karts/normal | Returns a list of all Normal karts |
GET api/v1/karts/special_skill?q= | Returns a list of all karts with the specified skill (e.g. slipstream_plus, jump_boost_plus) |
GET api/v1/karts/super | Returns a list of all Super karts |
Gliders |
|
GET api/v1/gliders | Returns a list of all gliders (data still being added) |
GET api/v1/gliders/high_end | Returns a list of all High-End gliders |
GET api/v1/gliders/name?q= | Returns the glider with the specified name (e.g. starchute, shell_parachute) |
GET api/v1/gliders/name_contains?q= | Returns a list of all gliders with a name that contains the specified string (e.g. parafoil) |
GET api/v1/gliders/normal | Returns a list of all Normal gliders |
GET api/v1/gliders/special_skill?q= | Returns a list of all gliders with the specified skill (e.g. coin_plus, bullet_bill_plus) |
GET api/v1/gliders/super | Returns a list of all Super gliders |
Courses |
|
GET api/v1/courses | Returns a list of all courses |
GET api/v1/courses/debut_system?q= | Returns a list of all courses that debuted in a game on the specified system (e.g. SNES, N64) |
GET api/v1/courses/name?q= | Returns the course with the specified name (e.g. Donut Plains 2T (note that casing/spacing matters)) |
GET api/v1/courses/name_contains?q= | Returns a list of all courses with a name that contains the specified string (e.g. donut) |
GET api/v1/courses/normal | Returns a list of all normal course variants |
GET api/v1/courses/ranked | Returns a list of all courses in the current ranked cup |
GET api/v1/courses/reverse | Returns a list of all reverse course variants |
GET api/v1/courses/reverse_trick | Returns a list of all reverse/trick course variants |
GET api/v1/courses/trick | Returns a list of all trick course variants |