Player Season Stats Queries

The Stats endpoints provide a way to query various stats.

Use case - Retrieve stats for players who had over 1300 rushing yards in the 2014 season.

Field Selector:

{
    player{firstName,lastName,team(nickName)},
    rushing{attempts,yards,touchdowns,fumbles}    
}

Query:

{
    "$query":
        {
            "season": 2014,
            "seasonType": "REG",
            "rushing.yards": {"$gt" : 1300}
        }
}

Request:

GET  /playerSeasonStats?fs={player{firstName,lastName,team{nickName}},rushing{attempts,yards,touchdowns,fumbles}}}&s={"$query":{"season" : 2014,"seasonType":"REG","rushing.yards":{"$gt" : 1300}}}

Response:

{
    "playerSeasonStats": {
        "pager": {
        },
        "data": [
            {
                "player": {
                    "firstName": "DeMarco",
                    "lastName": "Murray",
                    "team": {
                        "nickName": "Cowboys"
                    }
                }
                "rushing": {
                            "attempts": 392,
                            "yards": 1845,
                            "touchdowns": 13,
                            "fumbles": 3
                }
            },
            {
                "player": {
                    "firstName": "Le'Veon",
                    "lastName": "Bell",
                    "team": {
                        "nickName": "Steelers"
                    }
                }
                "rushing": {
                            "attempts": 290,
                            "yards": 1361,
                            "touchdowns": 8,
                            "fumbles": 0
                }
            },
            {
                "player": {
                    "firstName": "LeSean",
                    "lastName": "McCoy",
                    "team": {
                        "nickName": "Eagles"
                    }
                }
                "rushing": {
                            "attempts": 312,
                            "yards": 1319,
                            "touchdowns": 5,
                            "fumbles": 3
                }
            },
            {
                "player": {
                    "firstName": "Marshawn",
                    "lastName": "Lynch",
                    "team": {
                        "nickName": "Seahawks"
                    }
                }
                "rushing": {
                            "attempts": 280,
                            "yards": 1306,
                            "touchdowns": 13,
                            "fumbles": 1
                }
            },
            {
                "player": {
                    "firstName": "Marshawn",
                    "lastName": "Lynch",
                    "team": {
                        "nickName": "Seahawks"
                    }
                }
                "rushing": {
                            "attempts": 280,
                            "yards": 1306,
                            "touchdowns": 13,
                            "fumbles": 1
                }
            }
        ]
    }
}