Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-ESPN-API

A Go client for the ESPN public API — live scores, standings, and game data for your favorite sports, without an API key.

Features

  • 🏀 Live scores across leagues (NBA, NFL, MLB, NCAA, ...)
  • 📊 Standings and team data
  • ⚡ Concurrent, typed, idiomatic Go
  • 🧪 Tested against the live ESPN API

Install

go get github.com/savioruz/Go-ESPN-API

Usage

package main

import (
    "fmt"
    espn "github.com/savioruz/Go-ESPN-API"
)

func main() {
    client := espn.NewClient()
    scores, err := client.Scores("nba") // or "nfl", "mlb", ...
    if err != nil {
        panic(err)
    }
    fmt.Printf("Got %d live games\n", len(scores))
}

Why

ESPN's public endpoints are undocumented and change shape often. This library wraps them in a typed, stable API so your Go projects just work.

License

MIT

About

ESPN Public API

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages