Odds API Rate Limits: Credits, Objects and Requests Compared
A rate limit caps speed and a quota caps volume. The unit the quota is counted in decides which habits save you money.
Odds API rate limits come in two layers. A rate limit caps how fast you can call (say 60 requests a minute) and returns HTTP 429 when you go over. A usage quota caps how much you can take in a month, and providers count it in different units: credits per call, objects per item returned, or plain requests per hour. The unit matters more than the headline number. In the worked example below, the same change to a polling schedule cuts usage by more than 100 times under one meter and by about 19 times under another.
This guide lays out the three common ways odds APIs meter usage, shows exactly how SockOdds counts, then works through a monthly budget for a realistic polling schedule.
Rate limit versus usage quota
| Rate limit | Usage quota | |
|---|---|---|
| What it caps | Speed | Volume |
| Typical window | Per second, minute or hour | Per calendar month |
| What you see when you go over | HTTP 429, often with Retry-After | 429, 402 or overage billing, depending on provider |
| How to stay under | Space out calls, back off on 429 | Ask for less of what you don't need |
MDN describes 429 Too Many Requests as the status for a client that "has sent too many requests in a given amount of time". The Retry-After header "indicates how long the user agent should wait before making a follow-up request". Read it and sleep for that long, rather than retrying in a loop.
For small apps the rate limit is rarely the problem. Polling a league every two minutes is one request every two minutes. The monthly quota is where people get caught.
Three ways odds APIs count usage
Credits per call, priced by what you ask for
Some APIs charge each call in credits worked out from its parameters, not from how many games come back: typically the number of markets you ask for times the number of regions. Head to head, line and total in one region is 3 credits, whether the call returns 2 games or 20. History calls often cost a multiple of the live price, and some of these APIs charge nothing for a call that returns no events. A variant fixes a credit cost per endpoint instead, from nothing for a catalogue call to a large cost for a bulk export.
What this rewards: fetching every event in one call, and asking for fewer markets and regions.
SockOdds counts usage this way, as Plans and limits sets out. A league's featured markets (winner, result, handicap and the event totals) cost one credit per market per region for each page of up to 25 events; other markets cost one credit per market in each event. With no regions= or bookmakers=, every 10 bookmakers returned count as one region. Lists that carry no prices are free, results cost 1, recorded history costs ten times the live price, and a call that returns no data costs nothing.
| SockOdds plan | Requests a minute | Credits a month |
|---|---|---|
| Developer (free) | 10 | 1,000 |
| Starter | 60 | 30,000 |
| Pro | 300 | 5,000,000 |
| Business | 600 | 20,000,000 |
For more than Business, contact support about Platform access. A few details from the docs that change how you write a client:
- Every request counts towards the per-minute limit, including ones refused with 400 or 403. Errors cost no credits.
- Over the per-minute limit you get
429titled "Rate limit reached", with aRetry-Afterheader in seconds. - A request for a league outside your plan gets
403titled "Plan restriction". - A filter that matches nothing returns
200with an emptydatalist. It costs no credits and still counts towards the minute. - Every response carries
x-credits-used,x-credits-remaining,x-credits-last(what this call cost) andx-credits-reset.
Objects per item returned
Other APIs count objects: each record returned is one, and every bookmaker price inside it is one more. One event with three bookmakers each quoting a two-way market is 1 + 3 x 2 = 7 objects, and catalogue lists count one object per row.
What this rewards: asking only for what you show. The number of events matters, and so does the number of outcomes inside each one.
Requests per hour, priced by bookmaker
Other APIs keep the meter simple: a flat number of requests an hour on every paid plan, with the price rising with the number of bookmakers you choose. Extra hourly capacity is sometimes sold as an add-on.
What this rewards: choosing your bookmakers carefully. With a generous hourly allowance, call volume is rarely the constraint.
For how named providers meter usage and what they charge, see our comparison pages.
What happens when you run out
Going over the monthly quota is handled differently again:
- A hard stop. Some APIs answer
402 Payment Requiredat the quota and never charge for the overflow. - Overage billing. Others keep serving and bill the extra, often up to a cap.
- A visible meter. Some send the credits remaining on every response, so you can see the limit coming.
- SockOdds: every response carries the credits used and remaining. A call the month's credits cannot pay for gets
429titled "Monthly allowance reached", withcredits_needed,credits_remainingandcredits_resetin the body, so you can ask for fewer markets or regions instead. That429has noRetry-After. Free lists keep answering, and the allowance resets on the first of the month (UTC). Usage so far is also on your account page.
If your app runs unattended, keep your own count of what each response used and slow down before you reach the limit, rather than finding out from an error at 2am on a Saturday.
Worked example: a monthly polling budget
Say you track 9 matches a week, 4 weeks a month (36 matches), with head to head, line and total markets from nine Australian bookmakers. Assume every bookmaker quotes all three markets, so each event carries 9 x 3 x 2 = 54 bookmaker prices: 55 objects, or 19 with the head to head only. To keep the sums simple, assume each league-wide call returns all 9 matches. Compare three schedules over a 30-day month.
Flat: poll every event every 2 minutes, around the clock, all three markets. That is 720 calls a day, or 21,600 a month.
By time: poll every event every 30 minutes as a baseline (48 calls a day, 1,440 a month), then poll each match on its own every 2 minutes for the 3 hours before it starts (90 calls per match, 3,240 a month). That is 4,680 calls.
By time and size: poll every event every 6 hours for the head to head only (4 calls a day, 120 a month), then poll each match on its own every 2 minutes for its last hour, all three markets (30 calls per match, 1,080 a month). That is 1,200 calls.
Why 2 minutes in the fast window? SockOdds does not promise a refresh interval, so log observed_at on the prices you use and see how often they actually change. Two minutes is an example, not a rule.
| Schedule | Calls a month | Events returned | Objects | SockOdds credits (markets x 1 region) |
|---|---|---|---|---|
| Flat | 21,600 | 194,400 | 10,692,000 | 64,800 |
| By time | 4,680 | 16,200 | 891,000 | 14,040 |
| By time and size | 1,200 | 2,160 | 79,920 | 3,360 |
| Flat divided by time and size | 18x | 90x | 134x | 19x |
The working, so you can swap in your own numbers:
- Flat: 21,600 calls x 9 events = 194,400 events, x 55 = 10,692,000 objects; 21,600 x 3 = 64,800 credits.
- By time: (1,440 x 9) + (3,240 x 1) = 16,200 events, x 55 = 891,000 objects; 4,680 x 3 = 14,040 credits.
- By time and size: (120 x 9 x 19) + (1,080 x 1 x 55) = 20,520 + 59,400 = 79,920 objects; (120 x 1) + (1,080 x 3) = 3,360 credits.
What the table shows:
- Under object metering, the size of each call counts as much as the number. The fast window asks for one event, and the baseline asks for one market. Those two changes are most of the 134x gap.
- Under per-call credits, the fast window should ask for everything. Narrowing to one event saves nothing, so you may as well take all 9 in the same 3 credits. What saves credits is calling less often and asking for fewer markets and regions. Nine bookmakers count as one region on SockOdds; eleven would count as two.
- Ask for a window. Without
starts_afterorstarts_before, a SockOdds list starts 48 hours ago and includes games that have finished. They cost nothing extra in credits, but they make each page bigger. - The rate limit never comes into it. Even with three matches starting together, the last schedule peaks at under two calls a minute, well under even the Developer plan's 10.
On SockOdds the first schedule needs Pro's 5,000,000 credits, while the other two fit Starter's 30,000. If a poll spans multiple pages, each page is charged its own featured markets. The objects column shows what the same schedules would cost on an object-metered API.
Count what each call used
SockOdds reports what each call cost in its x-credits-last header, and the month so far in x-credits-used. To plan a schedule before you run it, work the cost out from the response: this program counts the credits two requests for the same NFL games use (the markets returned, times one region per 10 bookmakers), projects each across a month of polling every 2 minutes, and retries politely if it is ever told to slow down:
const headers = { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` };
const sleep = (seconds) => new Promise((resolve) => setTimeout(resolve, seconds * 1000));
// Retry only "Rate limit reached", after the Retry-After seconds. "Monthly allowance reached" will not clear.
async function get(url) {
for (let attempt = 1; ; attempt += 1) {
const response = await fetch(url, { headers });
const body = await response.json();
if (response.status !== 429 || body.title !== "Rate limit reached" || attempt === 3) return body;
await sleep(Number(response.headers.get("retry-after")) || 1);
}
}
// Featured markets cost once per page of up to 25 events: the markets returned, times one region per 10 bookmakers.
function credits(body) {
const markets = new Set();
const bookmakers = new Set();
for (const event of body.data) {
for (const market of event.markets) {
for (const outcome of market.outcomes) {
for (const price of outcome.prices) {
markets.add(market.key);
bookmakers.add(price.bookmaker);
}
}
}
}
return markets.size * Math.max(1, Math.ceil(bookmakers.size / 10));
}
const base = "https://api.sockodds.com/v1/odds?league=nfl&limit=5";
for (const [label, query] of [
["Head to head, line and total, all bookmakers", "&markets=winner,handicap,total_points"],
["Head to head, Sportsbet only", "&markets=winner&bookmakers=sportsbet"],
]) {
const body = await get(base + query);
const used = credits(body);
const month = used * 21600; // every 2 minutes for 30 days
console.log(`${label}: ${body.data.length} event(s), ${used} credit${used === 1 ? "" : "s"} a call, ${month.toLocaleString("en-AU")} a month`);
}import json, math, os, time, urllib.error, urllib.request
headers = {"Authorization": "Bearer " + os.environ["SOCKODDS_API_KEY"]}
# Retry only "Rate limit reached", after the Retry-After seconds. "Monthly allowance reached" will not clear.
def get(url):
for attempt in range(1, 4):
try:
with urllib.request.urlopen(urllib.request.Request(url, headers=headers)) as response:
return json.load(response)
except urllib.error.HTTPError as error:
body = json.load(error)
if error.code != 429 or body.get("title") != "Rate limit reached" or attempt == 3:
return body
time.sleep(int(error.headers.get("Retry-After") or 1))
# Featured markets cost once per page of up to 25 events: the markets returned, times one region per 10 bookmakers.
def credits(body):
markets, bookmakers = set(), set()
for event in body["data"]:
for market in event["markets"]:
for outcome in market["outcomes"]:
for price in outcome["prices"]:
markets.add(market["key"])
bookmakers.add(price["bookmaker"])
return len(markets) * max(1, math.ceil(len(bookmakers) / 10))
base = "https://api.sockodds.com/v1/odds?league=nfl&limit=5"
for label, query in [
("Head to head, line and total, all bookmakers", "&markets=winner,handicap,total_points"),
("Head to head, Sportsbet only", "&markets=winner&bookmakers=sportsbet"),
]:
body = get(base + query)
used = credits(body)
month = used * 21600 # every 2 minutes for 30 days
print(f"{label}: {len(body['data'])} event(s), {used} credit{'' if used == 1 else 's'} a call, {month:,} a month")Example output · sample prices, not real odds
Head to head, line and total, all bookmakers: 1 event(s), 3 credits a call, 64,800 a month
Head to head, Sportsbet only: 1 event(s), 1 credit a call, 21,600 a monthThe response comes from a local copy of the API with invented prices. Compare your estimate with x-credits-last on real responses, and alert yourself when x-credits-remaining passes 20% of the month, not at zero.
Habits that keep any odds API client inside its limits
- Keep your own meter. Count what each response used, by whatever unit your provider bills, and alert at 80% of the month.
- Back off on 429. Honour
Retry-After, add a little random jitter, and don't let several workers retry at the same instant. Don't retry a 429 that says the month is used up. - Page properly. Ask for the page size you need (
limiton/v1/oddsgoes up to 100 events) and followlinks.nextunchanged until it isnull, as the pagination guide describes. - Cache between polls. If two parts of your app want the same league, fetch once and share it. Read the catalogue (leagues, bookmakers, markets, teams) once a day, not on every request.
- Price history separately. On SockOdds, recorded history is on every paid plan at ten times the live cost:
/v1/odds/historyreturns changes only, in windows of up to 24 hours, and daily files are also available. Pull a backfill once and store it rather than re-requesting it. See History and snapshots.
Questions to ask before you pick a plan
- What is the unit: credits, objects, requests, or something else?
- Does an empty response cost anything?
- Do failed or rate-limited calls count?
- What happens at the limit: a hard stop, a 402, or overage billing?
- How do you see your usage, and when does the month reset?
- Is history priced differently from live odds?
Questions people ask
What is the difference between a rate limit and a usage quota?
A rate limit caps how fast you can call, such as 60 requests a minute, and resets every minute or hour. A usage quota caps how much you can take in a month, counted in credits, objects or requests, and resets once a month.
Does an empty odds API response count against my quota?
It depends on the unit. Some credit-based APIs charge nothing when no events come back. On SockOdds, a call that returns no data costs no credits, though the request still counts towards your per-minute limit.
What happens when I hit an odds API rate limit?
Most providers answer with HTTP 429 Too Many Requests. SockOdds sends Retry-After with a 429 titled "Rate limit reached". A 429 titled "Monthly allowance reached" means the call costs more credits than are left this month, and waiting a few seconds will not clear it: its body says what the call needed and when the allowance resets.
Why does historical odds data use more quota?
Providers price history differently, and some charge a multiple of the live price. On SockOdds, history is on every paid plan and costs ten times the live price (10 credits per market per region), and /v1/odds/history returns only the changes in a window of up to 24 hours.
How do I check how much of my odds API quota I have used?
Some providers send usage headers on every response. SockOdds sends x-credits-used, x-credits-remaining, x-credits-last and x-credits-reset on every response, and shows the month on your account page.
Sources
Next
This guide is for developers building data products. It is not betting advice and does not suggest any bet will win. 18+ only. Please gamble responsibly.
SockOdds provides data only. It does not offer tips or predictions on any game.
On our guide site
Fast Odds API is our guide site, with lists, tutorials and tools. On this subject it has what one refresh of an Australian odds feed costs.