{
  "openapi": "3.1.0",
  "info": {
    "title": "Pickleball Guide UK Open Data API",
    "version": "2026-11-24",
    "summary": "Pickleball Guide UK (United Kingdom, GBP) Read-Only Static Open Data API.",
    "contact": {
      "name": "Pickleball Guide UK",
      "url": "https://pickleball.fashion/uk/feedback/"
    },
    "license": {
      "name": "Free to cite with attribution to pickleball.fashion",
      "url": "https://pickleball.fashion/uk/copyright/"
    }
  },
  "servers": [
    {
      "url": "https://pickleball.fashion",
      "description": "Production"
    }
  ],
  "paths": {
    "/uk/api/courts-full.json": {
      "get": {
        "operationId": "listCourtsFull_uk",
        "summary": "Pickleball courts in the UK",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Court"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uk/api/courts.json": {
      "get": {
        "operationId": "listCourtsGeo_uk",
        "summary": "Courts Geo Index",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/uk/api/courts.csv": {
      "get": {
        "operationId": "downloadCourtsCsv_uk",
        "summary": "Courts CSV (UTF-8 BOM)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/uk/api/paddles.json": {
      "get": {
        "operationId": "listPaddles_uk",
        "summary": "Pickleball paddle comparison and specs",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Paddle"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uk/api/apparel.json": {
      "get": {
        "operationId": "listApparel_uk",
        "summary": "Pickleball shoes, clothing and kit",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/uk/api/news.json": {
      "get": {
        "operationId": "listNews_uk",
        "summary": "Pickleball news (United Kingdom)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NewsItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uk/api/events.json": {
      "get": {
        "operationId": "listEvents_uk",
        "summary": "Pickleball tournaments and events (United Kingdom)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventItem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uk/api/learn.json": {
      "get": {
        "operationId": "listLearn_uk",
        "summary": "Pickleball rules and beginner guides",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LearnItem"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Court": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "district": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "lat": {
            "type": [
              "number",
              "null"
            ]
          },
          "lng": {
            "type": [
              "number",
              "null"
            ]
          },
          "indoor": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "courts": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "type": "string",
            "const": "GBP"
          },
          "amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "amount_max": {
            "type": [
              "number",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Paddle": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "brand": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "thickness_mm": {
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": "string",
            "const": "GBP"
          },
          "price_min_gbp": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_max_gbp": {
            "type": [
              "number",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "EventItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "currency": {
            "type": "string",
            "const": "GBP"
          },
          "fee": {
            "type": [
              "number",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "NewsItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "published": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "LearnItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}
