Pro Basketball API

Eight fictional basketball teams with rosters, per-game stats, a scoreboard, live games advanced quarter by quarter, play-by-play, standings and leaders — for polling, caching and filtering practice.

Base URL: https://funapi.dev/api/basketball-league/v1 · 11 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

teams

teams and rosters

players

players and stats

games

scoreboard and live games

season

standings and leaders

The Pro Basketball API models a fictional league with eight teams, per-game player averages, a scoreboard, quarter-by-quarter scoring and leaders for points, rebounds, assists and field-goal percentage. It is built for the tests sports and fantasy apps actually need: filters that must combine correctly, leaderboards that must sort the right way, and a live game whose data changes underneath the client.

What you can practise here

Example request and response

GET https://funapi.dev/api/basketball-league/v1/teams — List the 8 teams. No token, no signup:

curl -i https://funapi.dev/api/basketball-league/v1/teams

Response: 200 OK

{
  "league": "Fun Pro Basketball League",
  "data": [
    {
      "id": 1,
      "city": "Lakeshore",
      "name": "Herons",
      "fullName": "Lakeshore Herons",
      "abbreviation": "LKH",
      "conference": "East",
      "venue": "Lakeshore Stadium"
    },
    {
      "id": 2,
      "city": "Granite City",
      "name": "Rockets",
      "fullName": "Granite City Rockets",
      "abbreviation": "GCR",
      "conference": "East",
      "venue": "Granite City Arena"
    },
    {
      "id": 3,
      "city": "Port Elm",
      "name": "Tides",
      "fullName": "Port Elm Tides",
      "abbreviation": "PET",
      "conference": "East",
      "venue": "Port Elm Park"
    },
    {
      "id": 4,
      "city": "Northgate",
      "name": "Owls",
      "fullName": "Northgate Owls",
      "abbreviation": "NGO",
      "conference": "East",
      "venue": "Northgate Field"
    },
    {
      "id": 5,
      "city": "Copper Canyon",
      "name": "Suns",
      "fullName": "Copper Canyon Suns",
      "abbreviation": "CCS",
      "conference": "West",
      "venue": "Copper Canyon Stadium"

(truncated — the full response comes back when you run it)

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

How these leagues differ from balldontlie

Last updated