SpreadTrends Data API

<back to all web services

PlayByPlay

Fetches NFL play by play information for a specific game.

The following routes are available for this service:
GET/api/nfl/playbyplay/{GameId}
Parameters:
NameParameterData TypeRequiredDescription
GameIdpathintYesThe unique identifier to fetch play by play information by.

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/oneway/PlayByPlay HTTP/1.1 
Host: www.spreadtrends.com 
Content-Type: application/xml
Content-Length: length

<PlayByPlay xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpreadTrends.DataTransferObjects">
  <DefensiveTeam>String</DefensiveTeam>
  <Detail>String</Detail>
  <Down>0</Down>
  <FirstDown>String</FirstDown>
  <GameId>0</GameId>
  <Min>0</Min>
  <OffensiveTeam>String</OffensiveTeam>
  <Q>0</Q>
  <Sec>0</Sec>
  <Type>String</Type>
  <YdLine>0</YdLine>
  <YdLineDirection>String</YdLineDirection>
  <YdsFromOwnGoal>0</YdsFromOwnGoal>
  <YdsGained>0</YdsGained>
  <YdsToGo>0</YdsToGo>
</PlayByPlay>