Skip to contents

Using play_id from the statsapi download, you can pull up the video of any play

Usage

get_video_url(play_id)

Arguments

play_id

character vector of play identifier from statsapi

Value

character vector of URLs

Examples

get_video_url("064e8918-e2b7-40f0-ac39-968932652154")
#> https://baseballsavant.mlb.com/sporty-videos?playId=064e8918-e2b7-40f0-ac39-968932652154