{
  "openapi": "3.1.0",
  "info": {
    "title": "Sports Results Dataset API",
    "version": "1.0.0",
    "summary": "Schedules, results and player appearances by country, for people and for AI agents.",
    "description": "Static JSON API exported from sport.duckdb. Missing values are null. Nothing is invented. Free to read and query for personal and research use. No redistribution or commercial reuse. Bulk or full access, and commercial licensing, are by agreement. Contact: probat8proba@gmail.com. Dataset built_at=2026-11-23 00:42:23; site generated_at=2026-12-02T23:16:08+01:00.",
    "license": {
      "name": "Read-only; commercial and bulk access by agreement",
      "url": "https://sportsbycountry.pages.dev/licence.html"
    }
  },
  "servers": [
    {
      "url": "https://sportsbycountry.pages.dev",
      "description": "Public site"
    }
  ],
  "tags": [
    {
      "name": "meta"
    },
    {
      "name": "matches"
    },
    {
      "name": "countries"
    },
    {
      "name": "players"
    },
    {
      "name": "teams"
    },
    {
      "name": "competitions"
    }
  ],
  "paths": {
    "/api/v1/index.json": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "API catalog and counts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/meta.json": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "Build metadata and source files",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/coverage.json": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "Date coverage per sport and competition",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries.json": {
      "get": {
        "tags": [
          "countries"
        ],
        "summary": "Countries that appear in the dataset",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{code}.json": {
      "get": {
        "tags": [
          "countries"
        ],
        "summary": "Country summary",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-3 or sporting nation (ENG, SCO, WAL, NIR, XKX, ZAN)"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{code}/abroad.json": {
      "get": {
        "tags": [
          "countries"
        ],
        "summary": "Appearances of this nationality at foreign clubs",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-3 or sporting nation (ENG, SCO, WAL, NIR, XKX, ZAN)"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{code}/abroad-rosters.json": {
      "get": {
        "tags": [
          "countries"
        ],
        "summary": "Roster registrations of this nationality at foreign clubs",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-3 or sporting nation (ENG, SCO, WAL, NIR, XKX, ZAN)"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{code}/domestic.json": {
      "get": {
        "tags": [
          "countries"
        ],
        "summary": "Domestic league and cup matches",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-3 or sporting nation (ENG, SCO, WAL, NIR, XKX, ZAN)"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{code}/clubs.json": {
      "get": {
        "tags": [
          "countries"
        ],
        "summary": "Club matches (domestic + international cups) for clubs of this country",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-3 or sporting nation (ENG, SCO, WAL, NIR, XKX, ZAN)"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{code}/people.json": {
      "get": {
        "tags": [
          "players"
        ],
        "summary": "People with this sporting nationality",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-3 or sporting nation (ENG, SCO, WAL, NIR, XKX, ZAN)"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/matches/index.json": {
      "get": {
        "tags": [
          "matches"
        ],
        "summary": "All dates with match counts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/matches/{date}.json": {
      "get": {
        "tags": [
          "matches"
        ],
        "summary": "All matches on a league date",
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/players/index.json": {
      "get": {
        "tags": [
          "players"
        ],
        "summary": "Compact list of all people",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/players/{id}.json": {
      "get": {
        "tags": [
          "players"
        ],
        "summary": "One person, with appearances",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/players/by-sport/{sport}.json": {
      "get": {
        "tags": [
          "players"
        ],
        "summary": "People in one sport",
        "parameters": [
          {
            "name": "sport",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/players/missing-nationality.json": {
      "get": {
        "tags": [
          "players"
        ],
        "summary": "People with no sporting nationality",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/index.json": {
      "get": {
        "tags": [
          "teams"
        ],
        "summary": "Compact list of all teams",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/teams/{id}.json": {
      "get": {
        "tags": [
          "teams"
        ],
        "summary": "One team",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/competitions.json": {
      "get": {
        "tags": [
          "competitions"
        ],
        "summary": "All competitions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/competitions/{id}.json": {
      "get": {
        "tags": [
          "competitions"
        ],
        "summary": "One competition and its matches",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rosters/abroad.json": {
      "get": {
        "tags": [
          "players"
        ],
        "summary": "All volleyball roster registrations abroad",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/quality/unmapped.json": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "Values that could not be mapped to a country",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/quality/nationality-conflicts.json": {
      "get": {
        "tags": [
          "meta"
        ],
        "summary": "People whose source files disagree on nationality",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-dataset-counts": {
    "matches": 10501,
    "player_match_stats": 34456,
    "people": 10162,
    "teams": 2717,
    "competitions": 162,
    "rosters": 1952,
    "countries": 256,
    "v_abroad": 25075,
    "v_abroad_rosters": 357,
    "v_domestic_results": 6668,
    "countries_with_data": 197
  }
}
