SportMonks TypeScript SDK

A comprehensive, production-ready TypeScript SDK for the SportMonks Football API v3. Built with modern TypeScript, featuring complete type safety, intuitive method chaining, automatic retries, real-time polling, and extensive test coverage.

Features

  • ๐Ÿš€ Full TypeScript Support - Complete type definitions for all 50+ entities and responses
  • ๐Ÿ”— Intuitive Method Chaining - Fluent API design for building complex queries naturally
  • ๐Ÿ“ฆ Comprehensive Coverage - 10 resources with 56 endpoints covering all major football data
  • ๐Ÿ”„ Smart Retry Logic - Automatic retry with exponential backoff and rate limit awareness
  • ๐Ÿ“Š Real-time Updates - Built-in polling utilities for livescores and transfer monitoring
  • โœ… Input Validation - Automatic validation of dates, IDs, and search queries with helpful errors
  • ๐ŸŽฏ Type-safe Includes - Full TypeScript support for relationship includes
  • ๐Ÿ“ˆ Performance Optimized - Efficient pagination, response caching, and minimal dependencies
  • ๐Ÿงช Battle-tested - 330+ tests with 97.7% coverage and real API validation
  • ๐Ÿ“ Extensive Documentation - Comprehensive JSDoc comments, examples, and guides

Quick Example

import { SportMonksClient } from '@withqwerty/sportmonks-typescript-sdk';

const client = new SportMonksClient('YOUR_API_KEY');

// Get fixtures for today with team and venue information
const fixtures = await client.fixtures
  .byDate('2024-01-15')
  .include(['participants', 'scores', 'venue'])
  .get();

// Search for teams with pagination
const teams = await client.teams.search('Manchester').page(1).perPage(10).get();

Why Use This SDK?

Type Safety

Every API response is fully typed, giving you IntelliSense support and compile-time error checking.

Intuitive API

The method chaining approach makes building complex queries feel natural and readable.

Production Ready

With automatic retries, rate limit handling, and comprehensive error messages, this SDK is built for production use.

Well Tested

Over 330 tests ensure reliability, with both unit tests and integration tests against the real API.

Next Steps