https://github.com/tlowerison/nbastats
A go HTTP client for fetching data from various NBA related data sources. Results are automatically formatted in .tsv format.
https://github.com/tlowerison/nbastats
nba-stats
Last synced: 5 months ago
JSON representation
A go HTTP client for fetching data from various NBA related data sources. Results are automatically formatted in .tsv format.
- Host: GitHub
- URL: https://github.com/tlowerison/nbastats
- Owner: tlowerison
- License: mit
- Created: 2021-02-28T08:54:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-08T00:29:15.000Z (over 5 years ago)
- Last Synced: 2024-06-20T08:13:54.410Z (almost 2 years ago)
- Topics: nba-stats
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nbastats
A go HTTP client for fetching data from various NBA related data sources. Results are automatically formatted in .tsv format.
## Usage
```go
package main
import (
"fmt"
"github.com/tlowerison/nbastats"
)
func main() {
client := nbastats.NewClient()
data, err := client.TeamNews(&nbastats.TeamNewsFields{TeamID: "1610612763"})
if err != nil {
fmt.Println(err.Error())
} else {
fmt.Println(data)
}
}
```
## Endpoints
### CommonAllPlayers
Basic data about all players in a league.
### CommonPlayerInfo
Basic data about a specific player.
### LeagueGameLog
Game logs for a specific league.
### LeaguePlayerStats
Player stats for a specific player.
### Lineups
Lineup data split by a variety of fields.
### PlayByPlay
Event data for a specific game.
### PlayerDashboard
Detailed data for a specific player.
### PlayerGameLog
Game logs for a specific player.
### Scoreboard
Live scores of ongoing games.
### TeamDashboard
Detailed data for a specific team.
### TeamGameLog
Game logs for a specific team.
### TeamNews
Recent news about players on a specific team.