Skip to content

fmo/football-data-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Key From Football-Data.org

API_KEY=api-key-here

Simple Request

func main() {
	client := footballdataapi.NewClient()
	resp, err := client.TeamMatches.Fetch(759)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(resp)
}

Matches By Season Or Matchday

func main() {
	client := footballdataapi.NewClient()

	seasonMatches, err := client.Matches.Fetch(footballdataapi.PL, 2025)
	if err != nil {
		log.Fatal(err)
	}

	matchdayMatches, err := client.Matches.Fetch(footballdataapi.PL, 2025, 28)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(seasonMatches, matchdayMatches)
}

About

Go Client to communicate with Football-Data API

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages