Batting rate stats
API · /baseball-api
Baseball Stats API
Baseball sabermetrics as an API, computed locally and deterministically — turn raw counting numbers into the rate stats that actually rank players. The batting endpoint takes at-bats, hits, doubles, triples, home runs, walks, hit-by-pitch and sacrifice flies and returns the batting average (H/AB), on-base percentage ((H+BB+HBP)/(AB+BB+HBP+SF)), slugging percentage (total bases/AB), OPS (on-base plus slugging), isolated power (SLG−AVG) and, when strikeouts are supplied, BABIP — a classic .300/.366/.530 line comes straight out. The pitching endpoint takes innings pitched, earned runs, hits, walks, strikeouts and home runs and returns the earned run average (9·ER/IP), WHIP ((BB+H)/IP), strikeouts and walks per nine innings, the strikeout-to-walk ratio and FIP, the fielding-independent pitching estimator (13·HR + 3·(BB+HBP) − 2·K)/IP + constant. Innings pitched is a true decimal, with an exact "outs" input for the 6.1/6.2 box-score convention. Everything is computed locally and deterministically, so it is instant and private. Ideal for fantasy-baseball, sports-analytics, sabermetrics and box-score app developers, scouting and stat-line tools, and teaching material. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 2 compute endpoints. This computes the stats from your numbers; for live scores, standings, teams and players use a sports-data API.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 75 ms
- Server probes · 24h
- Subscribers
- 4,180
- active
- Total calls
- 57
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 5,350 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 5,350 calls/month
- 2 req/sec
- Batting + pitching rate stats
- No credit card
Starter
€4.25 /month
- 54,000 calls / month
- 6 requests / second
- Hard cap (429 above quota, no overage)
- 54,000 calls/month
- 6 req/sec
- OPS, ISO, BABIP, FIP, K/9
- Email support
Pro
€11.90 /month
- 246,000 calls / month
- 15 requests / second
- Hard cap (429 above quota, no overage)
- 246,000 calls/month
- 15 req/sec
- Fantasy & box-score pipelines
- Priority support
Mega
€36.50 /month
- 1,330,000 calls / month
- 40 requests / second
- Hard cap (429 above quota, no overage)
- 1,330,000 calls/month
- 40 req/sec
- Platform scale
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
MLB Baseball Stats API
Major League Baseball as an API, from the official MLB Stats API. Get the 30 clubs, live division standings (wins, losses, win pct, games back, current streak, run differential), the full schedule and final scores for any date, team rosters, player profiles with complete season hitting and pitching stats (HR, AVG, OPS, RBI, ERA, strikeouts, W-L and more), and inning-by-inning line scores for any game. Resolve teams by abbreviation (NYY), id (147) or name (Yankees), and players by name (Aaron Judge) or MLB id. Perfect for building scoreboards and standings widgets, fantasy-baseball tools, stat dashboards, Discord/Slack bots, and sports-data apps. No key for the upstream, no accounts to manage.
api.oanor.com/mlb-api
WNBA API
Live WNBA (women's basketball) data as an API — clean JSON, no key. Get the game scoreboard with live scores, clock and status; open any game for its leaders and result; browse the league standings (wins, losses, win percentage, games behind, streak); list all teams and open a team for its standing, venue and colours; pull a player's profile (position, jersey, height, weight, college); search players by name; and read the latest news. Live data sourced continuously from ESPN. The WNBA is one of the fastest-growing leagues in sports, with record viewership and a booming betting and fantasy market — ideal for score apps, fantasy and betting tools, dashboards and Discord bots. 8 data endpoints. Authenticated with an x-oanor-key; fair-use rate limits per plan.
api.oanor.com/wnba-api
NBA API
Live NBA (basketball) data as an API — clean JSON, no key. Get the game scoreboard with live scores, clock and status; open any game for its leaders, line scores and result; browse the full conference standings (wins, losses, win percentage, games behind, streak); list all 30 teams and open a team for its standing, venue and colours; pull a player's profile (position, jersey, height, weight, college, team); search players by name; and read the latest NBA news. Live data sourced continuously from ESPN. One of the most-followed sports worldwide, with a huge fantasy and betting market — ideal for fantasy-basketball tools, score apps, dashboards, Discord bots and media sites. 8 data endpoints. Authenticated with an x-oanor-key; fair-use rate limits per plan.
api.oanor.com/nba-api
NFL API
Live NFL (American football) data as an API — clean JSON, no key. Get the game scoreboard with live scores, clock and status; open any game for its box-score leaders, line scores and result; browse the full conference and division standings (wins, losses, ties, win percentage, streak); list all 32 teams and open a team for its record, standing, venue and colours; pull a player's profile (position, jersey, height, weight, college, team); search players by name; and read the latest NFL news. Live data sourced continuously from ESPN. The most-watched US sport, with a huge fantasy and betting market — ideal for fantasy-football tools, score apps, dashboards, Discord bots and media sites. 8 data endpoints. Authenticated with an x-oanor-key; fair-use rate limits per plan.
api.oanor.com/nfl-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Baseball Stats API?
What's the rate limit for Baseball Stats API?
How much does Baseball Stats API cost?
Can I cancel my subscription anytime?
Is Baseball Stats API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/baseball-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/baseball-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/baseball-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/baseball-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.