← Back to Widgets

Developer Documentation

Everything you need to embed live sports widgets on your site

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/leagues

List all available leagues

GET
/v1/leagues/{id}/standings

League standings and rankings

GET
/v1/leagues/{id}/schedule

Upcoming events and matches

GET
/v1/leagues/{id}/live

Live scores and real-time data

GET
/v1/leagues/{id}/results

Recent match results

GET
/v1/leagues/{id}/players

Player statistics and profiles

GET
/v1/leagues/{id}/teams

Team 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

📝 WordPress

Copy-paste into any Custom HTML block.

View WordPress Guide →

🖼️ 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

HeaderDescription
X-RateLimit-LimitMax requests per window
X-RateLimit-RemainingRemaining requests
X-RateLimit-ResetUnix timestamp when limit resets
Retry-AfterSeconds to wait (only on 429 responses)

Need Help?

Our team is here to help you integrate sports widgets into your platform.