0.3.5 • Published 4 years ago

soccer-ethiopia-api v0.3.5

Weekly downloads
11
License
Apache-2.0
Repository
-
Last release
4 years ago

npm package

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:

  • Latest teams' standing data
  • League schedule
  • This week's league schedule
  • Team details
  • Player details
  • Top players list
  • News
0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago