API ReferenceSports
Build the sports facets cascade.
const url = 'https://data.predictefy.com/v1/sports/facets';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://data.predictefy.com/v1/sports/facets \ --header 'Authorization: Bearer <token>'Returns 404 when this feature is not available. Snapshot window only: from and to are rejected with 400. Counts sum markets; parent fixture totals are distinct fixtures in the snapshot, not sums across facet rows. Inactive nodes remain visible. Missing or undecodable facets return sports: [] with facets_unavailable degradation. Unknown query keys are ignored except the documented facets window rejection. Degraded responses preserve the last usable snapshot with honest stale flags. Catalog and stale cells are never best; unknown fees keep net null; edge is absent when fair is absent. final means keyed markets closed; fair, edge and hold are Predictefy calculations.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Exact canonical sport slug. Unknown valid values return an empty result.
Exact competition ID. Unknown valid values return an empty result.
Responses
Section titled “Responses”Successful snapshot response.
object
Market counts sum snapshot rows. Aggregate fixture counts are distinct mirrored fixtures for the matching sport, competition, type, and period. Venues are sorted and distinct. Inactive nodes are retained.
object
object
Launched or preview. See the Launch status section of the sports guide.
object
Active indicates membership in SCREEN_MARKET_TYPES. Non-screenable type/period fixture totals are null; market counts remain exact.
object
object
Exact per-venue fixture counts at this line. These counts cannot be summed to obtain parent fixture totals.
object
object
object
Facets/competitions use the facets snapshot clock when available; teams uses the fixture snapshot refresh clock. Degraded reads retain the last usable snapshot. A cold index that cannot load returns 503.
object
Missing or unrepresentable heartbeat clocks produce null heartbeatAt/lagMs and zero activity counts.
object
object
Example
{ "success": true, "data": { "sports": [ { "sport": "soccer", "launchStatus": "launched", "count": 2, "fixtures": 1, "venues": [ "a", "b" ], "competitions": [ { "id": "c", "name": "Cup", "active": true, "count": 2, "fixtures": 1, "venues": [ "a", "b" ], "marketTypes": [ { "marketType": "total", "active": true, "count": 2, "fixtures": 1, "venues": [ "a", "b" ], "periods": [ { "period": "full", "count": 2, "fixtures": 1, "venues": [ "a", "b" ], "lines": [ { "line": 2.5, "count": 1, "fixtures": { "byVenue": { "a": 1 } }, "venues": [ "a" ] }, { "line": 3.5, "count": 1, "fixtures": { "byVenue": { "b": 1 } }, "venues": [ "b" ] } ] } ] } ] } ] } ] }, "meta": { "asOf": "2026-09-19T12:00:00.000Z", "degraded": false, "degradedReason": null, "engine": { "heartbeatAt": "2026-09-19T12:00:00.000Z", "lagMs": 17, "fixtures": 1, "blocks": 1 }, "index": { "refreshedAt": "2026-09-19T12:00:00.000Z", "fixtures": 1 } }}Invalid query or fixture ID. Facets rejects from/to because its snapshot owns the window.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Missing, invalid or revoked API key.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The account's credit balance cannot cover this sports read's weight. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The API key lacks the read scope this route requires. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}ROUTE_NOT_FOUND when this feature is not available.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Request rate limit exceeded.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Unexpected service error; requestId identifies the failure.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Retryable: the fixture snapshot has never loaded and cannot load, a single-fixture snapshot keeps changing across two read attempts, or authentication or metering storage is unavailable.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}