sportradar-sdk

1.2.2 • Public • Published

Simple wrapper over Sportradar API. Request/Response typed via JSDoc.

code style: prettier

Overview

Supported APIs

  • Soccer v4
  • Volleyball v2
  • Basketball v2
  • Ice hockey global v2

Usage

Detailed methods in src folder

const api = new SportradarSoccerV4Api({
	apiKey: process.env[`SPORTRADAR_SOCCER_GAME_API_KEY`],
	locale: 'en',
});

const competition = await api.getCompetitionInfo({
    urn_competition: 'sr:competition:7', // UEFA Champions League
});
const seasons = await api.getCompetitionSeasons({
	urn_competition: 'sr:season:106479', // 23/24 years
});
const eventInfo = await api.getSportEventSummary({
	urn_sport_event: '',
});

TODOs

  • Add typescript support
  • Cover other sports (on request)

Readme

Keywords

Package Sidebar

Install

npm i sportradar-sdk

Weekly Downloads

15

Version

1.2.2

License

none

Unpacked Size

813 kB

Total Files

15

Last publish

Collaborators

  • byurchuk