Skip to content

Instantly share code, notes, and snippets.

@paganre
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paganre/83b3470c79476510f47a to your computer and use it in GitHub Desktop.
Save paganre/83b3470c79476510f47a to your computer and use it in GitHub Desktop.
base = 'http://live.mobileapp.fifa.com/api/wc/'
all matches:
base+'matches'
all teams:
base+'teams'
team:
base+'team/{ID}/en'
player:
base+'player/{ID}/en'
match:
base+'match/{ID}/en'
@bleuscyther
Copy link

Can't find the list of match id's anywhere

@paganre
Copy link
Author

paganre commented Jun 18, 2014

GET http://live.mobileapp.fifa.com/api/wc/matches

in the json response : ['data']['group'] will give you an array of match datas, match IDs are given with the key n_MatchID.. quick python script using requests lib:


gr = requests.get('http://live.mobileapp.fifa.com/api/wc/matches').json()['data']['group']
match_ids = [m['n_MatchID'] for m in gr]

these are for the group stages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment