MLB Scraper: Franchises, Venues & Divisions avatar

MLB Scraper: Franchises, Venues & Divisions

Pricing

Pay per usage

Go to Apify Store
MLB Scraper: Franchises, Venues & Divisions

MLB Scraper: Franchises, Venues & Divisions

Pull MLB franchises, home venues, leagues and divisions from the official MLB Stats API. No login, no proxy, no browser.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Naimur Hasan

Naimur Hasan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Share

MLB Scraper

Pulls MLB franchises, home venues, leagues and divisions from the official MLB Stats API. No login, no proxy, no browser.

Input

FieldTypeNotes
leaguestringany | American League | National League. Default any.
seasonintegerSeason year. Omit for the current season.

Output

One row per franchise: id, name, clubName, abbreviation, teamCode, locationName, league, division, venue, venueId, firstYearOfPlay, active, website.

Notes

  • season changes the answer, not just the filter. Franchises relocate and rename; asking for 2010 returns the names, cities and venues as they were then, which is why it is exposed rather than hardcoded to today.
  • firstYearOfPlay is a string upstream and is converted to a number.
  • link is a relative API path; it is expanded into an absolute URL so the row is usable without knowing the base.
  • sportId=1 restricts to Major League Baseball — the same endpoint serves minor leagues and international competitions under other sport ids.