You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stats layout is a little complicated. I'm not sure exactly what stats to display yet, but will likely just mirror what can be found on MLB's website. I believe the endpoint is https://statsapi.mlb.com/api/v1/stats. The problem is you need query parameters to get back data. These come from the meta endpoints:
https://statsapi.mlb.com/api/v1/statTypes
https://statsapi.mlb.com/api/v1/statGroups
I've managed to build this query: https://statsapi.mlb.com/api/v1/stats?group=hitting&stats=sabermetrics,byDayOfWeek but more exploration is needed around the query parameters.
The UI will be based on a Table widget. I would like to add the ability to perform searches, e.g. batting vs pitching. These searches will likely correspond with what I discover with the API.
The text was updated successfully, but these errors were encountered:
The stats layout is a little complicated. I'm not sure exactly what stats to display yet, but will likely just mirror what can be found on MLB's website. I believe the endpoint is
https://statsapi.mlb.com/api/v1/stats
. The problem is you need query parameters to get back data. These come from themeta
endpoints:https://statsapi.mlb.com/api/v1/statTypes
https://statsapi.mlb.com/api/v1/statGroups
I've managed to build this query:
https://statsapi.mlb.com/api/v1/stats?group=hitting&stats=sabermetrics,byDayOfWeek
but more exploration is needed around the query parameters.The UI will be based on a Table widget. I would like to add the ability to perform searches, e.g. batting vs pitching. These searches will likely correspond with what I discover with the API.
The text was updated successfully, but these errors were encountered: