Endpoint Playground
Lists the 30 MLB clubs for a `season` (four-digit year, default the current year). Each team has its id, name, club name, location, abbreviation, league, division, venue, first year of play and active flag.
14 Oct 2026: 30 teams; 11 fields had a value in every checked item.
Sample value profiles: first_year_of_play: 1,871 to 1,996, median 1,901; name: “Athletics” and 29 other values; active: true in 30 of 30.
curl 'https://api.crawlora.net/api/v1/mlb/teams' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| season | integer | No | Four-digit season; defaults to current year |
{
"code": 200,
"msg": "OK",
"data": {
"season": 2026,
"count": 30,
"teams": [
{
"id": 147,
"name": "New York Yankees",
"abbreviation": "NYY",
"league": {
"id": 103,
"name": "American League"
}
}
]
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.