Football API

Sports & Fitness / X-Mashape-Key Intermediate HTTPS
Check official documentation

Overview

Football API on RapidAPI provides squad statistics, top scorers, and match data for football (soccer) leagues around the world. It is a lightweight option for developers who want football data without complex setup. You need a RapidAPI account and subscription to use it.

💡

Beginner Tip

Set both X-RapidAPI-Key and X-RapidAPI-Host headers in every request - missing either one will result in a 403 error.

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

player Full name of the player
team Club the player currently belongs to
goals Total goals scored in the current season
assists Total assists recorded for the player
appearances Number of matches the player appeared in

Implementation Example

const url = "https://rapidapi.com/GiulianoCrescimbeni/api/football98/";
// 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

403 Forbidden Missing or incorrect RapidAPI headers
Include -H "X-RapidAPI-Key: YOUR_KEY" and -H "X-RapidAPI-Host: football98.p.rapidapi.com" in every request
429 Too Many Requests You exceeded your RapidAPI plan quota for the month
Upgrade your RapidAPI plan or cache results to reduce the number of calls
Empty data response The league or season ID you provided does not exist
First list available leagues to get valid IDs before querying stats

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/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 →