Command Palette

Search for a command to run...

Documentation
Match Details

Match Details

Using the API to get the details for a match

Example

/api/v1/match/[id]
const MatchDetailsResponse = await fetch("https://watchfooty.live/api/v1/match/123");
const MatchDetailsData = await MatchDetailsResponse.json();
 
if (MatchDetailsData) {
  console.log(MatchDetailsData);
}

Response Format

/api/v1/match/[id]
[
  {
    "title": "Chelsea vs Manchester United",
    "poster": "/api/v1/poster/123",
    "teams": {
      "home": {
        "name": "Chelsea";
        "logoUrl": "/api/v1/team-logo/123";
        "logoId": "123";
      };
      "away": {
        "name": "Manchester United";
        "logoUrl": "/api/v1/team-logo/456";
        "logoId": "456";
      };
    };
    "isEvent": false;
    "date": "2025-01-01T00:00:00.000Z";
    "timestamp": 1714732800;
    "currentMinute": "10";
    "currentMinuteNumber": 10;
    "homeScore": 1;
    "awayScore": 2;
    "status": "in";
    "venue": "Old Trafford";
    "note": "";
    "eventName": "Chelsea vs Manchester United";
    "eventLogo": "123";
    "eventPoster": "123";
    "eventId": "123";
    "eventCompetitors": [
      {
        "id": "456";
        "fullName": "Manchester United";
        "competitorImage": "/api/v1/team-logo/456";
        "flag": "123";
      }
    ],
    "league": "Premier League";
    "leagueLogo": "/api/v1/league-logo/123";
    "leagueLogoId": "123";
    "sport": "football";
  }
]