Team Game Stats Queries

The Stats endpoints provide a way to query various stats.

Use case - Retrieve stats for teams that had at least 200 rushing yards in week 7 of the 2014 season.

Field Selector:

{
    team{nickName},
    rushing  
}

Query:

{
    "$query":
        {
            "game.week.season": 2014,
            "game.week.seasonType": "REG",
            "game.week.week": 7,
            "rushing.yards": {"$gte" : 200}
        }
}

Request:

GET  /teamGameStats?fs={team{nickName},rushing}&s={"$query":{"game.week.season":2014,"game.week.seasonType":"REG","game.week.week":7,"rushing.yards":{"$gte":200}}}

Response:

{
    "teamGameStats": {
        "pager": {
        },
        "data": [
            {
                "team": {
                        "nickName": "Jets"
                }
                "rushing": {
                            "attemps": 43,
                            "yards": 218,
                            "yardsPerAttempt": 5.1,
                            "touchdowns": 1,
                            "firstDowns": 13,
                            "firstDownPercentage": 30.23,
                            "long": 16,
                            "longTouchDown": 1,
                            "twentyPlus": 0,
                            "fortyPlus":0,
                            "fumbles": 0
                }
            }
        ]
    }
}