Welcome, Guest. Please Login or Register    
 
smk mk64 mksc mkdd mkds mkwii mk7 mk8
general   mafia   smk   mk64   mksc   mkdd   mkds   mkw   mk7   mk8   |   problems   |   discord   irc
 
  Home Search Members Login Register
 
Pages: 1
Send Topic Print
How to get other players' TT times (Read 134 times)
Jazzy
King
****
Offline

Going the octave
higher

worships 3550 kartgods
Canada
Gender: male
How to get other players' TT times
04/25/15 at 18:42:26
 
Hi everyone, first time poster here Smiley Just so you know, I've been playing MK casually for about 10 years and started TTing last year. Anyways, I'll get to the point:

You may know that it's possible to retrieve other players' TT times given their NNID. (Edit: You can only get times that players have uploaded to miiverse!) There is actually an Android app mentioned on another thread that does just that. That being said, there seems to be a lack of information on how to get players' times, but I've figured it out and I'm going to share it with you (maybe some other programmers - and non-programmers - will find this useful):

The times are retrieved from the MKTV website, which gets updated at least daily (yes, there is quite a bit of delay). The exact URL to go to is:

http://www.mariokart.tv/en_us/jsonapi/time_trials?category_id=X&other_nnid=Y

where X is the course id (please read the section below on course IDs!) and Y is the NNID of the player you want to get the time for. This URL responds with a JSON file - basically a text file (openable with Notepad, etc.) that is more or less easy to read (hopefully even for non-computer experts) and pretty simple for a computer program to read (parse).

Some more (important) information:

** FILE CONTENTS **

The JSON file contains, in this order: 1) general course information including its name and the cup it appears in; 2) The histogram (bar chart) data, as seen on the MKTV site; 3) the top 6 players' times, Mii names, links to their Mii images and NNIDs; and 4) The specified player's time and Mii/NNID data. 4) and maybe 3) are probably what you're after.

** COURSE IDS **

You can only get information for one course at a time, and to do this you specify a course ID in the URL. The course IDs are not intuitively ordered! Here are the course IDs, which replace 'X' in the above URL:

MKS: 27, WP: 28, SSC: 19, TR: 17
MC: 16, TH: 18, TM: 20, SGF: 21
SA: 26, DS: 29, ED: 25, MW: 24
CC: 23, BDD: 22, BC: 30, RR: 31
rMMM: 33, rMC: 38, rCCB: 36, rTT: 35
rDDD: 42, rDP3: 41, rRRy: 34, rDKJ: 32
rWS: 46, rSL: 37, rMP: 39, rYV: 45
rTTC: 44, rPPS: 43, rGV: 40, rRRd: 47
dYC: 56, dEA: 53, dDD: 50, dMC: 49
dWGM: 57, dRR: 58, dIIO: 55, dHC: 51
dBP: 61, dCL: 62, dWW: 54, dAC: 52
dNBC: 60, dRiR: 59, dSBS: 48, dBB: 63

** EXTRAS **

For those who are interested, there is more stuff available from the MKTV website:

https://mariokart.tv/en_us/jsonapi/videos contains information about the recently posted videos, and https://mariokart.tv/en_us/jsonapi/popular contains information about popular videos, courses, and vehicle parts, as you will find on the MKTV homepage. It's also possible that there is a way to retrieve VR/BR data for players, but I haven't figured it out just yet.
Back to top
 
 

It's far too easy to forget what it's like to be a kid. But one secret to happiness is to be able to pick out links to our childhood in the mundanities of adult life. That's why I love Mario Kart. Whether I'm imagining wading through frosting in Sweet Sweet Canyon to take a bite of that giant donut, or picturing myself, shrunken down, making my way through Waluigi's pinball machine, there's something rejuvenating about the game that provides a nice reminiscence of the halcyon days gone by.
View Profile   IP Logged
Vinnie927
King
****
Offline

#1 lurker

4476 holabolas
Canada
Gender: male
Re: How to get other players' TT times
Reply #1 - 04/26/15 at 04:04:18
 
Back to top
 
 
View Profile   IP Logged
Jazzy
King
****
Offline

Going the octave
higher

hit 3550 moles
Canada
Gender: male
Re: How to get other players' TT times
Reply #2 - 04/26/15 at 07:51:33
 
Vinnie927 wrote on 04/26/15 at 04:04:18:


Yeah, I've seen this page already. In fact, this was what made me suspect that I could retrieve VR data in a similar way to the other data.

But this page isn't too nice for programmatic access, so if someone wants to build a website/app/etc. that can access VR data, it would be better to have a method of retrieval similar to the one described in the OP.


Back to top
 
 

It's far too easy to forget what it's like to be a kid. But one secret to happiness is to be able to pick out links to our childhood in the mundanities of adult life. That's why I love Mario Kart. Whether I'm imagining wading through frosting in Sweet Sweet Canyon to take a bite of that giant donut, or picturing myself, shrunken down, making my way through Waluigi's pinball machine, there's something rejuvenating about the game that provides a nice reminiscence of the halcyon days gone by.
View Profile   IP Logged
Pages: 1
Send Topic Print