Sudhir Vadodariya
Sudhir Vadodariya

Reputation: 391

How can i get the scores and schedules using ESPN API?

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?

Upvotes: 14

Views: 29547

Answers (2)

Dave Powers
Dave Powers

Reputation: 2363

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

Upvotes: 3

Declan Taylor
Declan Taylor

Reputation: 405

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

Upvotes: 3

Related Questions