Skip to content

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/scoresMLB scoreboard of one day: every game with status, teams, records, runs, hits, errors, inning scores and winning, losing and saving pitchers.
GET/mlb/playerProfile of one MLB player: position, number, bats and throws, height, weight, birth, draft, debut, current club and career regular-season totals.
GET/mlb/teamsThe 30 MLB clubs with id, name, abbreviation, city, league, division, first year and home ballpark.

scores

GET/v1/mlb/scores

MLB 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

date
string
required
Day as YYYY-MM-DD in US Eastern time.
e.g. 2025-09-28
tunnel
string
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.
proxy
string
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.
profileId
string
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
awaySide
abbreviationstring
errorsany
hitsany
inningsstring[]
namestring
nicknamestring
recordstring
runsany
teamIdstring
datestring
decisionsDecision[]
namestring
playerIdstring
typestring
urlstring
homeSide
abbreviationstring
errorsany
hitsany
inningsstring[]
namestring
nicknamestring
recordstring
runsany
teamIdstring
idstring
statusstring
urlstring
curl "https://api.hoshime.com/v1/mlb/scores?date=2025-09-28" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/player

Profile 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

id
string
required
MLB player id such as 592450, or the player's mlb.com page URL.
e.g. 592450
tunnel
string
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.
proxy
string
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.
profileId
string
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
ageany
batsstring
birthDatestring
birthPlacestring
careerStat[]
namestring
valuestring
collegestring
debutDatestring
draftstring
fullNamestring
heightstring
idstring
namestring
nicknamestring
numberstring
positionstring
teamIdstring
throwsstring
urlstring
weightLbsany
curl "https://api.hoshime.com/v1/mlb/player?id=592450" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/teams

The 30 MLB clubs with id, name, abbreviation, city, league, division, first year and home ballpark.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
abbreviationstring
activeboolean
citystring
divisionstring
firstYearany
idstring
leaguestring
namestring
nicknamestring
venuestring
curl "https://api.hoshime.com/v1/mlb/teams" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open