Developer API Integration

A simple, fast, and completely public API for live soccer data. No authentication required.

View Full API Spec & AI Prompt (llms.txt)

General Information

Core Capabilities

  • Real-time scores for major leagues (Live & Today endpoints).
  • League Standings including group phases (e.g., World Cup, Champions League).
  • Match Details featuring venue, referee, and live events (goals, cards).
  • Team Searching to quickly locate specific clubs.

Technical Details

  • Format: All endpoints return strictly formatted JSON.
  • Rate Limits: Globally limited to 100 requests per second. Exceeding this returns an HTTP 429 Too Many Requests.
  • Caching: High-traffic endpoints utilize an aggressive in-memory TTLCache to ensure near-instant response times.
  • Upstream Handling: If the primary data provider fails, the API gracefully returns HTTP 503 Service Unavailable.

Integration Examples

const fetchLiveMatches = async () => {
  try {
    const response = await fetch('https://aa.tooco.net/api/matches/live');
    
    if (response.status === 429) {
      console.error('Rate limit exceeded');
      return;
    }
    
    const data = await response.json();
    console.log(`Live Matches: ${data.count}`);
    
    data.matches.forEach(match => {
      console.log(`${match.home_team.name} vs ${match.away_team.name}`);
    });
  } catch (error) {
    console.error('Error fetching data:', error);
  }
};

fetchLiveMatches();