14

How can I get score & schedule information for all sports matches around the world? I've seen the ESPN API but its available only for strategic partners.

Are there any other solutions, or APIs or RSS feeds for this kind of information?

T Percival
  • 8,526
  • 3
  • 43
  • 43
Sudhir Vadodariya
  • 391
  • 1
  • 2
  • 11

3 Answers3

6

If you want something that's free, it's going to be tough. There are a lot of companies, like Sports Data LLC whose core business model is to provide this data.

That said, I've had some success pulling JSON score data from the NFL website, inspired by Matt Croydon's blog post here:

http://postneo.com/2007/09/09/accidental-apis-nfl-edition

BringMyCakeBack
  • 1,499
  • 2
  • 12
  • 16
3

for anyone else:

an example api endpoint for scores from ESPN is

http://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/scoreboard?lang=en&region=gb&calendartype=whitelist&limit=100&dates=20180407&league=eng.1

the data from this endpoint covers fixtures in the premier league on this day (i.e 2018-04-07)

the endpoint was found by following these steps

  1. open Firefox browser

  2. go to 'Scores' section of espn site (i.e http://www.espn.co.uk/football/scoreboard/_/league/all/)

  3. press ctrl + shift + e to open developer tools window

  4. go to 'Network Monitor' tab

  5. filter by 'XHR'

  6. click on 'English Premier League' from dropdown-box

  7. endpoint address will appear in table

'Open in new tab' to view data


Since the link is down in Sudhir Vadodariya''s answer, here is another one -

www.gregreda.com/2015/02/15/web-scraping-finding-the-api/

which covers a similar problem using Chrome

Declan Taylor
  • 408
  • 6
  • 8
1

ESPN has various unpublished API endpoints that will let you get both scoreboard and schedule information.

Here is another example of a soccer endpoint, showing FIFA games:

Soccer:

Check the "events" key to find individual games.

You didn't specify a sport, but here are some scoreboards available for other sports/leagues:

Football

Baseball

Hockey

Basketball

Note that the data shape may vary slightly between each endpoint, and you should be mindful of potential rate limits.

Source: ESPN's hidden API endpoints

Dave Powers
  • 2,051
  • 2
  • 30
  • 34