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

Stat Averages

Stat average management endpoints

Operations

Leagues

League management endpoints

Operations

Teams

Team management endpoints

Operations

Players

Player management endpoints

Operations

List players

Request

Path
league_idstringrequired
curl -i -X GET \
  'https://docs.anytimelabs.io/_mock/apis/leagues/{league_id}/players?key=YOUR_API_KEY_HERE'

Responses

List of players

Bodyapplication/jsonArray [
idstringrequired

Unique identifier for the player

first_namestringrequired

Player's first name

last_namestringrequired

Player's last name

full_namestringrequired

Player's full name

jersey_numberinteger

Player's jersey number

positionobject(Position)

Player's position

teamobject(Team)

Player's current team (if applicable)

]
Response
application/json
[ { "id": "string", "first_name": "string", "last_name": "string", "full_name": "string", "jersey_number": 0, "position": {}, "team": {} } ]

Get player

Request

Fetch player information including id, name, team, and position

Path
league_idstringrequired
player_idstringrequired
curl -i -X GET \
  'https://docs.anytimelabs.io/_mock/apis/leagues/{league_id}/players/{player_id}?key=YOUR_API_KEY_HERE'

Responses

Player details

Bodyapplication/json
idstringrequired

Unique identifier for the player

first_namestringrequired

Player's first name

last_namestringrequired

Player's last name

full_namestringrequired

Player's full name

jersey_numberinteger

Player's jersey number

positionobject(Position)

Player's position

teamobject(Team)

Player's current team (if applicable)

Response
application/json
{ "id": "string", "first_name": "string", "last_name": "string", "full_name": "string", "jersey_number": 0, "position": { "category": "string", "name": "string" }, "team": { "id": "string", "league_id": "string", "city": "string", "mascot": "string", "full_name": "string", "abbr": "string" } }

Look player

Request

Search for players by name and optionally by team

Path
league_idstringrequired
Query
namestringrequired

Name to search for (can be partial)

team_idstring

Optional team ID to filter by. This makes the response faster and more accurate.

curl -i -X GET \
  'https://docs.anytimelabs.io/_mock/apis/leagues/{league_id}/players/lookup?key=YOUR_API_KEY_HERE&name=string&team_id=string'

Responses

List of matching players

Bodyapplication/jsonArray [
idstringrequired

Unique identifier for the player

first_namestringrequired

Player's first name

last_namestringrequired

Player's last name

full_namestringrequired

Player's full name

jersey_numberinteger

Player's jersey number

positionobject(Position)

Player's position

teamobject(Team)

Player's current team (if applicable)

]
Response
application/json
[ { "id": "string", "first_name": "string", "last_name": "string", "full_name": "string", "jersey_number": 0, "position": {}, "team": {} } ]

List team players

Request

Path
league_idstringrequired
team_idstringrequired
curl -i -X GET \
  'https://docs.anytimelabs.io/_mock/apis/leagues/{league_id}/teams/{team_id}/players?key=YOUR_API_KEY_HERE'

Responses

List of players on the team

Bodyapplication/jsonArray [
idstringrequired

Unique identifier for the player

first_namestringrequired

Player's first name

last_namestringrequired

Player's last name

full_namestringrequired

Player's full name

jersey_numberinteger

Player's jersey number

positionobject(Position)

Player's position

teamobject(Team)

Player's current team (if applicable)

]
Response
application/json
[ { "id": "string", "first_name": "string", "last_name": "string", "full_name": "string", "jersey_number": 0, "position": {}, "team": {} } ]

Games

Game management endpoints

Operations

Data Filters

Data filter management endpoints

Operations