This is a NodeJs api that serve the latest Ethiopian premier league standing data
The data is fetched from Soccer Ethiopia. And this is an unoffical api.
Installation
npm i soccer-ethiopia-api
Get the latest standing data
constsoccer_et=require('soccer-ethiopia-api');//require soccer-et modulesoccer_et.getTeamStandingJSON().then(data=>console.log("OBJ",data));// Get the latest standing data as jsonsoccer_et.getTeamStanding().then(data=>console.log("OBJ",data));// Get the latest standing data as an array
Get the league schedule
constsoccer_et=require('soccer-ethiopia-api');//require soccer-et modulesoccer_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 jsonsoccer_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
constsoccer_et=require('soccer-ethiopia-api');soccer_et.getTeamDetail('ኢትዮጵያ ቡና').then(detail=>console.log("OBJ",detail));// Get the team detail of 'ኢትዮጵያ ቡና' as an objectsoccer_et.getTeamDetailJSON('ኢትዮጵያ ቡና').then(detail=>console.log("OBJ",detail));// Get the team detail of 'ኢትዮጵያ ቡና' as json
Get the top players in the current league
constsoccer_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 objectssoccer_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
constsoccer_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 objectssoccer_et.getLatestNewsJSON().then(topList=>console.dir(topList));// Get the latest news from soccer ethiopia as a json