競
MLB API
3 endpointsSports & GamingUSsocial:read
Returns the MLB scoreboard of any day with teams, records, runs, hits, errors, inning scores and winning, losing and saving pitchers, plus player profiles and the 30 clubs.
View as Markdown| GET | /mlb/scores | MLB scoreboard of one day: every game with status, teams, records, runs, hits, errors, inning scores and winning, losing and saving pitchers. |
| GET | /mlb/player | Profile of one MLB player: position, number, bats and throws, height, weight, birth, draft, debut, current club and career regular-season totals. |
| GET | /mlb/teams | The 30 MLB clubs with id, name, abbreviation, city, league, division, first year and home ballpark. |
scores
GET
/v1/mlb/scoresMLB scoreboard of one day: every game with status, teams, records, runs, hits, errors, inning scores and winning, losing and saving pitchers.
scope social:read1 unitcached 5 minpaginated
Parameters
datestring required | Day as YYYY-MM-DD in US Eastern time. e.g. 2025-09-28 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
29 fields
away | Side |
abbreviation | string |
errors | any |
hits | any |
innings | string[] |
name | string |
nickname | string |
record | string |
runs | any |
teamId | string |
date | string |
decisions | Decision[] |
name | string |
playerId | string |
type | string |
url | string |
home | Side |
abbreviation | string |
errors | any |
hits | any |
innings | string[] |
name | string |
nickname | string |
record | string |
runs | any |
teamId | string |
id | string |
status | string |
url | string |
curl "https://api.hoshime.com/v1/mlb/scores?date=2025-09-28" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mlb/scores?date=2025-09-28", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mlb/scores?date=2025-09-28", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "away": { "abbreviation": "…", "errors": null, "hits": null, "innings": [], "name": "…", "nickname": "…", "record": "…", "runs": null, "teamId": "abc123" }, "date": "…", "decisions": [ { "name": null, "playerId": null, "type": null, "url": null } ], "home": { "abbreviation": "…", "errors": null, "hits": null, "innings": [], "name": "…", "nickname": "…", "record": "…", "runs": null, "teamId": "abc123" }, "id": "abc123", "status": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "scores", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mlb", "requestId": "req_2Xb9kQ…", "units": 1 } }
player
GET
/v1/mlb/playerProfile of one MLB player: position, number, bats and throws, height, weight, birth, draft, debut, current club and career regular-season totals.
scope social:read1 unitcached 6 h
Parameters
idstring required | MLB player id such as 592450, or the player's mlb.com page URL. e.g. 592450 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
21 fields
age | any |
bats | string |
birthDate | string |
birthPlace | string |
career | Stat[] |
name | string |
value | string |
college | string |
debutDate | string |
draft | string |
fullName | string |
height | string |
id | string |
name | string |
nickname | string |
number | string |
position | string |
teamId | string |
throws | string |
url | string |
weightLbs | any |
curl "https://api.hoshime.com/v1/mlb/player?id=592450" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mlb/player?id=592450", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mlb/player?id=592450", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "age": null, "bats": "…", "birthDate": "…", "birthPlace": "…", "career": [ { "name": "…", "value": "…" } ], "college": "…", "debutDate": "…", "draft": "…", "fullName": "…", "height": "…", "id": "abc123", "name": "…", "nickname": "…", "number": "…", "position": "…", "teamId": "abc123", "throws": "…", "url": "https://…", "weightLbs": null }, "meta": { "cached": false, "endpoint": "player", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "mlb", "requestId": "req_2Xb9kQ…", "units": 1 } }
teams
GET
/v1/mlb/teamsThe 30 MLB clubs with id, name, abbreviation, city, league, division, first year and home ballpark.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
abbreviation | string |
active | boolean |
city | string |
division | string |
firstYear | any |
id | string |
league | string |
name | string |
nickname | string |
venue | string |
curl "https://api.hoshime.com/v1/mlb/teams" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mlb/teams", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mlb/teams", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "abbreviation": "…", "active": false, "city": "…", "division": "…", "firstYear": null, "id": "abc123", "league": "…", "name": "…", "nickname": "…", "venue": "…" } ], "meta": { "cached": false, "endpoint": "teams", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mlb", "requestId": "req_2Xb9kQ…", "units": 1 } }