1.2.2 • Published 3 months ago

sportradar-sdk v1.2.2

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

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)
1.2.2

3 months ago

1.2.1

3 months ago

1.2.0

3 months ago

1.1.0

9 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago