{"uid":"cap_GUloImwEkQAleA8w0ES7W","slug":"fanfare-run-5ba8d66a","name":"Fanfare MLB Player Season Stats","description":"Full season hitting, pitching, and fielding stats for an MLB player by ID. Example: 660271 = Shohei Ohtani.","url":"https://fanfare.run/mlb/player/:player_id","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["player_id"],"properties":{"player_id":{"type":"string","description":"MLB player ID"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"player_id":660271},"response":{"data":{"id":"660271","bats":"L","stats":[{"type":{"displayName":"season"},"group":{"displayName":"hitting"},"splits":[{"stat":{"age":31,"avg":".269","obp":".400","ops":".882","rbi":30,"slg":".482","hits":52,"runs":36,"babip":".321","atBats":193,"airOuts":47,"doubles":12,"triples":1,"homeRuns":9,"sacBunts":0,"sacFlies":3,"groundOuts":44,"hitByPitch":5,"leftOnBase":78,"strikeOuts":53,"totalBases":93,"baseOnBalls":39,"gamesPlayed":55,"stolenBases":6,"caughtStealing":2,"numberOfPitches":931,"atBatsPerHomeRun":"21.44","intentionalWalks":6,"plateAppearances":241,"groundOutsToAirouts":"0.94","catchersInterference":1,"groundIntoDoublePlay":3,"stolenBasePercentage":".750","caughtStealingPercentage":".250"},"team":{"id":119,"link":"/api/v1/teams/119","name":"Los Angeles Dodgers"},"sport":{"id":1,"link":"/api/v1/sports/1","abbreviation":"MLB"},"league":{"id":104,"link":"/api/v1/league/104","name":"National League"},"player":{"id":660271,"link":"/api/v1/people/660271","fullName":"Shohei Ohtani"},"season":"2026","gameType":"R"}],"exemptions":[]},{"type":{"displayName":"season"},"group":{"displayName":"fielding"},"splits":[{"stat":{"age":31,"games":9,"errors":1,"assists":5,"chances":14,"innings":"55.0","putOuts":8,"fielding":".929","position":{"code":"1","name":"Pitcher","type":"Pitcher","abbreviation":"P"},"doublePlays":0,"gamesPlayed":9,"triplePlays":0,"gamesStarted":9,"throwingErrors":1,"rangeFactorPer9Inn":"2.13","rangeFactorPerGame":"1.44"},"team":{"id":119,"link":"/api/v1/teams/119","name":"Los Angeles Dodgers"},"sport":{"id":1,"link":"/api/v1/sports/1","abbreviation":"MLB"},"league":{"id":104,"link":"/api/v1/league/104","name":"National League"},"player":{"id":660271,"link":"/api/v1/people/660271","fullName":"Shohei Ohtani"},"season":"2026","gameType":"R","position":{"code":"1","name":"Pitcher","type":"Pitcher","abbreviation":"P"}},{"stat":{"age":31,"games":51,"errors":0,"assists":0,"chances":0,"innings":"0.0","putOuts":0,"fielding":".000","position":{"code":"10","name":"Designated Hitter","type":"Hitter","abbreviation":"DH"},"doublePlays":0,"gamesPlayed":51,"triplePlays":0,"gamesStarted":46,"throwingErrors":0,"rangeFactorPer9Inn":"-.--","rangeFactorPerGame":"0.00"},"team":{"id":119,"link":"/api/v1/teams/119","name":"Los Angeles Dodgers"},"sport":{"id":1,"link":"/api/v1/sports/1","abbreviation":"MLB"},"league":{"id":104,"link":"/api/v1/league/104","name":"National League"},"player":{"id":660271,"link":"/api/v1/people/660271","fullName":"Shohei Ohtani"},"season":"2026","gameType":"R","position":{"code":"10","name":"Designated Hitter","type":"Hitter","abbreviation":"DH"}}],"exemptions":[]},{"type":{"displayName":"season"},"group":{"displayName":"pitching"},"splits":[{"stat":{"age":31,"avg":".147","era":"0.82","obp":".231","ops":".447","slg":".216","hits":28,"outs":165,"runs":7,"whip":"0.82","wins":5,"balks":1,"holds":0,"saves":0,"atBats":190,"losses":2,"airOuts":51,"doubles":7,"strikes":550,"triples":0,"homeRuns":2,"pickoffs":0,"sacBunts":1,"sacFlies":1,"shutouts":0,"blownSaves":0,"earnedRuns":5,"groundOuts":52,"hitBatsmen":4,"hitByPitch":4,"strikeOuts":61,"totalBases":41,"baseOnBalls":17,"gamesPlayed":9,"hitsPer9Inn":"4.58","stolenBases":2,"wildPitches":0,"battersFaced":213,"gamesPitched":9,"gamesStarted":9,"homeRunsPer9":"0.33","walksPer9Inn":"2.78","completeGames":0,"gamesFinished":0,"winPercentage":".714","caughtStealing":0,"inningsPitched":"55.0","runsScoredPer9":"1.15","numberOfPitches":854,"inheritedRunners":0,"intentionalWalks":0,"pitchesPerInning":"15.53","strikePercentage":".640","saveOpportunities":0,"strikeoutsPer9Inn":"9.98","strikeoutWalkRatio":"3.59","groundOutsToAirouts":"1.02","catchersInterference":0,"groundIntoDoublePlay":1,"stolenBasePercentage":"1.000","inheritedRunnersScored":0,"caughtStealingPercentage":".000"},"team":{"id":119,"link":"/api/v1/teams/119","name":"Los Angeles Dodgers"},"sport":{"id":1,"link":"/api/v1/sports/1","abbreviation":"MLB"},"league":{"id":104,"link":"/api/v1/league/104","name":"National League"},"player":{"id":660271,"link":"/api/v1/people/660271","fullName":"Shohei Ohtani"},"season":"2026","gameType":"R"}],"exemptions":[]}],"status":"active","throws":"R","team_id":"119","position":"TWP","full_name":"Shohei Ohtani","last_name":"Ohtani","first_name":"Shohei","jersey_number":"17"},"sport":"baseball","errors":[],"league":"mlb","warnings":[],"request_id":"e42a4a30-bd8c-4a37-8746-f4e6bdbd5fd1","retrieved_at":"2026-05-30T00:32:56.086506+00:00"}},"exampleRequest":{"player_id":660271},"tags":["x402"],"displayCostAmount":"0.001000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_60hnPsPbDV9KL86Df-_Y6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns full season hitting, pitching, and fielding statistics for an MLB player by their MLB player ID.","exampleAgentPrompt":"What are Shohei Ohtani's full season stats this year — hitting, pitching, and fielding? His MLB player ID is 660271.","exampleUseCases":[{"title":"Compare pitcher ERA and strikeouts","prompt":"Can you pull up all of Gerrit Cole's stats for this season? I want to see his ERA, strikeouts, and WHIP. His MLB player ID is 543037."},{"title":"Check slugger's home run totals","prompt":"How many home runs and RBIs does Aaron Judge have so far this season? Also grab his batting average and OBP — his MLB player ID is 592450."},{"title":"Review fielder's defensive performance","prompt":"I want to see the full season fielding stats for Nolan Arenado — things like his fielding percentage and errors. His MLB player ID is 571448."}],"resultDescription":"A structured response containing the player's complete season statistics across hitting (e.g. batting average, home runs, RBIs, OBP, SLG), pitching (e.g. ERA, strikeouts, WHIP, wins/losses), and fielding (e.g. fielding percentage, errors, putouts) for the current or most recent MLB season.","failureModes":["Invalid or unknown player_id returns a 404 or empty response","Player ID exists but player has no stats for the current season (e.g. injured, minor league)","Service unavailable or upstream MLB data feed outage returns 5xx error","Malformed player_id (non-numeric or wrong format) may return a validation error"],"whenToPreferThis":"Use this endpoint when you need comprehensive season-level stats (hitting, pitching, AND fielding) for a specific MLB player identified by their numeric MLB player ID. Prefer this over generic sports APIs when you need all three stat categories in one call, or when you already have the MLB player ID.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:59:14.656Z","isFirstParty":false}