• Stars
    star
    726
  • Rank 62,418 (Top 2 %)
  • Language
  • License
    Creative Commons ...
  • Created about 9 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Free open public domain football data in JSON incl. English Premier League, Bundesliga, Primera División, Serie A and more - No API key required ;-)

football.json

Free open public domain football data in the JSON (JavaScript Object Notation) data interchange format.

Leagues include:

  • English Premier League, Championship, League One, League Two
  • Deutsche Bundesliga, 2. Bundesliga, 3. Liga
  • Spanish Primera División ("La Liga"), Segunda División
  • Italian Serie A, Serie B
  • French Ligue 1, Ligue 2
  • and more

Example - Premier League 2015/16 Match Schedule (Fixtures and Results) - 2015-16/en.1.json:

{
  "name": "Premier League 2015/16",
  "matches": [
        {
          "round": "Matchday 1", 
          "date":  "2015-08-08",
          "team1": "Manchester United",
          "team2": "Tottenham Hotspur",
          "score": { "ft": [1, 0] }
        },
        {
          "round": "Matchday 1", 
          "date":  "2015-08-09",
          "team1": "Arsenal",
          "team2": "West Ham United",
          "score": { "ft": [0, 2] }
        },
        ...
  ]
}

Example - Premier League 2015/16 Clubs - 2015-16/en.1.clubs.json:

{
  "name": "Premier League 2015/16",
  "clubs": [
    {
      "name":    "Chelsea",
      "code":    "CHE"
    },
    {
      "name":    "Arsenal",
      "code":    "ARS"
    },
    {
      "name":    "Manchester United",
      "code":    "MUN"
    },
    ...
  ]
}

How to Use the Public JSON API Service - No API Key Required ;-)

Use the "raw" links served by GitHub ( otherwise you get the complete "formatted" GitHub page). Example:

$ curl https://raw.githubusercontent.com/openfootball/football.json/master/2015-16/en.1.clubs.json

Updates / Contributions Welcome - Please Update the Football.TXT Sources

Note: The Football.JSON files get (auto-)generated using the datasets in the Football.TXT format, thus, please do NOT edit the (auto-)generated JSON files but the Football.TXT sources in the country repos e.g.:

  • English Premier League, Championship, League One, League Two in /england
  • Deutsche Bundesliga, 2. Bundesliga, 3. Liga in /deutschland
  • Spanish Primera División ("La Liga"), Segunda División in /espana
  • Italian Serie A, Serie B in /italy
  • French Ligue 1, Ligue 2 in /france
  • and so on

and than (auto-)generate the football.json updates. If you only edit / patch the (auto-)generated JSON files without updating the sources than your changes will get lost / overwritten with the next update.

Do-It-Yourself (DIY) - How To (Auto)-Generate and Update the football.json Datasets

If you want to help out updating the (auto-)generated football.json datasets right here from the sources - you are more than welcome. See the yorobot/football.json build scripts to get started or use your very own.

Add Your Leagues and Tournaments!

Any leagues or tournaments missing? Contributions welcome! For starting your own repo from scratch see the League Quick Starter Kit.

More - Add Your Scripts Here

Enrique Lopez Magallon (@enadol) writes:

Greetings! I started coding the following python robot to read the .txt files (for instance, "1-bundesliga-i.txt)" and generate an emulated version of the JSONs featured in football.json.

https://github.com/enadol/fbjsonrobot

Just make sure the proper .txt file is on the same folder, launch the file launch.py and that's (almost) it! For other leagues, adapt is required.

It's still not perfect, but that's Github is for! 😄

Have fun! ⚽️ ⚽️

Nurgazy Nazhimidinov (@nurgasemetey) writes:

I use [the football.json datasets] in my tool.

Basically it compares the last season and this season head-to-head results of the [English Premier League] team.

Here is the link: https://compare-last-season.netlify.app/

Here is the source code: https://github.com/nurgasemetey/compare-last-season

License

The football.json schema, data and scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.

Questions? Comments?

Send them along to the Open Sports & Friends Forum/Mailing List. Thanks!

More Repositories

1

worldcup

Free open public domain football data for the World Cup (incl. Qatar 2022, Russia 2018, Brazil 2014, etc.) and World Cup Quali(fiers)
544
star
2

england

Free open public domain football data for England (and Wales) incl. English Premier League (EPL) etc.
405
star
3

awesome-football

A collection of awesome football (national teams, clubs, match schedules, players, stadiums, etc.) datasets
197
star
4

worldcup.json

Free open public domain football data for the world cups in JSON incl. Qatar 2022, Russia 2018 and more - No API key required ;-)
176
star
5

openfootball.github.io

Open Football Data (football.db) Website
HTML
144
star
6

south-america

Free open public domain football data (football.db) for South America (incl. Brazil • Brasil, Argentina, and much more)
76
star
7

quick-starter

football.db quick starter datafile templates for worldcup.db, euro.db, england.db, etc. - build your own football.db with the sportdb command line tool
Ruby
75
star
8

espana

Free open public domain football data (football.db) for España (Spain) / Europe - Primera División / La Liga, etc.
68
star
9

deutschland

Free open public domain football data for Germany (Deutschland) incl. Deutsche Bundesliga, 2. Bundesliga, 3. Liga, DFB Pokal etc.
67
star
10

euro

Free open public domain football data (euro.db) for Euro 2008, Euro 2012, Euro 2016, Euro 2020 (2021), Euro 2024, etc.
50
star
11

clubs

Free open public domain football data for the world's football clubs (& stadiums) - home of the clubs.db download / release
50
star
12

schema.sql

football.db database schema (tables, views, etc.) scripts (in SQL) and documentation
48
star
13

leagues

Free open public domain football datasets for national & international football club leagues & cups from around the world - home of the leagues.db download/release
39
star
14

italy

Free open public domain football data (football.db) for Italy / Europe - Serie A etc.
37
star
15

europe-champions-league

Free open public domain football data for Champions League (incl. Qualifiers), Europa League / Europe
36
star
16

sandbox

sandbox - misc (open) football data & scripts
29
star
17

players

Free open public domain football data (football.db) for players (goalkeepers, defenders, midfielders, forwards) - home of the players.db download / release
26
star
18

docs

football.db documentation incl. notes, articles, tips, guides, etc.
Shell
19
star
19

europe

Free open public domain football data for Europe (incl. France, Netherlands, Belgium, Russia, Ukraine, and much more)
15
star
20

austria

Free open public domain football data for Austria (Österreich) incl. Österr. Bundesliga, Zweite Liga, Regionalliga (Ost, Mitte, West), ÖFB Cup, etc.
15
star
21

league-starter

football.db league quick starter sample - start your own leagues & cups
14
star
22

euro.json

Free open public domain football data for the European Football Championship ("Euro") in JSON incl. Euro 2024 and more - No API key required ;-)
14
star
23

national-teams

Free open public domain football data (football.db) for the world's national teams
12
star
24

schema

football.db database schema docu
HTML
7
star
25

copa-america

Free open public domain football data (football.db) for national teams in South America (e.g. Copa América)
7
star
26

help

help & support incl. frequently asked questions (FAQs) and answers - let's keep all support question in one issue tracker, thanks
5
star
27

africa-cup

Free open public domain football data (football.db) for Africa / Cup of Nations 2013, Cup of Nations 2015, etc.
5
star
28

world

Free open public domain football data incl. major leagues from North America, Asia, Australia and much more
4
star
29

women-world-cup

Free open public domain football data for the Women's World Cup (incl. Canada 2015, etc.)
4
star
30

copa-america.json

Free open public domain football data for the Copa América in JSON incl. Copa América 2024 and more - No API key required ;-)
4
star
31

copa-libertadores

Free open public domain football data (football.db) for Copa Libertadores & Sudamericana (South America)
4
star
32

mexico

Free open public domain football data (football.db) for Mexico / North America
3
star
33

club-world-cup

Free open public domain football data (football.db) for the Club World Cup (Japan 2012, Morocco 2013, Morocco 2014, etc.)
3
star
34

confed-cup

Free open public domain football data (football.db) for the Confederations Cup (Brazil 2013, Russia 2017, etc.)
2
star
35

futbol-es

Free open public domain football.db addon - teams, leagues, etc. names in Spanish/Español (es)
2
star
36

world2

world (top) leagues & cups - free open public domain football datasets in the Football.TXT format
2
star
37

fussball-de

Free open public domain football.db addon - teams, leagues, etc. names in German/Deutsch (de)
2
star
38

north-america-gold-cup

Free open public domain football data (football.db) for national teams in North America, Central America & Caribbean Islands (e.g. Gold Cup / Copa de Oro)
2
star
39

north-america-champions-league

Free open public domain football data (football.db) for Champions League (North America, Central America & Caribbean)
2
star
40

spec

Football.TXT Format Spec (& Tests)
2
star
41

opendata-theme

CSS
1
star
42

women-euro-cup

Free open public domain football data (football.db) for Women's Euro (incl. The Netherlands 2017, etc.)
1
star