Getting started

Rate limits

Use this page to see how many requests a key may make and what to do when you reach the limit. The limits count requests to /api/v2, per key.

1. Read the headers

Every response carries X-RateLimit-Limit, the requests allowed in a minute, and X-RateLimit-Remaining, the requests left in this minute.

curl -s -o /dev/null "https://odds-feed.on-forge.com/api/v2/status" \
  -H "Authorization: Bearer YOUR_KEY" \
  -w '{"limit": %header{x-ratelimit-limit}, "remaining": %header{x-ratelimit-remaining}}\n'
Response
{
  "limit": 6000,
  "remaining": 5990
}

2. Wait when you reach the limit

When you pass the limit the answer is 429 with the code rate_limited. The Retry-After header says how many seconds to wait. Wait that long, then send the request again.

3. Stay within your plan's daily allowance

Free keys also have a daily allowance of 1,000 requests, shared by every key on the account and counted from 00:00 UTC. Paid plans have no daily allowance. When you use it up, every request answers 429 with the code rate_limited until 00:00 UTC. The message gives the reset time, and Retry-After gives the seconds left.

4. Poll no faster than your plan refreshes

On Main lines, Full depth and Player props without the WebSocket, match and odds reads refresh every 15 seconds. The X-Refreshes-Every header gives the seconds, Cache-Control says how long the answer you have stays current, and sending its ETag back in If-None-Match answers 304 when nothing has changed. Asking more often returns the same answer.

5. Use live updates instead of polling

If you need each change as it happens, live updates send it within 250 milliseconds and cost no requests. Keys with the WebSocket read REST live as well.

Reference

Limit Applies to Default
API All /api/v2 endpoints Per account: 60 a minute on Free, 600 on Main lines, Full depth and Player props, 3,000 on Business
Extra requests All /api/v2 endpoints Any paid plan can add packs of 600 a minute, £5 a month each, up to 10 packs
Refresh Match and odds reads Every 15 seconds on Main lines, Full depth and Player props without the WebSocket
Bet Builder capture POST /matches/{id}/betbuilder/capture 20 requests a minute per key, as well as the API limit
Daily allowance All /api/v2 endpoints 1,000 requests a day per account on Free, none on paid plans

Business plans have higher limits.

Odds Yorkie

Prices are shown as bet365 offers them. OddsYorkie supplies data only and does not take bets. 18+ only. BeGambleAware.org