Path Parameters
level
Most valid API requests require the inclusion of one of National Statistical's subsites, which each represent a level of competition in basketball, baseball or hockey, or for API purposes: a level parameter. An updated list can always be found at the glossary endpoint. The level parameter must be passed after the endpoint name in the URI in the following format:
https://api.natstat.com/v2/league/MLB/?key=XXXX-XXXXXX
| Abbrev | League | Full Data Back To |
| AsiaBB | Asian professional basketball leagues | 2012 |
| AmerBB | North/South/Central American professional basketball leagues | 2012 |
| CBB | NCAA Division I College Baseball | 2012 |
| EuroBB | European professional basketball leagues | 2012 |
| FC | NatStat FC (soccer) | 1908 |
| GL | NBA G League | 2010 |
| KBO | Korean Baseball Organization | 2010 |
| KHL | Kontinental Hockey League | 2009 |
| MHK | NCAA Division I Men's Hockey | 2016 |
| MLB | Major League Baseball | 2008 |
| MiLB | Minor League Baseball | 2012 |
| MBB | NCAA Men's Division I College Basketball | 2008 |
| MB2 | NCAA Men's Division II College Basketball | 2012 |
| MB3 | NCAA Men's Division III College Basketball | 2012 |
| NBA | National Basketball Association | 1991 |
| MBIA | NAIA Men's Basketball | 2016 |
| MBJC | Junior College Men's Basketball | 2016 |
| NHL | National Hockey League | 1990 |
| NPB | Nippon Professional Baseball | 2010 |
| WBB | NCAA Women's Division I College Basketball | 2012 |
| WB2 | NCAA Women's Division II College Basketball | 2012 |
| WB3 | NCAA Women's Division III College Basketball | 2012 |
| WBIA | NAIA Women's Basketball | 2016 |
| WBJC | Junior College Women's Basketball | 2016 |
| WNBA | Women's National Basketball Association | 2007 |
| PFB | Pro Football | 2002 |
| CFB | College Football | 2002 |
Please note that the level parameter is not case sensitive (MiLB, MILB and milb will each work).
type
The glossary endpoint returns dictionaries of various meta information found in the API. The type parameter must be passed after the endpoint name and level in the URI in the following format:
https://api.natstat.com/v2/glossary/EuroBB/leagues/?key=XXXX-XXXXXX
stats
| player | Returns statistics and rankings for players. |
| team | Returns statistics and rankings for teams. |
glossary
| stats | Names, abbreviations and short descriptions of statistics found at the teams, players, playerperfs, playbyplay and pitch endpoints. |
| levels | ID codes, names and metadata for competition levels. |
| nations | Names, abbreviations (ISO codes) and flag images of player origination countries found at the players endpoint. |
| sublevels | ID codes, names, and active date ranges for sublevels (leagues and conferences). |