Team Season Stats Queries

The Stats endpoints provide a way to query various stats.

Use case - Retrieve stats for teams that had 20 or more interceptions in the 2014 season.

Field Selector:

{
    team{nickName},
    defensive{interceptions,interceptionsTouchdowns,interceptionsYards}    
}

Query:

{
    "$query":
        {
            "season": 2014,
            "seasonType": "REG",
            "defensive.interceptions": {"$gte" : 20}
        }
}

Request:

GET  /teamSeasonStats?fs={team{nickName},defensive{interceptions,interceptionsTouchdowns,interceptionsYards}}&s={"$query":{"season" : 2014,"seasonType":"REG","defensive.interceptions":{"$gte" : 20}}}

Response:

{
    "teamSeasonStats": {
        "pager": {
        },
        "data": [
            {
                "team": {
                    "nickName": "49ers"
                }
                "defensive": {
                            "interceptions": 23,
                            "interceptionsTouchdowns": 2,
                            "interceptionsYards": 315
                }
            },
            {
                "team": {
                    "nickName": "Browns"
                }
                "defensive": {
                            "interceptions": 21,
                            "interceptionsTouchdowns": 2,
                            "interceptionsYards": 333
                }
            },
            {
                "team": {
                    "nickName": "Bengals"
                }
                "defensive": {
                            "interceptions": 20,
                            "interceptionsTouchdowns": 1,
                            "interceptionsYards": 161
                }
            },
            {
                "team": {
                    "nickName": "Lions"
                }
                "defensive": {
                            "interceptions": 20,
                            "interceptionsTouchdowns": 21,
                            "interceptionsYards": 388
                }
            },
            {
                "team": {
                    "nickName": "Texans"
                }
                "defensive": {
                            "interceptions": 20,
                            "interceptionsTouchdowns": 4,
                            "interceptionsYards": 483
                }
            }
        ]
    }
}