Football-Data API

⭐ Beginner's Pick Sports & Fitness / X-Mashape-Key Intermediate HTTPS
Check official documentation

Overview

Football-Data API offers structured football data including match schedules, live scores, team rosters, and competition tables for major European leagues. A free tier is available with limited endpoints, making it easy to prototype without a paid plan. Authentication uses an API token sent as a request header.

💡

Beginner Tip

The free tier restricts access to a subset of competitions - check the documentation Tier column to see which leagues are available before building your app.

Available Data

match scores and results
team standings
player statistics
schedule and fixtures

Example Response

JSON Response
{
  "match_id": 4521,
  "home_team": "Team A",
  "away_team": "Team B",
  "score": {
    "home": 2,
    "away": 1
  },
  "status": "Full Time",
  "date": "2025-01-15",
  "league": "Premier League"
}

Field Reference

competition.name Name of the football competition (e.g., Premier League)
utcDate Match date and time in UTC ISO 8601 format
status Match status: SCHEDULED, IN_PLAY, PAUSED, FINISHED, or CANCELLED
homeTeam.name Name of the home team
awayTeam.name Name of the away team
score.fullTime Final score with home and away goals after 90 minutes

Implementation Example

const url = "https://www.football-data.org/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

400 Bad Request An invalid competition code or date format was used
Use ISO 8601 dates (YYYY-MM-DD) and valid competition codes like PL (Premier League) or BL1 (Bundesliga)
403 Forbidden The endpoint or competition is restricted to a higher subscription tier
Upgrade your plan at football-data.org or stick to free-tier competitions listed in the docs
429 Too Many Requests Free tier is limited to 10 requests per minute
Add a delay between requests and cache data locally to stay within rate limits

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth X-Mashape-Key
HTTPS REQUIRED
CORS UNKNOWN
Category Sports & Fitness
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →