api for sports statistics and real-time bet365 games. With it you can choose sports data like:
- Basketball
- Tennis
- Table Tennis
- Hockey
- Esports
- Handball
- Volleyball
- Baseball
- American Football
- Motorsport
- Rugby
- More
- Darts
- Cricket
- Snooker
- Futsal
- Badminton
- Aussie Rules
- Beach Volleyball
- Waterpolo
- Floorball
- Bandy
Where all live data can be set from your current time in UTC format.
you can apply this library to your project through the NPM or Yarn repository
npm install sport-score --save
and now import the library into your javascript project
import Score from "sport-score";
const api = new Score({
version: 'v1',//version from API
sport: 'football'//sport model
});
use this method for get automatic language and region.
- define true or false for get local language
api.getlang(true).then(rest => {
console.log(rest) // callback
})
use this method for get the number of live events
api.eventCount().then(rest => {
console.log(rest) // callback
})
to get scheduled Events, you can use this:
api.scheduledEvents('2021-05-06').then(rest => {
console.log(rest)
})
use this method for get the odds information.
- you can define language for callback.
api.oddsProviders('PT').then(rest => {
console.log(rest)
})
use this method for get web configuration.
- you can define language for callback.
api.config.uniqueTournamentsWeb('BR').then(rest => {
console.log(rest) // callback
})
use this method for get Football configuration.
- you can define language for callback.
api.config.uniqueTournamentsFootball('BR').then(rest => {
console.log(rest) // callback
})
use this method for get Football configuration.
- you can define language for callback.
api.config.uniqueTournamentsFootball('BR').then(rest => {
console.log(rest) // callback
})
this method get all sport information with details from games.
// for get Top games from today
api.trendingTopPlayers().then(rest => {
console.log(rest)
})
// get all data from spect day (if null is from today for default). Define number of rows if you like.
api.toDay('2021-05-06', '1000').then(rest => {
console.log(rest)
})
//get categories from all games.
api.categories().then(rest => {
console.log(rest)
})
this method return all live events.
api.live().then(rest => {
console.log(rest)
})
to get odds information, you can use 2 methods:
//this method returns all odd informations in live
api.oddsFeaturedEvents('2021-05-06', '1', '-10800').then(rest => {
console.log(rest)
})
//this method return a spect odds for any event in live
api.fracionalOdds('9223864').then(rest => {
console.log(rest)
})
for get statistics and metrics for a any event, you can use this method:
api.statistics('9223864').then(rest => {
console.log(rest)
})
to get a probability win statistic, you can use this method:
api.votes('9223864').then(rest => {
console.log(rest)
})
- Note: this method return a popular vote for a event in live. This have a significant error margin.
Contact-me on telegram: @vratts
email: victor@vratts.com