Description

Returns a list of fixture results for the last fixtures played by the two teams.

Specific Parameter Information

For a full list of parameters, scroll to the bottom of this page.

Example Response

Baseball

URL: https://api.opticodds.com/api/v3/fixtures/results/head-to-head?team1_id=5045D954DFF8&team2_id=98CE61698342

{
  "data": [
    {
      "sport": {
        "id": "baseball",
        "name": "Baseball"
      },
      "league": {
        "id": "mlb",
        "name": "MLB"
      },
      "fixture": {
        "id": "24E371425A5F",
        "game_id": "40548-36707-2024-08-28-09",
        "start_date": "2024-08-28T16:35:00Z",
        "home_competitors": [
          {
            "id": "98CE61698342",
            "name": "Pittsburgh Pirates",
            "abbreviation": "PIT",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/pit.png"
          }
        ],
        "away_competitors": [
          {
            "id": "5045D954DFF8",
            "name": "Chicago Cubs",
            "abbreviation": "CHC",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/chc.png"
          }
        ],
        "home_team_display": "Pittsburgh Pirates",
        "away_team_display": "Chicago Cubs",
        "status": "completed",
        "is_live": true
      },
      "scores": {
        "home": {
          "total": 10,
          "periods": {
            "period_1": 1,
            "period_2": 5,
            "period_3": 0,
            "period_4": 2,
            "period_5": 2,
            "period_6": 0,
            "period_7": 0,
            "period_8": 0,
            "period_9": 0
          },
          "aggregate": null
        },
        "away": {
          "total": 14,
          "periods": {
            "period_1": 1,
            "period_2": 2,
            "period_3": 0,
            "period_4": 0,
            "period_5": 0,
            "period_6": 0,
            "period_7": 2,
            "period_8": 3,
            "period_9": 6
          },
          "aggregate": null
        }
      },
      "in_play": {
        "period": "9",
        "clock": "Bottom",
        "last_play": null,
        "time_min": null,
        "time_sec": null,
        "balls": 0,
        "outs": 3,
        "strikes": 0,
        "runners": null,
        "batter": null,
        "pitcher": null,
        "possession": null,
        "down": null,
        "distance_to_go": null
      },
      "events": [],
      "stats": {
        "home": [
          {
            "period": "all",
            "stats": {
              "rbi": 9,
              "hits": 16,
              "runs": 10,
              "at_bats": 41,
              "total_bases": 26,
              "double_plays": 1,
              "triple_plays": 0,
              "batting_walks": 8,
              "batting_strikeouts": 14,
              "runners_left_on_base": 14,
              "scoring_position_successes": 5,
              "scoring_position_opportunities": 19
            }
          }
        ],
        "away": [
          {
            "period": "all",
            "stats": {
              "rbi": 14,
              "hits": 16,
              "runs": 14,
              "at_bats": 42,
              "total_bases": 21,
              "double_plays": 0,
              "triple_plays": 0,
              "batting_walks": 7,
              "batting_strikeouts": 8,
              "runners_left_on_base": 8,
              "scoring_position_successes": 8,
              "scoring_position_opportunities": 18
            }
          }
        ]
      },
      "retirement_info": null
    },
    {
      "sport": {
        "id": "baseball",
        "name": "Baseball"
      },
      "league": {
        "id": "mlb",
        "name": "MLB"
      },
      "fixture": {
        "id": "B1FEF8A820B3",
        "game_id": "40548-36707-2024-08-27-15",
        "start_date": "2024-08-27T22:40:00Z",
        "home_competitors": [
          {
            "id": "98CE61698342",
            "name": "Pittsburgh Pirates",
            "abbreviation": "PIT",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/pit.png"
          }
        ],
        "away_competitors": [
          {
            "id": "5045D954DFF8",
            "name": "Chicago Cubs",
            "abbreviation": "CHC",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/chc.png"
          }
        ],
        "home_team_display": "Pittsburgh Pirates",
        "away_team_display": "Chicago Cubs",
        "status": "completed",
        "is_live": false
      },
      "scores": {
        "home": {
          "total": 5,
          "periods": {
            "period_1": 2,
            "period_2": 0,
            "period_3": 0,
            "period_4": 0,
            "period_5": 0,
            "period_6": 1,
            "period_7": 0,
            "period_8": 0,
            "period_9": 2
          },
          "aggregate": null
        },
        "away": {
          "total": 9,
          "periods": {
            "period_1": 0,
            "period_2": 0,
            "period_3": 0,
            "period_4": 5,
            "period_5": 4,
            "period_6": 0,
            "period_7": 0,
            "period_8": 0,
            "period_9": 0
          },
          "aggregate": null
        }
      },
      "in_play": {
        "period": "9",
        "clock": null,
        "last_play": null,
        "time_min": null,
        "time_sec": null,
        "balls": null,
        "outs": null,
        "strikes": null,
        "runners": null,
        "batter": null,
        "pitcher": null,
        "possession": null,
        "down": null,
        "distance_to_go": null
      },
      "events": [],
      "stats": {
        "home": [
          {
            "period": "all",
            "stats": {
              "rbi": 5,
              "hits": 10,
              "runs": 5,
              "at_bats": 36,
              "total_bases": 16,
              "double_plays": 1,
              "triple_plays": 0,
              "batting_walks": 4,
              "batting_strikeouts": 14,
              "runners_left_on_base": 9,
              "scoring_position_successes": 2,
              "scoring_position_opportunities": 10
            }
          }
        ],
        "away": [
          {
            "period": "all",
            "stats": {
              "rbi": 9,
              "hits": 7,
              "runs": 9,
              "at_bats": 34,
              "total_bases": 15,
              "double_plays": 0,
              "triple_plays": 0,
              "batting_walks": 7,
              "batting_strikeouts": 10,
              "runners_left_on_base": 6,
              "scoring_position_successes": 2,
              "scoring_position_opportunities": 7
            }
          }
        ]
      },
      "retirement_info": null
    },
    {
      "sport": {
        "id": "baseball",
        "name": "Baseball"
      },
      "league": {
        "id": "mlb",
        "name": "MLB"
      },
      "fixture": {
        "id": "3D02D44EF103",
        "game_id": "40548-36707-2024-08-26-15",
        "start_date": "2024-08-26T22:40:00Z",
        "home_competitors": [
          {
            "id": "98CE61698342",
            "name": "Pittsburgh Pirates",
            "abbreviation": "PIT",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/pit.png"
          }
        ],
        "away_competitors": [
          {
            "id": "5045D954DFF8",
            "name": "Chicago Cubs",
            "abbreviation": "CHC",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/chc.png"
          }
        ],
        "home_team_display": "Pittsburgh Pirates",
        "away_team_display": "Chicago Cubs",
        "status": "completed",
        "is_live": false
      },
      "scores": {
        "home": {
          "total": 8,
          "periods": {
            "period_1": 0,
            "period_2": 0,
            "period_3": 2,
            "period_4": 0,
            "period_5": 0,
            "period_6": 0,
            "period_7": 2,
            "period_8": 2,
            "period_9": 2
          },
          "aggregate": null
        },
        "away": {
          "total": 18,
          "periods": {
            "period_1": 0,
            "period_2": 2,
            "period_3": 1,
            "period_4": 0,
            "period_5": 0,
            "period_6": 8,
            "period_7": 0,
            "period_8": 1,
            "period_9": 6
          },
          "aggregate": null
        }
      },
      "in_play": {
        "period": "9",
        "clock": null,
        "last_play": null,
        "time_min": null,
        "time_sec": null,
        "balls": null,
        "outs": null,
        "strikes": null,
        "runners": null,
        "batter": null,
        "pitcher": null,
        "possession": null,
        "down": null,
        "distance_to_go": null
      },
      "events": [],
      "stats": {
        "home": [
          {
            "period": "all",
            "stats": {
              "rbi": 8,
              "hits": 13,
              "runs": 8,
              "at_bats": 39,
              "total_bases": 23,
              "double_plays": 1,
              "triple_plays": 0,
              "batting_walks": 2,
              "batting_strikeouts": 6,
              "runners_left_on_base": 7,
              "scoring_position_successes": 2,
              "scoring_position_opportunities": 10
            }
          }
        ],
        "away": [
          {
            "period": "all",
            "stats": {
              "rbi": 18,
              "hits": 21,
              "runs": 18,
              "at_bats": 46,
              "total_bases": 34,
              "double_plays": 0,
              "triple_plays": 0,
              "batting_walks": 7,
              "batting_strikeouts": 7,
              "runners_left_on_base": 11,
              "scoring_position_successes": 10,
              "scoring_position_opportunities": 24
            }
          }
        ]
      },
      "retirement_info": null
    },
    {
      "sport": {
        "id": "baseball",
        "name": "Baseball"
      },
      "league": {
        "id": "mlb",
        "name": "MLB"
      },
      "fixture": {
        "id": "18C3F8901F99",
        "game_id": "40548-36707-2024-05-19-11",
        "start_date": "2024-05-19T18:20:00Z",
        "home_competitors": [
          {
            "id": "5045D954DFF8",
            "name": "Chicago Cubs",
            "abbreviation": "CHC",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/chc.png"
          }
        ],
        "away_competitors": [
          {
            "id": "98CE61698342",
            "name": "Pittsburgh Pirates",
            "abbreviation": "PIT",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/pit.png"
          }
        ],
        "home_team_display": "Chicago Cubs",
        "away_team_display": "Pittsburgh Pirates",
        "status": "completed",
        "is_live": false
      },
      "scores": {
        "home": {
          "total": 2,
          "periods": {
            "period_1": 0,
            "period_2": 0,
            "period_3": 1,
            "period_4": 0,
            "period_5": 0,
            "period_6": 1,
            "period_7": 0,
            "period_8": 0,
            "period_9": 0
          },
          "aggregate": null
        },
        "away": {
          "total": 3,
          "periods": {
            "period_1": 0,
            "period_2": 1,
            "period_3": 0,
            "period_4": 0,
            "period_5": 2,
            "period_6": 0,
            "period_7": 0,
            "period_8": 0,
            "period_9": 0
          },
          "aggregate": null
        }
      },
      "in_play": {
        "period": "9",
        "clock": null,
        "last_play": null,
        "time_min": null,
        "time_sec": null,
        "balls": null,
        "outs": null,
        "strikes": null,
        "runners": null,
        "batter": null,
        "pitcher": null,
        "possession": null,
        "down": null,
        "distance_to_go": null
      },
      "events": [],
      "stats": {
        "home": [
          {
            "period": "all",
            "stats": {
              "rbi": 2,
              "hits": 2,
              "runs": 2,
              "at_bats": 26,
              "total_bases": 5,
              "double_plays": 2,
              "triple_plays": 0,
              "batting_walks": 4,
              "batting_strikeouts": 7,
              "runners_left_on_base": 5,
              "scoring_position_successes": 0,
              "scoring_position_opportunities": 4
            }
          }
        ],
        "away": [
          {
            "period": "all",
            "stats": {
              "rbi": 3,
              "hits": 10,
              "runs": 3,
              "at_bats": 36,
              "total_bases": 14,
              "double_plays": 1,
              "triple_plays": 0,
              "batting_walks": 6,
              "batting_strikeouts": 9,
              "runners_left_on_base": 12,
              "scoring_position_successes": 1,
              "scoring_position_opportunities": 17
            }
          }
        ]
      },
      "retirement_info": null
    },
    {
      "sport": {
        "id": "baseball",
        "name": "Baseball"
      },
      "league": {
        "id": "mlb",
        "name": "MLB"
      },
      "fixture": {
        "id": "B6F6496D5636",
        "game_id": "40548-36707-2024-05-18-11",
        "start_date": "2024-05-18T18:20:00Z",
        "home_competitors": [
          {
            "id": "5045D954DFF8",
            "name": "Chicago Cubs",
            "abbreviation": "CHC",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/chc.png"
          }
        ],
        "away_competitors": [
          {
            "id": "98CE61698342",
            "name": "Pittsburgh Pirates",
            "abbreviation": "PIT",
            "logo": "https://a.espncdn.com/i/teamlogos/mlb/500/pit.png"
          }
        ],
        "home_team_display": "Chicago Cubs",
        "away_team_display": "Pittsburgh Pirates",
        "status": "completed",
        "is_live": false
      },
      "scores": {
        "home": {
          "total": 1,
          "periods": {
            "period_1": 0,
            "period_2": 0,
            "period_3": 0,
            "period_4": 0,
            "period_5": 0,
            "period_6": 0,
            "period_7": 0,
            "period_8": 0,
            "period_9": 1
          },
          "aggregate": null
        },
        "away": {
          "total": 0,
          "periods": {
            "period_1": 0,
            "period_2": 0,
            "period_3": 0,
            "period_4": 0,
            "period_5": 0,
            "period_6": 0,
            "period_7": 0,
            "period_8": 0,
            "period_9": 0
          },
          "aggregate": null
        }
      },
      "in_play": {
        "period": "9",
        "clock": null,
        "last_play": null,
        "time_min": null,
        "time_sec": null,
        "balls": null,
        "outs": null,
        "strikes": null,
        "runners": null,
        "batter": null,
        "pitcher": null,
        "possession": null,
        "down": null,
        "distance_to_go": null
      },
      "events": [],
      "stats": {
        "home": [
          {
            "period": "all",
            "stats": {
              "rbi": 1,
              "hits": 5,
              "runs": 1,
              "at_bats": 28,
              "total_bases": 6,
              "double_plays": 0,
              "triple_plays": 0,
              "batting_walks": 3,
              "batting_strikeouts": 3,
              "runners_left_on_base": 5,
              "scoring_position_successes": 1,
              "scoring_position_opportunities": 3
            }
          }
        ],
        "away": [
          {
            "period": "all",
            "stats": {
              "rbi": 0,
              "hits": 4,
              "runs": 0,
              "at_bats": 31,
              "total_bases": 4,
              "double_plays": 1,
              "triple_plays": 0,
              "batting_walks": 1,
              "batting_strikeouts": 12,
              "runners_left_on_base": 5,
              "scoring_position_successes": 0,
              "scoring_position_opportunities": 1
            }
          }
        ]
      },
      "retirement_info": null
    }
  ]
}
Language
Authorization
Click Try It! to start a request and see the response here!