api-ninjas-com · Schema

BaseballGame

CompanyDataFinanceDevelopers

Properties

Name Type Description
game_id string Unique, permanent id of the game.
league string
sport string
season integer Year the season starts.
season_label string
season_type string
date string Game day in US Eastern time.
start_time string
status string
status_detail stringnull While a game is in progress: top, middle, bottom or end of the inning. While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
period integernull Current or last inning played; extra innings continue the count. While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
clock stringnull Always null: baseball has no game clock.
home_team object
away_team object
home_score integernull While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
away_score integernull While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
period_scores objectnull Runs per inning, with every extra inning. While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
hits objectnull hits per team. While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
errors objectnull errors per team. While a game is in progress, the free plan receives the string "This field is for premium subscribers only." instead.
decided_in stringnull
winner stringnull team_id of the winner of a final game; null before then.
venue object
neutral_site boolean
original_date stringnull First scheduled date of a moved game.
updated_at string
View JSON Schema on GitHub

JSON Schema

api-ninjas-com-baseball-game-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-baseball-game-schema.json",
  "title": "BaseballGame",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-baseball-api-openapi.yml#/components/schemas/BaseballGame",
  "type": "object",
  "properties": {
    "game_id": {
      "type": "string",
      "description": "Unique, permanent id of the game."
    },
    "league": {
      "type": "string",
      "enum": [
        "mlb"
      ]
    },
    "sport": {
      "type": "string",
      "enum": [
        "baseball"
      ]
    },
    "season": {
      "type": "integer",
      "description": "Year the season starts."
    },
    "season_label": {
      "type": "string"
    },
    "season_type": {
      "type": "string",
      "enum": [
        "preseason",
        "regular",
        "postseason"
      ]
    },
    "date": {
      "type": "string",
      "format": "date",
      "description": "Game day in US Eastern time."
    },
    "start_time": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "enum": [
        "scheduled",
        "in_progress",
        "final",
        "postponed",
        "canceled",
        "suspended",
        "delayed"
      ]
    },
    "status_detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "While a game is in progress: top, middle, bottom or end of the inning. While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead."
    },
    "period": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Current or last inning played; extra innings continue the count. While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead."
    },
    "clock": {
      "type": [
        "string",
        "null"
      ],
      "description": "Always null: baseball has no game clock."
    },
    "home_team": {
      "$ref": "#/$defs/BaseballTeamRef"
    },
    "away_team": {
      "$ref": "#/$defs/BaseballTeamRef"
    },
    "home_score": {
      "type": [
        "integer",
        "null"
      ],
      "description": "While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead."
    },
    "away_score": {
      "type": [
        "integer",
        "null"
      ],
      "description": "While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead."
    },
    "period_scores": {
      "type": [
        "object",
        "null"
      ],
      "description": "Runs per inning, with every extra inning. While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead.",
      "properties": {
        "home": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "away": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      }
    },
    "hits": {
      "type": [
        "object",
        "null"
      ],
      "description": "hits per team. While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead.",
      "properties": {
        "home": {
          "type": "integer"
        },
        "away": {
          "type": "integer"
        }
      }
    },
    "errors": {
      "type": [
        "object",
        "null"
      ],
      "description": "errors per team. While a game is in progress, the free plan receives the string \"This field is for premium subscribers only.\" instead.",
      "properties": {
        "home": {
          "type": "integer"
        },
        "away": {
          "type": "integer"
        }
      }
    },
    "decided_in": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "regulation",
        "extra_innings",
        null
      ]
    },
    "winner": {
      "type": [
        "string",
        "null"
      ],
      "description": "team_id of the winner of a final game; null before then."
    },
    "venue": {
      "$ref": "#/$defs/BaseballVenue"
    },
    "neutral_site": {
      "type": "boolean"
    },
    "original_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "First scheduled date of a moved game."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "BaseballTeamRef": {
      "type": "object",
      "properties": {
        "team_id": {
          "type": "string",
          "description": "Team id, e.g. mlb-nyy."
        },
        "name": {
          "type": "string"
        },
        "abbreviation": {
          "type": "string"
        }
      }
    },
    "BaseballVenue": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-1 alpha-2"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/api-ninjas-com-baseball-game"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.