# Sports Calculators Ratings, sabermetrics, handicaps, odds, brackets and scoring for sports bots and fantasy tools. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://sports-calc.x402tookit.com/openapi.json - x402 manifest: https://sports-calc.x402tookit.com/.well-known/x402 - Catalog (free): https://sports-calc.x402tookit.com/catalog - Health (free): https://sports-calc.x402tookit.com/health - Uptime (free): https://sports-calc.x402tookit.com/uptime ## Endpoints (12) ### GET /baseball-stats — $0.02 Baseball rate stats from counting stats: AVG, OBP, SLG, OPS, ISO, BABIP for batters; ERA, WHIP, K/9, BB/9, FIP for pitchers. Params: ab?: integer, h?: integer, doubles?: integer, triples?: integer, hr?: integer, bb?: integer, hbp?: integer, sf?: integer, so?: integer, ip?: string, er?: integer, hAllowed?: integer, bbIssued?: integer, soPitched?: integer, hrAllowed?: integer, hbpPitched?: integer, fipConstant?: number Example: https://sports-calc.x402tookit.com/baseball-stats?ab=500&h=150&doubles=30&triples=5&hr=20&bb=50&hbp=5&sf=5&so=100 ### GET /basketball-stats — $0.02 Basketball efficiency from box-score numbers: eFG%, true shooting %, points, per-36 rates and assist-to-turnover ratio. Params: fg: integer, fga: integer, threes?: integer, ft?: integer, fta?: integer, minutes?: number, ast?: integer, tov?: integer, reb?: integer Example: https://sports-calc.x402tookit.com/basketball-stats?fg=10&fga=20&threes=4&ft=5&fta=6&minutes=32&ast=6&tov=3&reb=8 ### GET /betting-odds — $0.02 Convert American, decimal, fractional odds and probability; add the other side for margin, or your own chance for Kelly. Params: odds: string, format: string, otherSideOdds?: string, yourProbability?: number Example: https://sports-calc.x402tookit.com/betting-odds?odds=-110&format=american&otherSideOdds=-110 ### GET /bowling-score — $0.02 Score a ten-pin bowling game from its rolls: frame-by-frame totals with strike and spare bonuses, validation of illegal rolls. Params: rolls: string Example: https://sports-calc.x402tookit.com/bowling-score?rolls=10%2C7%2C3%2C9%2C0%2C10%2C0%2C8%2C8%2C2%2C0%2C6%2C10%2C10%2C10%2C8%2C1 ### GET /cricket-stats — $0.02 Cricket batting average and strike rate, or bowling economy, average and strike rate, from raw career or match numbers. Params: runs?: integer, innings?: integer, notOuts?: integer, ballsFaced?: integer, runsConceded?: integer, overs?: string, wickets?: integer Example: https://sports-calc.x402tookit.com/cricket-stats?runs=5000&innings=100¬Outs=10&ballsFaced=7000 ### GET /cycling-power — $0.02 Cycling FTP from a 20 or 8 minute test, watts per kilogram, and the seven Coggan training zones in watts. Params: ftpWatts?: number, twentyMinuteWatts?: number, eightMinuteWatts?: number, weightKg?: number Example: https://sports-calc.x402tookit.com/cycling-power?twentyMinuteWatts=300&weightKg=70 ### GET /darts-checkout — $0.02 Darts checkout routes for a remaining score of 2 to 170: the fewest darts that finish on a double, with alternatives. Params: score: integer Example: https://sports-calc.x402tookit.com/darts-checkout?score=170 ### GET /elo-rating — $0.02 Elo rating update after a game: win probability for each side, new ratings and the points exchanged. Params: ratingA: number, ratingB: number, result: string, k?: number, kB?: number Example: https://sports-calc.x402tookit.com/elo-rating?ratingA=1600&ratingB=1400&result=win&k=32 ### GET /golf-handicap — $0.02 World Handicap System index from your last 3 to 20 rounds (best differentials), plus course handicap for a course. Params: scores?: string, differentials?: string, courseRating?: number, slopeRating?: number, targetCourseRating?: number, targetSlope?: number, targetPar?: number Example: https://sports-calc.x402tookit.com/golf-handicap?scores=82%2C85%2C79%2C88%2C91%2C84%2C80%2C86&courseRating=71.2&slopeRating=130&targetCourseRating=72.1&targetSlope=135&targetPar=72 ### GET /passer-rating — $0.02 NFL passer rating (0 to 158.3) from attempts, completions, yards, touchdowns and interceptions, with each component. Params: attempts: integer, completions: integer, yards: integer, touchdowns: integer, interceptions: integer Example: https://sports-calc.x402tookit.com/passer-rating?attempts=30&completions=20&yards=250&touchdowns=2&interceptions=1 ### GET /pythagorean-expectation — $0.02 Pythagorean expected win percentage and wins from points or runs for and against, with sport-specific exponents. Params: scored: number, allowed: number, sport?: string, games?: integer, exponent?: number Example: https://sports-calc.x402tookit.com/pythagorean-expectation?scored=800&allowed=700&sport=baseball&games=162 ### GET /tournament-math — $0.02 Rounds, byes and total games for single and double elimination, round-robin and Swiss events, with standard bracket seeding. Params: teams: integer Example: https://sports-calc.x402tookit.com/tournament-math?teams=12 ## Terms Formulas from published sports statistics and rating systems, computed locally. Odds maths is arithmetic, not betting or financial advice and not a prediction of any result; official bodies may apply extra rules (handicap caps, adjustments, league-specific constants).