Player Game Stats Queries

The Stats endpoints provide a way to query various stats.

Use case - Retrieve stats for players who had 4 or more passing touchdowns in week 4 of 2014 season.

Field Selector:

{
    player{firstName,lastName,team(nickName)},
    passing{attempts,completions,yards,touchdowns,interceptions}    
}

Query:

{
    "$query":
        {
            "game.week.week":4,
            "game.week.season": 2014,
            "game.week.seasonType": "REG"
            "passing.touchdowns": {"$gte" : 4}
        }
}

Request:

GET  /playerGameStats?fs={player{firstName,lastName,team{nickName}},passing{attempts,completions,yards,touchdowns,interceptions}}&s={"$query":{"game.week.week":4,"game.week.season":2014,"game.week.seasonType":"REG","passing.touchdowns":{"$gte" : 4}}}

Response:

{
    "playerGameStats": {
        "pager": {
        },
        "data": [
            {
                "player": {
                    "firstName": "Eli",
                    "lastName": "Manning",
                    "team": {
                        "nickName": "Giants"
                    }
                }
                "passing": {
                            "attempts": 39,
                            "completions": 28,
                            "yards": 300,
                            "touchdowns": 4,
                            "interceptions": 1
                }
            },
            {
                "player": {
                    "firstName": "Aaron",
                    "lastName": "Rodgers",
                    "team": {
                        "nickName": "Packers"
                    }
                }
                "passing": {
                            "attempts": 28,
                            "completions": 22,
                            "yards": 302,
                            "touchdowns": 4,
                            "interceptions": 0
                }
            },
            {
                "player": {
                    "firstName": "Andrew",
                    "lastName": "Luck",
                    "team": {
                        "nickName": "Colts"
                    }
                }
                "passing": {
                            "attempts": 41,
                            "completions": 29,
                            "yards": 393,
                            "touchdowns": 4,
                            "interceptions": 1
                }
            }
        ]
    }
}