{"api":{"id":"api_b318eced2bbfdf9525a418b5","slug":"baseball-attendance","name":"Baseball Attendance API","description":"Season attendance for every MLB or minor-league club, one record per team and season: total, home and road averages, highest and lowest crowds with dates, home games and openings.","kind":"ready_made","visibility":"public","domain":"statsapi.mlb.com","source_url":"https://statsapi.mlb.com/api/v1/attendance?leagueId=103,104&season=2026","category":"sports","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:57:27.608Z","updated_at":"2026-12-06T03:57:27.608Z","runnable":true},"version":"1.0","contract_hash":"dd9498460dac8996bb8dd5a701cc7951828e0931ce62a44d4753d7a3d450e459","fields":[{"name":"id","type":"string","description":"Team id and season.","required":true,"coverage":1,"example":"133-2026"},{"name":"team","type":"string","description":"Club name.","required":false,"coverage":1,"example":"Athletics"},{"name":"season","type":"integer","description":"Season year.","required":false,"coverage":1,"example":2026},{"name":"attendance_total","type":"integer","description":"Total attendance.","required":false,"coverage":1,"example":3172849},{"name":"attendance_avg_home","type":"integer","description":"Average attendance at home games.","required":false,"coverage":1,"example":9867},{"name":"attendance_avg_away","type":"integer","description":"Average attendance at road games.","required":false,"coverage":1,"example":29304},{"name":"attendance_high","type":"integer","description":"Largest crowd.","required":false,"coverage":1,"example":12592},{"name":"attendance_high_date","type":"date","description":"Day of the largest crowd.","required":false,"coverage":1,"example":"2026-07-01"},{"name":"attendance_low","type":"integer","description":"Smallest crowd.","required":false,"coverage":1,"example":7217},{"name":"attendance_low_date","type":"date","description":"Day of the smallest crowd.","required":false,"coverage":1,"example":"2026-09-09"},{"name":"home_games","type":"integer","description":"Home games played.","required":false,"coverage":1,"example":81},{"name":"openings_total","type":"integer","description":"Home dates (openings) of the club in the season.","required":false,"coverage":1,"example":81}],"inputs":[{"name":"seasons","type":"array","description":"Seasons, such as 2026.","example":[2026]},{"name":"teams","type":"array","description":"Only these clubs, by name or part of it.","example":["Athletics"]},{"name":"level","type":"string","description":"MLB or a minor-league level.","default":"MLB","example":"MLB","enum":["MLB","AAA","AA","High-A","Single-A"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"attendance_avg_away":{"description":"Average attendance at road games.","type":"integer"},"attendance_avg_home":{"description":"Average attendance at home games.","type":"integer"},"attendance_high":{"description":"Largest crowd.","type":"integer"},"attendance_high_date":{"description":"Day of the largest crowd.","format":"date","type":"string"},"attendance_low":{"description":"Smallest crowd.","type":"integer"},"attendance_low_date":{"description":"Day of the smallest crowd.","format":"date","type":"string"},"attendance_total":{"description":"Total attendance.","type":"integer"},"home_games":{"description":"Home games played.","type":"integer"},"id":{"description":"Team id and season.","type":"string"},"openings_total":{"description":"Home dates (openings) of the club in the season.","type":"integer"},"season":{"description":"Season year.","type":"integer"},"team":{"description":"Club name.","type":"string"}},"required":["id"],"title":"Baseball Attendance API","type":"object"},"samples":[{"id":"133-2026","team":"Athletics","season":2026,"attendance_total":3172849,"attendance_avg_home":9867,"attendance_avg_away":29304,"attendance_high":12592,"attendance_high_date":"2026-07-01","attendance_low":7217,"attendance_low_date":"2026-09-09","home_games":81,"openings_total":81},{"id":"134-2026","team":"Pittsburgh Pirates","season":2026,"attendance_total":4214159,"attendance_avg_home":21040,"attendance_avg_away":30987,"attendance_high":39105,"attendance_high_date":"2026-07-25","attendance_low":8446,"attendance_low_date":"2026-04-06","home_games":82,"openings_total":81},{"id":"135-2026","team":"San Diego Padres","season":2026,"attendance_total":5764392,"attendance_avg_home":41322,"attendance_avg_away":29843,"attendance_high":46095,"attendance_high_date":"2026-04-15","attendance_low":33276,"attendance_low_date":"2026-09-09","home_games":81,"openings_total":81}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"attendance_avg_away":1,"attendance_avg_home":1,"attendance_high":1,"attendance_high_date":1,"attendance_low":1,"attendance_low_date":1,"attendance_total":1,"home_games":1,"id":1,"openings_total":1,"season":1,"team":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.608Z","activated_at":"2026-12-06T03:57:27.608Z","active":true,"contract_hash":"dd9498460dac8996bb8dd5a701cc7951828e0931ce62a44d4753d7a3d450e459","fields_count":12}]}