SpreadTrends Data API

<back to all web services

PlayerStats

Fetches NFL player statistics by name or identifier for a specific season.

The following routes are available for this service:
GET/api/nfl/player/{PlayerId}/stats
GET/api/nfl/player/{PlayerId}/stats/{Season}
GET/api/nfl/player/{LastName}/{FirstName}/stats
GET/api/nfl/player/{LastName}/{FirstName}/stats/{Season}
Parameters:
NameParameterData TypeRequiredDescription
SeasonpathintNoThe season to refine name results by. Default is the all seasons.
PlayerIdpathstringYesThe Id of the player to fetch statistics by.
LastNamepathstringYesThe last name of the player to fetch statistics by.
FirstNamepathstringYesThe first name of the player for which to fetch statistics.

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"season":0,"week":0,"team":"String","opponent":"String","player":"String","playerId":"String","lastName":"String","firstName":"String","position":"String","att":0,"comp":0,"compPct":0,"passYds":0,"passAvg":0,"passTds":0,"tdPct":0,"ints":0,"intPct":0,"rating":0,"sacks":0,"sackYds":0,"rush":0,"rushYds":0,"rushAvg":0,"rushTds":0,"rec":0,"recYds":0,"recAvg":0,"recTds":0}