Mario Kart MB
https://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl
Mario Kart >> Mario Kart 8 >> How to get other players' TT times
https://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1430016146

Message started by Jazzy on 04/25/15 at 18:42:26

Title: How to get other players' TT times
Post by Jazzy on 04/25/15 at 18:42:26

Hi everyone, first time poster here :) 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.

Title: Re: How to get other players' TT times
Post by Vinnie927 on 04/26/15 at 04:04:18

https://mariokart.tv/en_us/users/*Miiverse*
e.g.
https://mariokart.tv/en_us/users/Vinnie1

Title: Re: How to get other players' TT times
Post by Jazzy on 04/26/15 at 07:51:33


5E616666616D080 wrote:
https://mariokart.tv/en_us/users/*Miiverse*
e.g.
https://mariokart.tv/en_us/users/Vinnie1


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.



Mario Kart MB » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.