1.0.2 • Published 5 years ago

node-football-api v1.0.2

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

Node football-data API

Node football-data is a wrapper to the API football-data.org for NodeJS. Create a FREE TIER API KEY from https://www.football-data.org and start playing around.

Installation

$ npm i node-football-api --save

Documentation

Initialize with API and TIER_API

const footballData = new FootballApi('API_KEY', 'TIER_API')

Get competitions:

footballData.competitions((err, response, body) => {
    console.log(body)
})

Get competition by id:

footballData.competition(2003, (err, response, body) => {
    console.log(body)
})

Get all teams by competitions id and season:

//id and season
footballData.teams(2003, 2018 (err, response, body) => {
    console.log(body)
})

Get a competition standing by competition id:

footballData.standings(2003, (err, response, body) => {
    console.log(body)
})

More...

Todos

  • Write Tests

License

MIT

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago