RLovelett / sports_data_api

A Ruby interface to the Sports Data API. API supports NFL, MLB, NHL, and NBA.
http://developer.sportsdatallc.com/api_gallery
Other
26 stars 28 forks source link

Implement NFL Game Depth Chart #14

Open RLovelett opened 11 years ago

RLovelett commented 11 years ago

Game Depth Chart

Schema

Syntax: http://api.sportsdatallc.org/nfl-[access_level][version]/schema/depth_chart-v1.0.xsd?api_key=[your_api_key]

Schema Example

Feed

Syntax: http://api.sportsdatallc.org/nfl-[access_level][version]/[year]/[nfl_season]/[nfl_season_week]/[away_team]/[home_team]/depthchart.[format]?api_key=[your_api_key]

Parameter Format Notes

[access_level] = Real-Time (rt), Premium (p), Standard (s), Basic (b), Trial (t)

[version] = whole number (sequential, starting with the number 1)

[year] = yyyy

[nfl_season] = Preseason (PRE), Regular Season (REG), Postseason (PST)

[nfl_season_week] = 1 - 17 (Week 0 of Preseason is Hall of Fame game)

[format] = xml

[home_team], [away_team] = <see schedule feed>

Feed Example