Skip to main content
GET
/
api
/
v2
/
events
/
{eventID}
/
plays
Get play-by-play for an event
curl --request GET \
  --url 'https://therundown.io/api/v2/events/{eventID}/plays?key='
import requests

url = "https://therundown.io/api/v2/events/{eventID}/plays?key="

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://therundown.io/api/v2/events/{eventID}/plays?key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://therundown.io/api/v2/events/{eventID}/plays?key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://therundown.io/api/v2/events/{eventID}/plays?key="

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://therundown.io/api/v2/events/{eventID}/plays?key=")
.asString();
require 'uri'
require 'net/http'

url = URI("https://therundown.io/api/v2/events/{eventID}/plays?key=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "event_id": "816efd1e5767d7133b5bc70c77173a18",
  "sport_id": 3,
  "sport": "mlb",
  "plays": [
    {
      "play_id": 88412031,
      "sequence": 214,
      "period": 6,
      "half_indicator": "bottom",
      "type": "single",
      "description": "Bobby Witt Jr. singles on a line drive to center field.",
      "score_away_after": 2,
      "score_home_after": 3,
      "win_probability_home": 0.71,
      "occurred_at": "2026-07-04T01:12:44Z",
      "mlb": {
        "batter": {
          "player_id": 41123,
          "name": "Bobby Witt Jr.",
          "team_id": 20
        },
        "pitch_speed_mph": 94.2,
        "exit_velocity_mph": 102.8
      }
    }
  ]
}
{
"error": "Live game state requires Ultra plan or higher",
"upgrade_url": "/pricing/api"
}

Authorizations

key
string
query
required

API key as query parameter

Path Parameters

eventID
string
required

Canonical V2 event ID from the event_id field returned by event endpoints

Query Parameters

limit
integer
default:50

Number of plays to return. The most recent plays are selected, then returned in ascending sequence order. Values above 500 are capped.

Required range: x <= 500
before_sequence
integer

Pagination cursor — returns plays with sequence lower than this value. Use the lowest sequence from the previous page to walk backwards through long games.

Response

Play-by-play timeline

event_id
string
sport_id
integer
sport
string
Example:

"mlb"

plays
object[]

Plays in ascending sequence order. Always an array, never null.