Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

betscoreapi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

betscoreapi

data score for bet365

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

logo version env

introduction

betScore is a library for obtaining real-time game data across multiple markets for bet365©

install

use npm for instal this lib and request in your project:

~$ npm install betscoreapi

use

import or require this lib for your project, example:

const betsScore = require('betscoreapi');

now create a callback function for get data:

var bets = new betScore()

bets.all(0).then((data) => {
    console.log(data)
})

this output:

{
  events: [
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'HQfh',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8848591,
      statusDescription: '-',
      hasLiveForm: false,
      name: 'Arsenal - Liverpool',
      startTime: '15:30',
      formatedStartDate: '29.08.2020.',
      startTimestamp: 1598715000,
      slug: 'liverpool-arsenal',
      uniqueTournamentId: 346,
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      hasDraw: true,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'hOsGO',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8747785,
      statusDescription: '-',
      hasLiveForm: false,
      name: 'São Paulo - Corinthians',
      startTime: '14:00',
      formatedStartDate: '30.08.2020.',
      startTimestamp: 1598796000,
      slug: 'sao-paulo-corinthians',
      uniqueTournamentId: 325,
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      hasDraw: true,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'tOsGuc',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8747962,
      statusDescription: '-',
      hasLiveForm: false,
      name: 'Santos - Flamengo',
      startTime: '19:00',
      formatedStartDate: '30.08.2020.',
      startTimestamp: 1598814000,
      slug: 'flamengo-santos',
      uniqueTournamentId: 325,
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      hasDraw: true,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'fOsnO',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8747882,
      statusDescription: '-',
      hasLiveForm: false,
      name: 'Bahia - Palmeiras',
      startTime: '22:00',
      formatedStartDate: '29.08.2020.',
      startTimestamp: 1598738400,
      slug: 'palmeiras-bahia',
      uniqueTournamentId: 325,
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      hasDraw: true,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'ZHsLI',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8738542,
      statusDescription: '-',
      hasLiveForm: false,
      name: 'Olympique Lyonnais - Dijon',
      startTime: '19:00',
      formatedStartDate: '28.08.2020.',
      startTimestamp: 1598641200,
      slug: 'dijon-olympique-lyonnais',
      uniqueTournamentId: 34,
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      hasDraw: true,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'HXfsvJg',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8913029,
      hasSubScore: true,
      hasFirstToServe: true,
      hasDraw: false,
      hasTime: true,
      name: 'Djokovic N. - Bautista Agut R.',
      startTime: '18:20',
      formatedStartDate: '28.08.2020.',
      startTimestamp: 1598638800,
      statusDescription: '-',
      slug: 'bautista-agut-djokovic',
      uniqueTournamentId: 2373,
      periods: [Object],
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasAggregatedScore: false,
      votingEnabled: true,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'rFhsxpt',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8913053,
      hasSubScore: true,
      hasFirstToServe: true,
      hasDraw: false,
      hasTime: true,
      name: 'Konta J. - Azarenka V.',
      startTime: '15:00',
      formatedStartDate: '28.08.2020.',
      startTimestamp: 1598626800,
      statusDescription: '-',
      slug: 'konta-azarenka',
      uniqueTournamentId: 2548,
      periods: [Object],
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasAggregatedScore: false,
      votingEnabled: true,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'xtbsItb',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8907430,
      periods: [Object],
      hasDraw: false,
      name: 'Toronto Raptors - Boston Celtics',
      startTime: '22:30',
      formatedStartDate: '29.08.2020.',
      startTimestamp: 1598740200,
      statusDescription: '-',
      slug: 'toronto-raptors-boston-celtics',
      uniqueTournamentId: 132,
      hasLineups: false,
      hasLineupsList: true,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      roundInfo: [Object],
      customId: 'CybsUyb',
      status: [Object],
      winnerCode: 0,
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8903902,
      hasDraw: false,
      name: 'Boston Bruins - Tampa Bay Lightning',
      startTime: '23:30',
      formatedStartDate: '28.08.2020.',
      startTimestamp: 1598657400,
      statusDescription: '-',
      slug: 'tampa-bay-lightning-boston-bruins',
      uniqueTournamentId: 234,
      periods: [Object],
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    },
    {
      sport: [Object],
      customId: 'efAbshfAb',
      status: [Object],
      homeTeam: [Object],
      awayTeam: [Object],
      homeScore: {},
      awayScore: {},
      time: {},
      changes: [Object],
      hasHighlights: false,
      hasHighlightsStream: false,
      hasGlobalHighlights: false,
      id: 8689047,
      inningsCount: 0,
      hasDraw: true,
      name: 'England - Pakistan',
      startTime: '17:00',
      formatedStartDate: '28.08.2020.',
      startTimestamp: 1598634000,
      statusDescription: '-',
      slug: 'england-pakistan',
      uniqueTournamentId: 11191,
      periods: [Object],
      hasLineups: false,
      hasLineupsList: false,
      hasStatistics: false,
      hasSubScore: false,
      hasAggregatedScore: false,
      hasFirstToServe: false,
      votingEnabled: true,
      hasTime: false,
      isSyncable: true,
      confirmedLineups: false
    }
  ]
}

to get spect Id for event use data.id for get

bets.event(8747962).then((data) => {
    console.log(data)
})

is this output:

{
  markets: [
    {
      sourceId: 92632687,
      structureType: 1,
      marketId: 1,
      marketName: 'Full time',
      isLive: false,
      fid: 92632687,
      suspended: false,
      id: 11281921,
      choices: [Array]
    },
    {
      sourceId: 92632687,
      structureType: 1,
      marketId: 2,
      marketName: 'Double chance',
      isLive: false,
      fid: 92632687,
      suspended: false,
      id: 11281961,
      choices: [Array]
    },
    {
      sourceId: 92632687,
      structureType: 1,
      marketId: 3,
      marketName: '1st half',
      isLive: false,
      fid: 92632687,
      suspended: false,
      id: 11281962,
      choices: [Array]
    },
    {
      sourceId: 92632687,
      structureType: 1,
      marketId: 4,
      marketName: 'Draw no bet',
      isLive: false,
      fid: 92632687,
      suspended: false,
      id: 11281963,
      choices: [Array]
    },
    {
      sourceId: 92632687,
      structureType: 1,
      marketId: 6,
      marketName: 'First team to score',
      isLive: false,
      fid: 92632687,
      suspended: false,
      id: 11281964,
      choices: [Array]
    },
    {
      sourceId: 92632687,
      structureType: 2,
      marketId: 9,
      marketName: 'Match goals',
      choiceGroup: '2.5',
      isLive: false,
      fid: 92632687,
      suspended: false,
      id: 11281965,
      choices: [Array]
    },
    {
      sourceId: 92632687,
      structureType: 1,
      marketId: 17,
      marketName: 'Asian handicap',
      isLive: false,
      fid: 92632688,
      suspended: false,
      id: 11282129,
      choices: [Array]
    }
  ]
}

Keywords

FAQs

Package last updated on 29 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc