Read Polish prematch odds from your server. Explore the response format and failure states before connecting your application.
Backend contract reviewed: 2026-10-04. Examples come from offline tests with synthetic events. They do not establish current coverage or deployment state.
Access and keys
Choose a separate API plan. After payment confirmation, create a key in the API panel and save the secret shown once. A scanner subscription is neither required nor sufficient for API access.
Set ARBISCAN_API_KEY only in your server environment. Send X-API-Key over HTTPS. Never put keys in URLs, browser code, localStorage, logs or analytics. Rotate an exposed key and revoke the old secret in the panel.
First request
Base URL: https://api.arbiscan.pl/v1. Start with a small page. The playground runs locally without a key or quota charge; run copied code on your server.
Keep your key on your server. This example does not send a request to the API.
ResponseResponse structure
{
events[]
Events
bookmakers[]
Bookmaker sources
markets[]
Markets and outcomes
last_update
Observation time
}
Run the example to view the JSON.
Sources, markets and update frequency
Read /sports, /leagues, /bookmakers and /markets. Use returned names in filters, e.g. Betclic or Superbet for their Polish offerings. Do not assume every market or event is covered. h2h denotes a result/winner market; use complete line keys such as Total|2.5. Numeric normalization removes trailing zeroes, not handicap signs.
The API serves prematch offers. Updates depend on the source and publication; the contract guarantees no fixed interval or SLA. The 60–900-second age threshold is a filter, not an update cadence. Inspect observation times and /health. Odds history and the price-change stream are currently unavailable.
/odds response fields
counthas_morenext_cursor
Events on this page; continuation flag and cursor. Last page: false and null.
Full snapshot ID, publication generation and active generation. Compare the whole snapshot, not just id: a partial publication can change the generation without changing id.
Generation, acceptance, publication-change and first-page read times. read_at stays fixed during pagination. Some metadata can be null before the first full publication.
snapshot.event_countsnapshot.outcome_count
Full publication counts. These are not your filtered result count or the number of remaining pages.
Admitted attempts in the UTC minute and remaining throughput. Errors do not refund the minute throttle.
Optional bookmakers[].bookmaker_event_path and bookmakers[].bookmaker_event_slug describe navigation paired with that native ID. They are not full URLs. Absence means unknown; never guess a path from team names. A Betsport path comes from the source hierarchy. A returned slug identifies the parent event. Validate the HTTPS origin and encode URL segments when constructing links. /odds does not return event_url.
Pagination: one retained result
Send the first request with filters and limit from 1 to 500 (default 200). The backend retains the full result when more pages are needed.
When has_more=true, pass next_cursor as cursor. Send only cursor and limit for the simplest continuation. If repeating filters, repeat the entire context; never recompute relative dates between pages. You may change limit.
A v4 cursor is bound to the account quota subject and filters. Retention lasts 240 seconds after materialization; pages do not extend it. New publications and worker restarts do not change an admitted traversal.
Stop at has_more=false and next_cursor=null. Publish results only after receiving all pages. On 409 snapshot_changed or cursor_version_expired, discard the buffer and restart with a bounded retry budget.
Version limitation: the parser rejects cursor offsets above 10,000 events (400 invalid_request), although retention may admit a larger result. Split broad reads into smaller commence_from/commence_to windows and deduplicate id at shared date boundaries (both bounds are inclusive). Never edit a cursor. Each window has its own snapshot; multiple windows are not one atomic read.
These programs read one complete traversal and require ARBISCAN_API_KEY. They allow three traversal attempts, bounded 429/503 retries and a 230-second margin. Network errors stop without partial output. For large results, replace the in-memory buffer with a transaction or temporary file committed only at completion.
# Python 3, standard library only. Set ARBISCAN_API_KEY on your server.
import json
import os
import random
import time
from email.utils import parsedate_to_datetime
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import Request, urlopen
def read_odds():
key = os.environ['ARBISCAN_API_KEY']
first = dict(sport='Football', bookmakers='Betclic', markets='h2h',
max_age_seconds=900, limit=500)
for restart in range(3):
events, seen = [], set()
cursor, snapshot, retries = None, None, 0
started = time.monotonic()
while True:
query = dict(cursor=cursor, limit=500) if cursor else first
request = Request('https://api.arbiscan.pl/v1/odds?' + urlencode(query),
headers={'X-API-Key': key})
try:
response = urlopen(request, timeout=30)
except HTTPError as error:
response = error
with response:
status, headers = response.status, response.headers
try:
body = json.load(response)
except (ValueError, UnicodeError):
body = {} # A proxy may return HTML.
code = body.get('code')
if status == 409 and code in ('snapshot_changed', 'cursor_version_expired'):
break # Discard this buffer and restart from page one.
if status in (429, 503) and code != 'total_quota_exceeded' and retries < 3:
retry_after = headers.get('Retry-After')
try:
delay = float(retry_after)
except (TypeError, ValueError):
try:
delay = parsedate_to_datetime(retry_after).timestamp() - time.time()
except (TypeError, ValueError, AttributeError):
delay = 2 ** retries
delay = max(0, delay)
if time.monotonic() - started + delay >= 230:
raise RuntimeError('Retry later; discard partial traversal')
retries += 1
time.sleep(delay + random.random() * 0.25)
continue
if not 200 <= status < 300:
raise RuntimeError(f'{status} {code or "non_json_error"}')
retries = 0
if snapshot is not None and snapshot != body['snapshot']:
raise RuntimeError('Snapshot mismatch')
snapshot = body['snapshot']
events.extend(body['events'])
if not body['has_more']:
return events
cursor = body['next_cursor']
if not cursor or cursor in seen:
raise RuntimeError('Invalid continuation')
seen.add(cursor)
if time.monotonic() - started >= 230:
raise RuntimeError('Traversal too slow; discard partial results')
raise RuntimeError('Restart budget exhausted')
if __name__ == '__main__':
print(json.dumps(read_odds()))
// Node.js 20+; run on your server with ARBISCAN_API_KEY set.
// Print only a complete traversal. Never mix pages from different traversals.
export async function readOdds() {
const key = process.env.ARBISCAN_API_KEY;
if (!key) throw new Error('Set ARBISCAN_API_KEY');
const first = { sport: 'Football', bookmakers: 'Betclic', markets: 'h2h',
max_age_seconds: '900', limit: '500' };
for (let restart = 0; restart < 3; restart++) {
const events = [], seen = new Set();
let cursor = null, snapshot = null, retry = 0;
const started = Date.now();
while (true) {
const query = new URLSearchParams(cursor ? { cursor, limit: '500' } : first);
const response = await fetch('https://api.arbiscan.pl/v1/odds?' + query, {
headers: { 'X-API-Key': key }, signal: AbortSignal.timeout(30_000),
});
// Proxy failures may not contain JSON.
const body = await response.json().catch(() => ({}));
if (response.status === 409 &&
['snapshot_changed', 'cursor_version_expired'].includes(body.code)) break;
if ([429, 503].includes(response.status) && body.code !== 'total_quota_exceeded' && retry < 3) {
const header = response.headers.get('Retry-After');
const seconds = header === null ? NaN : Number(header);
const delay = Number.isFinite(seconds) ? seconds * 1000
: header && Number.isFinite(Date.parse(header)) ? Math.max(0, Date.parse(header) - Date.now()) : 1000 * 2 ** retry;
// Stop instead of sleeping past the retained traversal's lifetime.
if (Date.now() - started + delay >= 230_000) throw new Error('Retry later; discard partial traversal');
retry++;
await new Promise(resolve => setTimeout(resolve, Math.max(0, delay) + Math.random() * 250));
continue;
}
if (!response.ok) throw new Error(`${response.status} ${body.code || 'non_json_error'}`);
retry = 0;
const identity = JSON.stringify(body.snapshot);
if (snapshot !== null && snapshot !== identity) throw new Error('Snapshot mismatch');
snapshot = identity;
events.push(...body.events);
if (!body.has_more) return events;
if (!body.next_cursor || seen.has(body.next_cursor)) throw new Error('Invalid continuation');
seen.add(body.next_cursor);
cursor = body.next_cursor;
if (Date.now() - started >= 230_000) throw new Error('Traversal too slow; discard partial results');
}
// A 409 restarts with the original filters and a new empty buffer.
}
throw new Error('Restart budget exhausted');
}
// Import readOdds() into your app, or run: node odds-pagination.mjs
if (process.argv[1] && import.meta.url === new URL('file://' + process.argv[1]).href) {
console.log(JSON.stringify(await readOdds()));
}
Freshness and missing data
freshness.mode is always fresh_prematch. include_stale is rejected even with false (400 invalid_request). Quote-age and kickoff predicates are evaluated at snapshot.read_at = freshness.as_of on the first read. Continuation preserves prices and timestamps even if an event starts meanwhile. Before using data, recheck each quote’s age and commence_time against the current time and refresh when necessary.
An empty events array with 200 is valid when nothing matches. /events/{event_id} returns availability=stale or no_visible_markets with empty bookmakers when fresh offers are absent, and 410 event_expired after kickoff. In /health, ok=true indicates process/database liveness, not fresh data; inspect data_fresh and data_status. Never replace missing prices with zero or refresh cached quote timestamps.
Errors and recovery
Application errors contain error (text) and code (machine-readable), sometimes with extra fields. Do not parse error text as a code.
Respect Retry-After. Daily quota resets at 00:00 UTC. Lifetime exhaustion needs an access change; 86400 seconds does not promise a reset tomorrow.
503
pagination_capacity
Retention capacity unavailable. Retry-After: 2. Narrow dates, sources or markets for oversized results; a smaller page limit does not shrink the full traversal.
5xx
internal_error
Keep X-Request-ID. Use bounded retries with backoff. A proxy may return a non-JSON response.
Diagnostic headers
X-Request-ID
Record with the HTTP status for support, without the secret.
Minute limit, remaining attempts and ISO-8601 UTC reset. On daily_quota_exceeded, Reset is midnight UTC, not the next minute.
X-DailyLimit-Limit / X-DailyLimit-Remaining
Daily allowance and remaining capacity, including reservations.
X-TotalLimit-Limit / X-TotalLimit-Remaining
Present when a lifetime limit applies.
Cache-Control: private, no-store
Responses must not enter shared HTTP caches.
Limits, charging and request budgets
Each 2xx response from a metered data endpoint costs one daily/lifetime unit, including an empty page. A 4xx/5xx response refunds its reservation, but the admitted attempt remains in the minute throttle. /health and /usage are free; /usage has a separate 30/min limit and remains callable after exhaustion. Managed keys on one account share the allowance; extra keys do not multiply it.
In-flight requests temporarily reserve capacity. A reservation abandoned by a crashed worker is refunded after 600 seconds on the next admission or /usage read. Daily quota resets at 00:00 UTC; lifetime quota need not reset. In /usage, today.used and total.used report account usage; history contains request counts, not odds history.
Plan
2xx / day
Attempts / min
Keys
Starter
1 000
15
1
Data
10 000
30
1
Data Plus
100 000
180
3
Catalogue limits as of 2026-10-04; account entitlements and /usage are authoritative. One successful read per minute is 1,440 requests/day; three pages per read is 4,320. Add discovery and successful retries. Do not choose polling frequency from the minute limit alone.
Webhooks · Data Plus
Up to 3 active destinations. Select snapshot.updated and fetch a new REST traversal after notification. Access requires an account-owned key with the relevant entitlement and an enabled service module. List: 30/min; create/delete: 10/min; test: 5/min. These management operations do not use the data-read counter.
POST /webhooks returns webhook and a one-time signing_secret. GET returns webhooks and limits (destinations, delivery_attempts, timeout_seconds). DELETE returns 204 with no body; test returns 202 with queued and event_id. The test endpoint queues a real delivery; the playground sends none.
Verify X-ArbiScan-Signature: t=<timestamp>,v1=<hex>. The signature is HMAC-SHA256(secret, timestamp + '.' + raw body bytes). Compare in constant time, check timestamp age and deduplicate X-ArbiScan-Event-ID. Other headers: X-ArbiScan-Event and X-ArbiScan-Timestamp. At most 4 delivery attempts, a 5-second timeout and retry delays of 60, 300, 1800 seconds. Acknowledge with 2xx.
WebSocket stream — price changes currently unavailable
Retained URL: wss://api.arbiscan.pl/v1/stream, with a server-supplied X-API-Key header and Data Plus access. sports and bookmakers accept comma-separated lists of up to 20 distinct names, each at most 100 characters, matched case-insensitively. cursor is an integer ≥ 0, defaulting to the latest history position; it is not an /odds cursor. One connection per account. With history disabled, do not expect odds.changed price events. ready and heartbeat messages do not establish fresh odds. WebSocket errors have a separate type=error, code, message format, not the HTTP {error, code} body.
Endpoints and parameters
All paths below use the /v1 prefix. Parameters are optional unless marked required. Send dates in UTC (Z); timestamps without a timezone are interpreted as UTC. URL-encode query parameters.
Prematch events and odds with retained-result pagination.
Cursor v4 retains the complete ordered result for 240 seconds after materialization. Continuations accept cursor alone (and an optional limit); if any filters are supplied, the complete normalized filter context must match. Cursors are bound to the quota subject. New publications and worker recycling do not invalidate an admitted traversal. Filter/subject mismatch: 400 cursor_filter_mismatch. include_stale is rejected even when false.
Parameter
Location
Meaning and bounds
sport
query
Case-insensitive exact name returned by the corresponding discovery endpoint. Up to 128 characters.
league
query
Case-insensitive exact name returned by the corresponding discovery endpoint. Up to 256 characters.
bookmakers
query
Comma-separated values; at most 100 distinct values, each at most 256 characters. Case-insensitive exact matches; no fuzzy matching.
markets
query
Comma-separated values; at most 100 distinct values, each at most 256 characters. Case-insensitive exact matches; no fuzzy matching.
commence_from
query
Inclusive kickoff lower bound (ISO-8601); must be ≤ commence_to. Started events remain excluded.
commence_to
query
Inclusive kickoff upper bound (ISO-8601).
max_age_seconds
query
60–900 seconds. Defaults to the service freshness setting (900 by default); inspect freshness.max_age_seconds in the response. 60–900.
limit
query
Items per page, integer. 1–500. Default: 200.
cursor
query
Opaque next_cursor value from the previous page. Up to 2048 characters.
HTTP: 200 · 400 · 401 · 409 · 429 · 503
Full request and response example · 200
Synthetic backend test data. Times, limits and cursors are illustrative; the cursor cannot be used against the service.
History is unavailable: 403 without access, 410 after entitlement verification. Parameters below describe the contract if re-enabled.
Parameter
Location
Meaning and bounds
event_idrequired
path
id or canonical_id from /odds; retained aliases also resolve. Encode as a URL path segment.
bookmaker
query
Name from /bookmakers. Case-insensitive in /markets; exact match in history. Up to 256 characters.
market
query
Exact market key from /markets. Up to 512 characters. Default: h2h.
since
query
Inclusive history start, ISO-8601; must be ≤ until.
until
query
Inclusive history end, ISO-8601.
limit
query
Items per page, integer. 1–5000. Default: 1000.
cursor
query
Opaque continuation cursor. Keep event, market, bookmaker, since and until filters unchanged between pages. Up to 2048 characters.
HTTP: 200 · 403 · 410
History contract if enabled — currently unavailable
Captured only in a test with history enabled. history[] contains bookmaker, outcome, price, timestamp; observed_from and observed_until describe observed coverage, not completeness. Retention: 48 hours. Repeat event_id, market, bookmaker, since and until on every page; history uses a different cursor from /odds.
Body: application/json. Only url and events are accepted.
url · required
Public HTTPS URL on port 443, without credentials or fragment. Private addresses are rejected. Up to 2048 characters.
events
Unique event names. Select snapshot.updated; odds.changed carries no prices while history is disabled. Omission selects both types. odds.changed, snapshot.updated.
Football corner/card/point ladders; source rules and completeness are not verified
Parameter
Location
Meaning and bounds
event_idrequired
path
id or canonical_id from /odds; retained aliases also resolve. Encode as a URL path segment.
bookmakers
query
Comma-separated names; at most 20 distinct values, each at most 64 characters. All other query parameters are rejected. Defaults: Sts, Betclic, LvBet, Fuksiarz. Case-insensitive source matching. Up to 1000 characters.
HTTP: 200 · 400 · 401 · 404 · 410 · 422 · 429
Full request and response example · 200
Synthetic backend test data. Times, limits and cursors are illustrative; the cursor cannot be used against the service.