Getting Started
1. Get Your API Key
Create a free account at api.altsportsdata.com to get your API key. The free tier includes 1,000 requests/day.
Get API Key →Authentication
Include your API key in every request as a Bearer token or as the data-asl-api-key attribute.
HTTP Header
GET https://api.altsportsdata.com/v1/leagues/ufc/standings Authorization: Bearer YOUR_API_KEY Content-Type: application/json
Core API Endpoints
GET
/v1/leaguesList all available leagues
GET
/v1/leagues/{id}/standingsLeague standings and rankings
GET
/v1/leagues/{id}/scheduleUpcoming events and matches
GET
/v1/leagues/{id}/liveLive scores and real-time data
GET
/v1/leagues/{id}/resultsRecent match results
GET
/v1/leagues/{id}/playersPlayer statistics and profiles
GET
/v1/leagues/{id}/teamsTeam rosters and information
Installation Options
🌐 CDN (Recommended)
No build step required. Works on any website.
<script src="https://widgets.altsportsleagues.ai/embed/loader.js" async></script>
📦 NPM Package
For React, Next.js, and Vue applications.
npm install @altsportsleagues/widgets
🖼️ iframe
Isolated embed for strict CSP environments.
<iframe src="https://widgets.altsportsleagues.ai/embed/standings?leagueId=ufc&apiKey=YOUR_KEY" width="100%" height="400"></iframe>
Pricing Tiers
Free
$0/month
1,000 req/day
- ✓ All widget types
- ✓ Standard themes
- ✓ Community support
- ✓ 5-min cache
Pro
$49/month
50,000 req/day
- ✓ Everything in Free
- ✓ Custom themes
- ✓ Priority support
- ✓ 30s cache
- ✓ Remove branding
Enterprise
Custom
Unlimited
- ✓ Everything in Pro
- ✓ Dedicated support
- ✓ SLA guarantee
- ✓ Real-time push
- ✓ White-label
Rate Limits
| Header | Description |
|---|---|
| X-RateLimit-Limit | Max requests per window |
| X-RateLimit-Remaining | Remaining requests |
| X-RateLimit-Reset | Unix timestamp when limit resets |
| Retry-After | Seconds to wait (only on 429 responses) |
Need Help?
Our team is here to help you integrate sports widgets into your platform.