api-football

api-football

4.0

API-FOOTBALL is a comprehensive API service providing extensive data related to football leagues, teams, players, and matches.

API-FOOTBALL is a comprehensive API service that provides extensive data related to football (soccer) leagues, teams, players, and matches. This API is perfect for developers looking to integrate football-related data into their applications, providing everything from live scores and player statistics to league standings and match predictions.

Features

  • Football Leagues & Cups: Access data for over 180 football leagues and cups, including live scores, pre-match odds, and detailed event information.
  • Teams & Players: Retrieve comprehensive data about teams and players, including statistics, line-ups, transfers, and injuries.
  • Fixtures & Results: Access fixtures and results for leagues, teams, and specific dates, including head-to-head comparisons.
  • Standings & Statistics: Get current standings for leagues and detailed statistics for teams and fixtures.
  • Odds & Predictions: Obtain pre-match and in-play odds from various bookmakers and match predictions based on statistical analyses.

MCP Tools

  • Timezone: Retrieve the list of available time zones for use in fixture endpoints.
  • Predictions: Obtain match predictions using advanced statistical models.
  • Fixtures: Access detailed fixture data, including live matches, fixtures by date, and head-to-head comparisons.
  • Teams: Get information and statistics for specific teams and players.
  • Leagues: Explore available leagues and their seasons.
  • Odds: Access odds from various bookmakers for both pre-match and in-play events.
  • Standings: Retrieve league standings and rankings.
  • Events: Get detailed event information for fixtures, including goals, substitutions, and cards.
  • Transfers: Access data on player transfers between teams.
  • Injuries: Get up-to-date information on player injuries and availability.

Usage with Different Platforms

python

python
import requests

url = 'https://api-football-v1.p.rapidapi.com/v3/fixtures'
headers = {
    'x-rapidapi-host': 'api-football-v1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_API_KEY'
}
response = requests.get(url, headers=headers)
print(response.json())

javascript

javascript
const axios = require('axios');

const options = {
  method: 'GET',
  url: 'https://api-football-v1.p.rapidapi.com/v3/fixtures',
  headers: {
    'x-rapidapi-host': 'api-football-v1.p.rapidapi.com',
    'x-rapidapi-key': 'YOUR_API_KEY'
  }
};

axios.request(options).then(function (response) {
  console.log(response.data);
}).catch(function (error) {
  console.error(error);
});