SDKs
SDKs
Official client libraries for AltSportsLeagues API
SDKs
Official client libraries make it easy to integrate with the AltSportsLeagues API. Our SDKs handle authentication, error handling, retries, and provide type-safe interfaces.
Available SDKs
TypeScript SDK
Full-featured client for Node.js and browser environments
Python SDK
Pythonic client with async support
Features
All official SDKs provide:
- ✅ Type-safe interfaces with full IntelliSense support
- ✅ Automatic retries with exponential backoff
- ✅ Error handling with typed exceptions
- ✅ Request validation before sending
- ✅ Response parsing with data models
- ✅ Rate limit handling automatic and manual
- ✅ Authentication via API key (header-based)
- ✅ Pagination helpers for list endpoints
- ✅ Timeout configuration per-request or global
Installation
npm install altsportsleagues
# or
yarn add altsportsleagues
# or
pnpm add altsportsleaguesRequirements: Node.js 16+ or modern browser
pip install altsportsleagues
# or
poetry add altsportsleagues
# or
pipenv install altsportsleaguesRequirements: Python 3.8+
Quick Start
import { AltSportsLeagues } from 'altsportsleagues';
const client = new AltSportsLeagues({
apiKey: process.env.ASL_API_KEY,
timeout: 30000, // optional
});
// List leagues
const leagues = await client.leagues.list({
tier: 'tier-2',
limit: 10
});
// Search for leagues
const results = await client.discovery.search({
query: 'professional pickleball',
minConfidence: 0.75
});
// Get league valuation
const valuation = await client.valuation.evaluate({
leagueId: 'league_001'
});from altsportsleagues import AltSportsLeagues
client = AltSportsLeagues(
api_key=os.getenv('ASL_API_KEY'),
timeout=30 # optional
)
# List leagues
leagues = client.leagues.list(
tier='tier-2',
limit=10
)
# Search for leagues
results = client.discovery.search(
query='professional pickleball',
min_confidence=0.75
)
# Get league valuation
valuation = client.valuation.evaluate(
league_id='league_001'
)SDK Documentation
Each SDK has detailed documentation with examples, API reference, and guides:
Community SDKs
Community-maintained SDKs are available for other languages. These are not officially supported but may be useful:
- Go: altsportsleagues-go (community)
- Ruby: altsportsleagues-ruby (community)
- PHP: altsportsleagues-php (community)
Want to build an SDK for your language? Check our API Reference and open a PR to list it here!
Support
For SDK issues or feature requests:
- TypeScript: GitHub Issues
- Python: GitHub Issues
- Email: sdk@altsportsleagues.ai