Skip to content

All Functions

Todd Roberts edited this page Aug 10, 2022 · 3 revisions

Core functions

  • statsapi.get - make calls directly to MLB StatsAPI endpoints; supports the most flexibility in request parameters, and returns raw json data
  • statsapi.meta - retrieve available values from StatsAPI for use in other queries, or look up descriptions for values found in API results
  • statsapi.notes - retrieve notes for a given endpoint, including a list of required parameters, as well as hints for some endpoints (returns info from MLB-StatsAPI module only, no calls to StatsAPI endpoints)

Functions that return formatted text

Functions that return data in a Python dictionary