A FIBA Basketball World Cup 2027 sandbox in Qatar: 32 teams in eight groups, games simulated quarter by quarter with overtime, ETag-guarded team staff and box scores.
The FIBA World Cup API models the 2027 Basketball World Cup in Qatar, and it is built around the fact that basketball has no draws. Simulating a game plays four quarters possession by possession and then keeps adding five-minute overtimes until somebody is ahead, so the group table can use FIBA’s real classification system — two points for a win, one for a loss — and never needs a draw column. Everything downstream is derived from that one write: the box score, the cursor-paged play-by-play, the tournament leaders and the MVP race all read the plays the simulation produced, and none of them can be written directly.
Base URL: https://funapi.dev/api/fiba/v1 · 22 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.
the 32 qualified nations
GET /fiba/v1/teams — List qualified teams (filter by group, FIBA zone or hosts)GET /fiba/v1/teams/{id} — Get one national team — carries the ETag its staff update needsPUT /fiba/v1/teams/{id}/staff — Name the head coach and captain — optimistic concurrency via If-Match (requires Bearer auth)GET /fiba/v1/groups/{letter}/standings — Group table computed from finished games — cacheable (ETag / If-None-Match / 304)simulation, box scores and reviews
GET /fiba/v1/games — List games (filter by stage, status, group or team)GET /fiba/v1/games/{id} — Get one game with team and arena names resolvedPOST /fiba/v1/games/{id}/simulate — Tip off — four quarters plus overtime until somebody wins (admin only) (requires Bearer auth)GET /fiba/v1/games/{id}/boxscore — Per-player box score, derived from the play-by-playGET /fiba/v1/games/{id}/play-by-play — Cursor-paged play-by-play — follow nextCursor to the final buzzerPOST /fiba/v1/games/{id}/challenge — Coach's challenge — a slow (~3s) replay review, one per team (requires Bearer auth)POST /fiba/v1/games/{id}/highlights — Queue a highlight reel — 202 Accepted, then poll the job (requires Bearer auth)GET /fiba/v1/highlights/{id} — Poll a highlight job until it is readythe Doha host courts
GET /fiba/v1/arenas — List the Qatar host arenas, filter by cityGET /fiba/v1/arenas/{id} — Get one arena with the games it hostsstat leaders and the MVP race
GET /fiba/v1/players — List players (filter by team or position)GET /fiba/v1/players/{id} — Get one player with their running tournament totalsGET /fiba/v1/players/leaders — Tournament leaders for points, rebounds or assistsGET /fiba/v1/players/{id}/advanced — Tracking data — always 402, it is on the paid analytics tierGET /fiba/v1/fanzone/mvp — The MVP race, ranked by a simplified efficiency indexlimited seats, real conflicts
POST /fiba/v1/tickets — Buy tickets — seats are limited, so 409 when the game sells out (requires Bearer auth)GET /fiba/v1/tickets/{id} — Get a ticket order — 410 once it has been cancelledDELETE /fiba/v1/tickets/{id} — Cancel an order and release the seats (requires Bearer auth)