{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stat-api-com/json-schema/stat-api-com-mlbpitches-schema.json",
  "title": "MLBPitches",
  "description": "Every individual pitch thrown in every MLB game — the pitch type, velocity, location, movement, spin, and the result (called strike, swinging strike, foul, ball, hit, walk).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stat-api-com-mlb-api-openapi.yml#/components/schemas/MLBPitches",
  "properties": {
    "air_out": {
      "description": "Whether this pitch resulted in an air out",
      "type": "boolean"
    },
    "at_bat_id": {
      "format": "int64",
      "type": "integer"
    },
    "ball": {
      "type": "boolean"
    },
    "barrel": {
      "description": "Optimal combination of exit velocity and launch angle",
      "type": [
        "boolean",
        "null"
      ]
    },
    "batter_id": {
      "format": "int64",
      "type": "integer"
    },
    "break_angle": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "break_length": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "break_y": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "breaking_ball": {
      "description": "Breaking ball (curveball, slider, knuckleball)",
      "type": [
        "boolean",
        "null"
      ]
    },
    "call": {
      "type": "string"
    },
    "catchers_interference": {
      "description": "Whether this pitch resulted in catchers interference",
      "type": "boolean"
    },
    "chase": {
      "description": "Whether batter swung at pitch outside zone",
      "type": [
        "boolean",
        "null"
      ]
    },
    "double": {
      "description": "Whether this pitch resulted in a double",
      "type": "boolean"
    },
    "effective_speed": {
      "description": "Perceived speed to batter (mph)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "expected_batting_avg": {
      "description": "xBA based on exit velocity and launch angle",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "expected_woba": {
      "description": "xwOBA based on exit velocity and launch angle",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "extension": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "fastball": {
      "description": "Fastball variant (4-seam, 2-seam, sinker, cutter)",
      "type": [
        "boolean",
        "null"
      ]
    },
    "flare_burner": {
      "description": "Launch angle 10-25 AND exit velocity < 95",
      "type": [
        "boolean",
        "null"
      ]
    },
    "fly_out": {
      "description": "Whether this pitch resulted in a fly out",
      "type": "boolean"
    },
    "game_id": {
      "format": "int64",
      "type": "integer"
    },
    "ground_into_double_play": {
      "description": "Whether this pitch resulted in grounding into double play",
      "type": "boolean"
    },
    "ground_into_triple_play": {
      "description": "Whether this pitch resulted in grounding into triple play",
      "type": "boolean"
    },
    "ground_out": {
      "description": "Whether this pitch resulted in a ground out",
      "type": "boolean"
    },
    "hard_hit": {
      "description": "Exit velocity >= 95 MPH",
      "type": [
        "boolean",
        "null"
      ]
    },
    "hit_by_pitch": {
      "description": "Whether this pitch resulted in hit by pitch",
      "type": "boolean"
    },
    "hit_coord_x": {
      "description": "Hit coordinate X (feet from home plate)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "hit_coord_y": {
      "description": "Hit coordinate Y (feet from home plate)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "hit_distance": {
      "description": "Distance of batted ball (feet)",
      "type": [
        "integer",
        "null"
      ]
    },
    "hit_exit_velocity": {
      "description": "Exit velocity of batted ball (mph)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "hit_launch_angle": {
      "description": "Launch angle of batted ball (degrees)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "home_run": {
      "description": "Whether this pitch resulted in a home run",
      "type": "boolean"
    },
    "id": {
      "description": "Primary Key",
      "format": "int64",
      "type": "integer"
    },
    "in_play": {
      "type": "boolean"
    },
    "in_strike_zone": {
      "description": "Whether pitch was in the strike zone",
      "type": [
        "boolean",
        "null"
      ]
    },
    "intentional_walk": {
      "description": "Whether this pitch resulted in an intentional walk",
      "type": "boolean"
    },
    "launch_speed_angle_zone": {
      "description": "1=Weak, 2=Topped, 3=Under, 4=Flare/Burner, 5=Solid, 6=Barrel",
      "type": [
        "integer",
        "null"
      ]
    },
    "line_out": {
      "description": "Whether this pitch resulted in a line out",
      "type": "boolean"
    },
    "offspeed": {
      "description": "Offspeed pitch (changeup, splitter, forkball)",
      "type": [
        "boolean",
        "null"
      ]
    },
    "pitch_number": {
      "type": "integer"
    },
    "pitch_speed": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "pitch_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "pitch_x": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "pitch_y": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "pitch_z": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "pitch_zone": {
      "type": [
        "integer",
        "null"
      ]
    },
    "pitcher_id": {
      "format": "int64",
      "type": "integer"
    },
    "plate_x": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "plate_z": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "play_id": {
      "format": "int64",
      "type": "integer"
    },
    "pop_out": {
      "description": "Whether this pitch resulted in a pop out",
      "type": "boolean"
    },
    "release_speed": {
      "description": "Speed at release point (mph)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "result": {
      "type": "string"
    },
    "sacrifice_fly": {
      "description": "Whether this pitch resulted in a sacrifice fly",
      "type": "boolean"
    },
    "sacrifice_hit": {
      "description": "Whether this pitch resulted in a sacrifice bunt",
      "type": "boolean"
    },
    "single": {
      "description": "Whether this pitch resulted in a single",
      "type": "boolean"
    },
    "solid_contact": {
      "description": "Launch angle 20-25 AND exit velocity 95-100",
      "type": [
        "boolean",
        "null"
      ]
    },
    "spin_axis": {
      "description": "Spin axis (degrees)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "spin_direction": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "spin_rate": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "spray_angle": {
      "description": "Horizontal angle from center field (degrees)",
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "start_time": {
      "description": "Wall-clock time of the pitch, as the league records it",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "statcast_quality_score": {
      "description": "Statcast data quality score (0.0-1.0)",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "strike": {
      "type": "boolean"
    },
    "strike_zone_bottom": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "strike_zone_top": {
      "format": "float",
      "type": [
        "number",
        "null"
      ]
    },
    "strikeout": {
      "description": "Whether this pitch resulted in a strikeout",
      "type": "boolean"
    },
    "sweet_spot": {
      "description": "Launch angle between 8-32 degrees",
      "type": [
        "boolean",
        "null"
      ]
    },
    "topped": {
      "description": "Launch angle < 10 AND exit velocity < 90",
      "type": [
        "boolean",
        "null"
      ]
    },
    "tracking_confidence": {
      "description": "Confidence in tracking data accuracy",
      "format": "double",
      "type": [
        "number",
        "null"
      ]
    },
    "triple": {
      "description": "Whether this pitch resulted in a triple",
      "type": "boolean"
    },
    "under": {
      "description": "Launch angle less than 10 degrees",
      "type": [
        "boolean",
        "null"
      ]
    },
    "walk": {
      "description": "Whether this pitch resulted in a walk",
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "at_bat_id",
    "batter_id",
    "game_id",
    "pitcher_id",
    "play_id",
    "air_out",
    "ball",
    "call",
    "catchers_interference",
    "double",
    "fly_out",
    "ground_into_double_play",
    "ground_into_triple_play",
    "ground_out",
    "hit_by_pitch",
    "home_run",
    "in_play",
    "intentional_walk",
    "line_out",
    "pitch_number",
    "pop_out",
    "result",
    "sacrifice_fly",
    "sacrifice_hit",
    "single",
    "strike",
    "strikeout",
    "triple",
    "walk"
  ],
  "type": "object"
}