soccer-ethiopia-api
v0.3.5
Published
API to fetch details about Ethiopian soccer premier league
Downloads
112
Maintainers
Readme
The data is fetched from Soccer Ethiopia. And this is an unoffical api.
Installation
npm i soccer-ethiopia-api
- Get the latest standing data
const soccer_et = require('soccer-ethiopia-api'); //require soccer-et module
soccer_et.getTeamStandingJSON().then(data => console.log("OBJ" , data)); // Get the latest standing data as json
soccer_et.getTeamStanding().then(data => console.log("OBJ" , data)); // Get the latest standing data as an array
- Get the league schedule
const soccer_et = require('soccer-ethiopia-api'); //require soccer-et module
soccer_et.getAllLeagueScheduleJSON().then(data => console.log("OBJ" , data)); // Get the league schedule as json (All of it)
soccer_et.getAllLeagueSchedule().then(data => console.log("OBJ" , data)); // Get the league schedule as an array (All of it)
soccer_et.getThisWeekLeagueScheduleJSON().then(data => console.log("OBJ" , data)); // Get this week's league schedule as json
soccer_et.getThisWeekLeagueSchedule().then(data => console.log("OBJ" , data)); // Get this week's league schedule as an array
- Get full detail about a team using it's predefined id or it's name
const soccer_et = require('soccer-ethiopia-api');
soccer_et.getTeamDetail('ኢትዮጵያ ቡና').then(detail => console.log("OBJ" , detail)); // Get the team detail of 'ኢትዮጵያ ቡና' as an object
soccer_et.getTeamDetailJSON('ኢትዮጵያ ቡና').then(detail => console.log("OBJ" , detail)); // Get the team detail of 'ኢትዮጵያ ቡና' as json
- Get the top players in the current league
const soccer_et = require('soccer-ethiopia-api');
soccer_et.getTopPlayersList().then(topList => console.log("OBJ" , topList)); // Get the top players in the league currently as an array of objects
soccer_et.getTopPlayersListJSON().then(topList => console.log("OBJ" , topList)); // Get the top players in the league currently as json
- Get the latest news from soccer ethiopia
const soccer_et = require('soccer-ethiopia-api');
soccer_et.getLatestNews().then(topList => console.log("OBJ" , topList)); // Get the latest news from soccer ethiopia as an array of objects
soccer_et.getLatestNewsJSON().then(topList => console.dir(topList)); // Get the latest news from soccer ethiopia as a json
Features in this lib:
- [x] Latest teams' standing data
- [x] League schedule
- [x] This week's league schedule
- [x] Team details
- [ ] Player details
- [x] Top players list
- [X] News