This is an API for the World Cup (and now, Women's World Cup!) ((and now the World Cup in 2018!)) that scrapes current match results and outputs match data as JSON. No guarantees are made as to its accuracy, but we will do our best to keep it up to date. For example responses, including events such as goals, substitutions, and cards, see the GitHub page.
All match data, updated every minute
https://worldcup.sfg.io/matches
Today's matches
https://worldcup.sfg.io/matches/today
Returns the current match, if a match is happening, otherwise nothing
https://worldcup.sfg.io/matches/current
Matches for any country, by entering their FIFA Code.
https://worldcup.sfg.io/matches/country?fifa_code=ARG
Results for teams (wins, losses, draws, goals_for, goals_against)
https://worldcup.sfg.io/teams/results
Results for teams by group, ordered by current group position
https://worldcup.sfg.io/teams/group_results
List of all teams in world cup, along with FIFA abbreviation
https://worldcup.sfg.io/teams/
You can append ?by_date=desc
to any query to sort the matches by future to past. ?by_date=asc
does past to future.
https://worldcup.sfg.io/matches/today/?by_date=DESC
You can append ?by=
with optional params total_goals
, closest_score
, away_team_goals
, home_team_goals
https://worldcup.sfg.io/matches/?by=total_goals
Uruguay (0) Vs France (2) -- FINAL
Brazil (1) Vs Belgium (2) -- FINAL
Sweden (0) Vs England (2) -- FINAL
Russia (2) Vs Croatia (2) -- FINAL
Croatia wins on penalties 4 to 3