Baseball.Matches

Get match by id

Retrieve detailed match information by specifying the match id path parameter.

Fetched data will have additional information about the venue, weather forecast, match stats, who the game's referees are, each team's rosters, and plays.

Note: Used to retrieve additional match information.

get/baseball/matches/{id}

Request

Path parameters

idnumber required

Requested match id.

Headers

x-rapidapi-hoststring required

sport-highlights-api.p.rapidapi.com

x-rapidapi-keystring required

Rapid API Token

Response

idnumber required
roundstring required
datestring required
leaguestring required
seasonnumber required

Example response

[
  {
    "id": 58348,
    "round": "regular-season",
    "date": "2024-03-31T17:00:00.000Z",
    "league": "NCAA",
    "season": 2024,
    "awayTeam": {
      "id": 219,
      "logo": "https://example.com/logos/team/219.png",
      "name": "Bears",
      "displayName": "Baylor",
      "abbreviation": "BAY"
    },
    "homeTeam": {
      "id": 219,
      "logo": "https://example.com/logos/team/219.png",
      "name": "Bears",
      "displayName": "Baylor",
      "abbreviation": "BAY"
    },
    "state": {
      "description": "Finished",
      "report": "Final",
      "score": {
        "home": {
          "hits": 4,
          "errors": 2,
          "innings": [
            0,
            0,
            1,
            1,
            0,
            0,
            1,
            1,
            1
          ]
        },
        "away": {
          "hits": 4,
          "errors": 2,
          "innings": [
            0,
            0,
            1,
            1,
            0,
            0,
            1,
            1,
            1
          ]
        },
        "current": "5 - 8"
      }
    },
    "venue": {
      "city": "Waco",
      "name": "Baylor Ballpark",
      "state": "Texas"
    },
    "stats": [
      {
        "team": {
          "id": 10291185,
          "name": "Toronto Blue Jays",
          "logo": "https://highlightly.net/baseball/images/teams/10291185.png",
          "statistics": [
            {
              "name": "Total Strikeouts",
              "value": 12,
              "group": "Batting"
            }
          ]
        }
      }
    ],
    "plays": [
      {
        "type": "Start Inning",
        "teamId": 229,
        "description": "Top of the 1st inning",
        "period": "Top 1st Inning",
        "pitch": {
          "type": "CURVE",
          "velocity": 78.2
        },
        "result": {
          "ballsCount": 1,
          "strikesCount": 2
        },
        "score": {
          "away": 1,
          "home": 2
        }
      }
    ],
    "referees": [
      {
        "name": "Jonathan  Parra",
        "position": "Home Plate Umpire"
      }
    ],
    "rosters": {
      "awayTeam": {
        "jersey": 1,
        "fullName": "Hunter Hines",
        "position": "First Baseman",
        "isStarter": true
      },
      "homeTeam": {
        "jersey": 1,
        "fullName": "Hunter Hines",
        "position": "First Baseman",
        "isStarter": true
      }
    },
    "forecast": {
      "status": "cloudy",
      "temperature": "11.97°C"
    },
    "predictions": {
      "prematch": [
        {
          "type": "prematch",
          "modelType": "three-way",
          "generatedAt": "2025-03-12T19:00:20.000Z",
          "description": "Team A is most likely to win the game against Team B.`",
          "probabilities": {
            "home": "30.22%",
            "draw": "0.00%",
            "away": "69.78%"
          }
        }
      ],
      "live": [
        {
          "type": "prematch",
          "modelType": "three-way",
          "generatedAt": "2025-03-12T19:00:20.000Z",
          "description": "Team A is most likely to win the game against Team B.`",
          "probabilities": {
            "home": "30.22%",
            "draw": "0.00%",
            "away": "69.78%"
          }
        }
      ]
    }
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.