{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stat-api-com/json-schema/stat-api-com-nbaplayers-schema.json",
  "title": "NBAPlayers",
  "description": "Every individual who has played in the NBA — current rosters, two-way and 10-day contracts, G-League call-ups, free agents, and retired veterans. The roster signal lives in `roster_status` (the canonical cross-league vocabulary) and `team_id` (null for free agents and retired players). Pass `?team_id=` to scope to one franchise's current roster, or omit it to scan the full historical roster pool.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stat-api-com-nba-api-openapi.yml#/components/schemas/NBAPlayers",
  "properties": {
    "birth_city": {
      "description": "City of birth.",
      "type": [
        "string",
        "null"
      ]
    },
    "birth_country": {
      "description": "Country of birth (ISO English name).",
      "type": [
        "string",
        "null"
      ]
    },
    "birth_date": {
      "description": "Birth date in YYYY-MM-DD form.",
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    },
    "birth_state": {
      "description": "State / province of birth (US/Canadian players).",
      "type": [
        "string",
        "null"
      ]
    },
    "display_fi_last": {
      "description": "Display name in \"F. Last\" form.",
      "type": [
        "string",
        "null"
      ]
    },
    "display_last_comma_first": {
      "description": "Display name in \"Last, First\" form. Useful for sorted lists.",
      "type": [
        "string",
        "null"
      ]
    },
    "dleague_flag": {
      "description": "Two-character bit-string from the league: \"00\" no G-League history, \"01\" G-League experience, \"11\" currently G-League-affiliated (two-way / assignment).",
      "type": [
        "string",
        "null"
      ]
    },
    "draft_number": {
      "description": "Overall pick number within the draft (string). Empty for undrafted.",
      "type": [
        "string",
        "null"
      ]
    },
    "draft_round": {
      "description": "Draft round (string). Empty for undrafted players.",
      "type": [
        "string",
        "null"
      ]
    },
    "draft_year": {
      "description": "Year the player was drafted (string form). Empty for undrafted players.",
      "type": [
        "string",
        "null"
      ]
    },
    "experience": {
      "description": "Years of NBA experience as of the most recent season. Rookies = 0.",
      "type": [
        "integer",
        "null"
      ]
    },
    "first_name": {
      "description": "Player's legal first name as registered with the league.",
      "type": "string"
    },
    "from_year": {
      "description": "Player's NBA debut year as a string (as the league records it).",
      "type": [
        "string",
        "null"
      ]
    },
    "full_name": {
      "description": "Convenience concatenation of first_name + last_name. Use this for display.",
      "type": "string"
    },
    "full_position_list": {
      "description": "Hyphenated full-word position list (e.g., \"Guard-Forward\", \"Center-Forward\").",
      "type": [
        "string",
        "null"
      ]
    },
    "games_played_flag": {
      "description": "String \"Y\"/\"N\" indicating whether the player has played at least one regular-season game.",
      "type": [
        "string",
        "null"
      ]
    },
    "height": {
      "description": "Height in inches.",
      "type": [
        "integer",
        "null"
      ]
    },
    "id": {
      "description": "Primary Key",
      "format": "int64",
      "type": "integer"
    },
    "injury_body_part": {
      "description": "Affected body part for the most recent injury (e.g., \"Knee\", \"Ankle\"). Null when injury_status is null.",
      "type": [
        "string",
        "null"
      ]
    },
    "injury_detail": {
      "description": "Free-text injury description from the source feed.",
      "type": [
        "string",
        "null"
      ]
    },
    "injury_since": {
      "description": "Timestamp of the injury status snapshot. Updated when player_news produces a new injury entry.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "injury_status": {
      "description": "Current injury status snapshot derived from player_news. Values: \"OUT\", \"QUESTIONABLE\"; null = no active injury designation (healthy).",
      "type": [
        "string",
        "null"
      ]
    },
    "jersey": {
      "description": "Current jersey number as a string (some leagues allow leading zeros, e.g., \"00\").",
      "type": [
        "string",
        "null"
      ]
    },
    "last_affiliation": {
      "description": "Most recent pre-NBA affiliation (school, league, or team).",
      "type": [
        "string",
        "null"
      ]
    },
    "last_name": {
      "description": "Player's legal last name.",
      "type": "string"
    },
    "league_player_id": {
      "description": "Official NBA player ID (issued by the league). Stable across seasons; use it to join other data that carries the league id.",
      "type": "integer"
    },
    "league_slug": {
      "description": "NBA-issued URL slug of the player (as in the league player page).",
      "type": [
        "string",
        "null"
      ]
    },
    "nba_flag": {
      "description": "String \"Y\"/\"N\" indicating NBA experience. Almost always \"Y\" in this table.",
      "type": [
        "string",
        "null"
      ]
    },
    "playercode": {
      "description": "NBA-issued player code (lastname_firstname format).",
      "type": [
        "string",
        "null"
      ]
    },
    "position_category": {
      "description": "Coarse positional grouping. One of Guard, Forward, Center, Utility.",
      "type": [
        "string",
        "null"
      ]
    },
    "primary_position": {
      "description": "Primary position. One of G, F, C, G-F, F-C. (True PG/SG/SF/PF splits live in team_depth_charts.position.)",
      "type": "string"
    },
    "roster_status": {
      "description": "Canonical roster status, shared across leagues. NBA source granularity is coarse: \"active\" (on an NBA roster), \"free_agent\" (no team), \"inactive\" (not currently rostered); injured_reserve/retired appear where derivable. The \"on a team now\" set is {active, injured_reserve}.",
      "type": [
        "string",
        "null"
      ]
    },
    "school": {
      "description": "Last school attended before the NBA (college, prep, or international club).",
      "type": [
        "string",
        "null"
      ]
    },
    "team_abbreviation": {
      "description": "Current team's tri-letter code.",
      "type": [
        "string",
        "null"
      ]
    },
    "team_city": {
      "description": "Current team's city name.",
      "type": [
        "string",
        "null"
      ]
    },
    "team_code": {
      "description": "Current team's lowercase URL slug.",
      "type": [
        "string",
        "null"
      ]
    },
    "team_id": {
      "description": "FK to nba.teams. Null for free agents and retired players.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "team_name": {
      "description": "Current team's mascot name (denormalized from teams.name for read convenience).",
      "type": [
        "string",
        "null"
      ]
    },
    "to_year": {
      "description": "Player's most recent NBA season year. Equal to from_year for rookies.",
      "type": [
        "string",
        "null"
      ]
    },
    "weight": {
      "description": "Listed weight in pounds.",
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "league_player_id",
    "first_name",
    "full_name",
    "last_name",
    "primary_position"
  ],
  "type": "object"
}