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
- Visit dashboard.altsportsdata.com (opens in a new tab)
- Sign up or log in to your account
- Navigate to API Keys in the sidebar
- Click Generate New Key
- 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:
- API Reference: Complete endpoint documentation
- Schema Explorer: Browse our 150+ data schemas
- MCP Integration: Connect AI agents
- JavaScript SDK: Detailed JavaScript guide
Next Steps
For League Partnerships
If you're a league operator interested in betting market opportunities:
- Contact: partnerships@altsportsleagues.ai
- Upload: League questionnaire via portal.altsportsleagues.ai (opens in a new tab)
- Receive: AI-generated partnership contract within 24 hours
- Sign: Review and sign the contract
- Launch: We handle sportsbook integration and distribution
For Sportsbooks
If you're a sportsbook looking for alternative sports data:
- Contact: distribution@altsportsdata.com
- Explore: Browse our League Database
- Test: Use our API to evaluate data quality
- Integrate: We provide real-time feeds in your preferred format
- Launch: Go live with 100+ alternative sports leagues
For Developers
If you're building a sports application:
- Explore: API Reference and Schema Explorer
- Integrate: Follow our SDK guides
- Test: Use our sandbox environment
- Deploy: Go live with production API keys
- 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
- Documentation: You're reading it! Explore the sidebar for more guides
- API Status: status.altsportsdata.com (opens in a new tab)
- Email Support: support@altsportsdata.com
- Community: Discord (opens in a new tab)
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.