Q:
match_id: How do you get it?
A:
You are using the match_details.json interface.
There are alot of interfaces (see sticky thread or the wiki ).
One of them is is matches.json . That one lists all current matches, with some additional data like involved worlds (just Ids again, there is another interface for those) start and end time.
Check out the API/Libraries page on the wiki, there are a few Python libraries listed there that other people have already written.
@Varonth – Thanks, that did it. I was looking at the wrong places lol.
@Dr Ishmael – This is a great list, thanks! I really want to do something like this (for Python) for a personal mini-project. Still learning though, but hope I get there.
btw, in Python, you can just use urllib2 to pull down the url, and then use eval to convert it into a nested dict/list structure.
use eval
You don’t use eval. Ever.
Python’s JSON module works just fine, and there are others like it