/api/event/:key/teams
/api/event/en.2012_13/teams
|
English Premier League 2012/2013 |
/api/event/de.2012_13/teams
|
Deutsche Bundesliga 2012/2013 |
/api/event/euro.2012/teams
|
Euro (European Championship) Cup 2012 |
/api/event/wm.2010/teams
|
World Cup 2010 |
/api/event/:key/rounds
/api/event/en.2012_13/rounds
|
English Premier League 2012/2013 |
/api/event/de.2012_13/rounds
|
Deutsche Bundesliga 2012/2013 |
/api/event/euro.2012/rounds
|
Euro (European Championship) Cup 2012 |
/api/event/wm.2010/rounds
|
World Cup 2010 |
/api/event/:key/round/:pos
/api/event/en.2012_13/round/2
|
English Premier League 2012/2013 - 2nd Round |
/api/event/de.2012_13/round/5
|
Deutsche Bundesliga 2012/2013 - 5th Round |
/api/event/euro.2012/round/1
|
Euro (European Championship) Cup 2012 - 1st Round |
/api/event/wm.2010/round/20
|
World Cup 2010 - 20th Round (=> Final) |
In your hypertext (HTML) document using a plain vanilla cross-domain JavaScript request (using the JSONP technique):
<script>
function handleGames( json ) {
// Do something with the returned data
}
</script>
<script src="http://sportdbapi.herokuapp.com/api/event/en.2012_13/round/2?callback=handleGames"></script>
Or using the jQuery library using the getJSON function:
$.getJSON('http://sportdbapi.herokuapp.com/api/event/en.2012_13/round/2?callback=?', function(json) {
// Do something with the returned data
});
Note: Add the callback=? query parameter to tell jQuery to use a cross-domain JSONP request.
That’s it.
| English Premier League 2012/2013 | 1. Runde • 2. Runde • 3. Runde • 4. Runde • 5. Runde • 6. Runde • 7. Runde • 8. Runde • 9. Runde • 10. Runde • 11. Runde • 12. Runde • 13. Runde • 14. Runde • 15. Runde • 16. Runde • 17. Runde • 18. Runde • 19. Runde • 20. Runde |
| Deutsche Bundesliga 2012/2013 | 1. Runde • 2. Runde • 3. Runde • 4. Runde • 5. Runde • 6. Runde • 7. Runde • 8. Runde • 9. Runde • 10. Runde • 11. Runde • 12. Runde • 13. Runde • 14. Runde • 15. Runde • 16. Runde • 17. Runde |
| Euro Cup 2012 | Vorrunde 1. Spieltag • Vorrunde 2. Spieltag • Vorrunde 3. Spieltag • Viertelfinale • Halbfinale • Finale |
| World Cup 2010 | 1. Runde • 2. Runde • 3. Runde • 4. Runde • 5. Runde • 6. Runde • 7. Runde • 8. Runde • 9. Runde • 10. Runde • 11. Runde • 12. Runde • 13. Runde • 14. Runde • 15. Runde • 16. Runde • 17. Runde • 18. Runde • 19. Runde • 20. Runde |
sport.db?A free open sports database & schema. More »
sport.db.api?A free open source sample web service in Ruby w/ Sinatra. More »