Skip to content

raulpcoelho/messi-stats-back

Repository files navigation

Lionel Messi Stats API

This API provides detailed statistics for all matches played by Lionel Messi. You can filter the data by year, opponents, season, competition, and more to get specific insights. The data is updated regularly as Messi plays new matches.

API URL

The API is accessible at: https://www.messistats.info

Endpoints

Matches (/matches)

Retrieve statistics of all matches in Messi's career. Can be filtered by opponents, season, year, competition, among others.

Example Request:

GET /matches?year=2010&opponent=Real%20Madrid

Example Response:

[
  {
    "matchDate": "2010-11-29",
    "season": "2010-2011",
    "competition": "La Liga",
    "home": true,
    "team": "Barcelona",
    "opponent": "Real Madrid",
    "teamScore": 5,
    "opponentScore": 0,
    "goals": 0,
    "assists": 2,
    "started": true,
    "minutesPlayed": 90,
    "pensScored": 0,
    "pensMissed": 0,
    "hatTricks": 0,
    "freeKicks": 0,
    "insideBox": 0,
    "outsideBox": 0,
    "left": 0,
    "right": 0,
    "head": 0,
    "other": 0,
    "successfulDribbles": 9,
    "motm": true
  },
  {
    "matchDate": "2010-04-10",
    "season": "2009-2010",
    "competition": "La Liga",
    "home": false,
    "team": "Barcelona",
    "opponent": "Real Madrid",
    "teamScore": 2,
    "opponentScore": 0,
    "goals": 1,
    "assists": 0,
    "started": true,
    "minutesPlayed": 90,
    "pensScored": 0,
    "pensMissed": 0,
    "hatTricks": 0,
    "freeKicks": 0,
    "insideBox": 1,
    "outsideBox": 0,
    "left": 0,
    "right": 1,
    "head": 0,
    "other": 0,
    "successfulDribbles": 1,
    "motm": false
  }
]

Totals (/totals)

Retrieve total statistics. Can also be filtered by various parameters.

Example Request:

GET /totals?year=2022&competition=World%20Cup

Example Response:

{
  "totalGoals": 7,
  "totalAssists": 3,
  "totalMatches": 7,
  "totalMinutes": 690,
  "homeMatches": 0,
  "awayMatches": 7,
  "matchesWon": 4,
  "matchesLost": 1,
  "matchesStarted": 7,
  "totalPensScored": 4,
  "totalPensMissed": 1,
  "totalHatTricks": 0,
  "totalFreeKicks": 0,
  "totalInsideBox": 2,
  "totalOutsideBox": 1,
  "totalLeft": 6,
  "totalRight": 1,
  "totalHeaded": 0,
  "totalOtherBodyPart": 0,
  "totalSuccessfulDribbles": 15,
  "totalMotm": 2
}

Examples

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Contact

For any inquiries, please contact Raul Coelho at rpc3@cin.ufpe.br.

Icon created by Good Ware - Flaticon

About

This is an API that provides detailed statistics for all matches played by Lionel Messi.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages