Teams By Season
This endpoint allows you to retrieve the teams from a specific season.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
langattribute. Example:lang=en.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated every day.
Recommended Calls: Limit calls to 1 per day.
Use Cases
Get teams from a specific season_idhttps://baseball.sportmicro.com/teams-by-season?season_id=eq.{season_id}
Query Parameters
- season_id integer
The id of the season
Example: eq.63 - offset string
Default value:
0Limiting and Pagination
Example: 0 - limit string
Default value:
50Limiting and Pagination
Example: 50 - lang string
Default value:
enMulti-language
Example: en
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- season_id integer
The id of the season
Note: This is a Primary Key.
- season_name text
The name of the season
- teams jsonb
The teams
[
{
"season_id": 63,
"season_name": "2022",
"teams": [
{
"team_id": 160,
"team_name": "Guerreros De Caracas",
"team_hash_image": "b65e02bae2e024f77edaa08af8555a404e04b5af4d2e141e636d51808054cfbd"
},
{
"team_id": 169,
"team_name": "Centauros De La Guaira",
"team_hash_image": "f796fd114ab9186ded346acb83e3b164f642c190531f3b7399709f818e6a7626"
},
{
"team_id": 103600,
"team_name": "Caimanes de Barranquilla",
"team_hash_image": "11685f59d4f4b9a79eb178ec97996d9c15afdd72a90ac138659c4eb151d2b0c9"
},
{
"team_id": 103846,
"team_name": "Lanceros de La Guaira",
"team_hash_image": "a9ccba614d822bee9b0e038d8f825b57f7862901149636d4c0631441f583c87f"
}
]
}
]