Anytime Labs API (1.0.0)

API for fetching trending stat insights, and split historical player stats

Download OpenAPI description
Languages
Servers
Mock server
https://docs.anytimelabs.io/_mock/apis/
https://api.anytimelabs.io/v1beta/

Game Logs

Game log retrieval and analysis endpoints

Operations

Get player game logs

Request

Fetch player game logs for the given time span and game filters.

Path
league_idstringrequired
player_idstringrequired
Bodyapplication/jsonrequired
conditionsArray of objects(TimeSpanAndGameFilters)required
conditions[].​time_spanobject(DataFilter)required

Time span filter to apply

conditions[].​time_span.​keystringrequired

Unique identifier for the filter

conditions[].​time_span.​valueArray of strings or integers or booleans or arrays or null or string or integer or boolean or nullrequired
conditions[].​game_filtersArray of objects(DataFilter)

Optional game-specific filters to apply within the time span

hit_rate_requestsArray of objects

Optional array of stat key and handicap pairs to calculate hit rates for

restrict_reponse_keys_to_hit_rate_requestsboolean

If true, only return stats that are referenced in hit_rate_requests

Default false
curl -i -X POST \
  'https://docs.anytimelabs.io/_mock/apis/leagues/{league_id}/players/{player_id}/game-logs?key=YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "conditions": [
      {
        "time_span": {
          "key": "string",
          "value": "string"
        },
        "game_filters": [
          {
            "key": "string",
            "value": "string"
          }
        ]
      }
    ],
    "hit_rate_requests": [
      {
        "stat_key": "string",
        "handicap": 0
      }
    ],
    "restrict_reponse_keys_to_hit_rate_requests": false
  }'

Responses

Player's game logs and optional hit rate statistics

Bodyapplication/json
playerobject(Player)
condition_game_logsArray of objects
Response
application/json
{ "player": { "id": "string", "first_name": "string", "last_name": "string", "full_name": "string", "jersey_number": 0, "position": {}, "team": {} }, "condition_game_logs": [ {} ] }

Stat Averages

Stat average management endpoints

Operations

Leagues

League management endpoints

Operations

Teams

Team management endpoints

Operations

Players

Player management endpoints

Operations

Games

Game management endpoints

Operations

Data Filters

Data filter management endpoints

Operations