Quick Start Guide

Quick Start Guide

Get up and running with AltSportsLeagues.ai in under 5 minutes. This guide will walk you through making your first API call and exploring our sports intelligence capabilities.

Prerequisites: You'll need an API key. Don't have one? Sign up for free (opens in a new tab)

Get Your API Key

  1. Visit dashboard.altsportsdata.com (opens in a new tab)
  2. Sign up or log in to your account
  3. Navigate to API Keys in the sidebar
  4. Click Generate New Key
  5. Copy your API key (keep it secure!)
⚠️

Security: Never commit your API key to version control. Use environment variables or a secrets manager.

Make Your First Request

Choose your preferred language:

// Install axios (or use fetch)
// npm install axios
 
const axios = require('axios');
 
const API_KEY = process.env.ALTSPORTS_API_KEY;
const BASE_URL = 'https://api.altsportsleagues.ai';
 
async function getLeagues() {
  try {
    const response = await axios.get(`${BASE_URL}/v1/leagues`, {
      headers: {
        'Authorization': `Bearer ${API_KEY}`,
        'Content-Type': 'application/json'
      }
    });
 
    console.log('Leagues:', response.data);
    return response.data;
  } catch (error) {
    console.error('Error:', error.response?.data || error.message);
  }
}
 
getLeagues();

Explore the Response

You'll receive a JSON response with league data:

{
  "leagues": [
    {
      "id": "premier-lacrosse",
      "name": "Premier Lacrosse League",
      "sport": "lacrosse",
      "tier": "premium",
      "betting_potential": 8.5,
      "fan_engagement": 7.8,
      "market_size": "medium",
      "partnerships": {
        "active": 3,
        "pending": 2
      }
    },
    {
      "id": "athletes-unlimited",
      "name": "Athletes Unlimited",
      "sport": "multi-sport",
      "tier": "growth",
      "betting_potential": 7.2,
      "fan_engagement": 8.1,
      "market_size": "growing"
    }
    // ... more leagues
  ],
  "total": 127,
  "tier_breakdown": {
    "premium": 23,
    "growth": 34,
    "standard": 45,
    "emerging": 25
  }
}

Try Advanced Features

Now that you have basic access, try these advanced capabilities:

Generate a Partnership Contract

const response = await axios.post(
  `${BASE_URL}/v1/contracts/generate`,
  {
    league_name: "Premier Lacrosse League",
    partnership_type: "broadcasting",
    pricing_tier: "deal"
  },
  {
    headers: {
      'Authorization': `Bearer ${API_KEY}`,
      'Content-Type': 'application/json'
    }
  }
);
 
console.log('Contract generated:', response.data.contract_id);
// Download the contract
const contract = await axios.get(
  `${BASE_URL}/v1/contracts/download/${response.data.contract_id}`,
  { headers: { 'Authorization': `Bearer ${API_KEY}` } }
);

Analyze Market Potential

# Analyze betting market potential for a league
response = await client.post(
    f'{BASE_URL}/v1/intelligence/analyze',
    json={
        "league_id": "premier-lacrosse",
        "analysis_type": "market_potential",
        "include_competitors": True
    },
    headers={'Authorization': f'Bearer {API_KEY}'}
)
 
print('Market Analysis:', response.json())

Explore the Documentation

Now that you're up and running, explore more features:

Next Steps

For League Partnerships

If you're a league operator interested in betting market opportunities:

  1. Contact: partnerships@altsportsleagues.ai
  2. Upload: League questionnaire via portal.altsportsleagues.ai (opens in a new tab)
  3. Receive: AI-generated partnership contract within 24 hours
  4. Sign: Review and sign the contract
  5. Launch: We handle sportsbook integration and distribution

For Sportsbooks

If you're a sportsbook looking for alternative sports data:

  1. Contact: distribution@altsportsdata.com
  2. Explore: Browse our League Database
  3. Test: Use our API to evaluate data quality
  4. Integrate: We provide real-time feeds in your preferred format
  5. Launch: Go live with 100+ alternative sports leagues

For Developers

If you're building a sports application:

  1. Explore: API Reference and Schema Explorer
  2. Integrate: Follow our SDK guides
  3. Test: Use our sandbox environment
  4. Deploy: Go live with production API keys
  5. Monitor: Track usage in your dashboard

Common Use Cases

Build an AI Sports Analyst

// Connect Claude or ChatGPT via MCP
// See: /integrations/mcp
 
// Then ask natural language questions:
// "Compare betting market potential between Premier Lacrosse and Athletes Unlimited"
// "Find arbitrage opportunities in today's games"
// "Generate a broadcasting rights contract for this league"

Create a League Intelligence Dashboard

// Fetch all leagues and display with real-time updates
const leagues = await getLeagues();
 
leagues.forEach(league => {
  displayLeagueCard({
    name: league.name,
    tier: league.tier,
    bettingScore: league.betting_potential,
    fanEngagement: league.fan_engagement
  });
});
 
// Subscribe to live updates
const ws = new WebSocket('wss://api.altsportsleagues.ai/ws');
ws.on('league_update', (data) => updateDashboard(data));

Automate Partnership Contracts

# Upload league questionnaire, get contract automatically
import requests
 
with open('league_questionnaire.pdf', 'rb') as f:
    response = requests.post(
        f'{BASE_URL}/v1/contracts/upload',
        files={'file': f},
        headers={'Authorization': f'Bearer {API_KEY}'}
    )
 
pipeline_id = response.json()['pipeline_id']
 
# Track progress
status = requests.get(
    f'{BASE_URL}/v1/pipeline/{pipeline_id}',
    headers={'Authorization': f'Bearer {API_KEY}'}
).json()
 
print(f"Contract status: {status['stage']}")

Rate Limits

Free tier limits:

  • 100 requests/hour for league data
  • 10 requests/hour for contract generation
  • 1,000 requests/day total

Need higher limits? Contact sales for enterprise pricing.

Support

Getting Help

Reporting Issues

Found a bug or have a feature request?


Ready to dive deeper? Check out our comprehensive JavaScript SDK Guide or explore the API Reference.

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time