{
  "openapi": "3.1.0",
  "info": {
    "title": "CoasterDB API",
    "version": "1.0.0",
    "summary": "Roller coaster data with the source of every number.",
    "description": "Read-only JSON API for the CoasterDB roller coaster database. Every number carries its status (confirmed, estimated or unknown), its source and the date the source was read. Unknown is `null`, never zero.\n\n**Authentication.** Every request needs a key. An account and a free key cost nothing (1000 requests per day). A developer key (20000 per day, more fields) is planned and on a waitlist. Send `Authorization: Bearer <key>` or `X-API-Key`. A commercial tier is designed but not available; it would leave out the fields whose source licences do not allow commercial use (see `/pricing`).\n\n**Licence and attribution.** Every object has `licence` and `attribution`. Description text is CC BY-SA 4.0 (Wikipedia) and photos are links with the author and licence of each file; no image files are served. See `GET /meta`.\n\n**Errors.** RFC 9457 `application/problem+json` with a stable `code` and `type`.\n\n**Not offered.** There is no queue-times endpoint: the queue-time providers' terms forbid redistributing their feed through another API. Values supported only by a source that does not allow bulk redistribution are withheld on every tier.\n\n**Change policy.** Additive changes (new fields, new optional parameters, new endpoints) happen within v1 without notice. A breaking change gets a new version path and v1 keeps working for at least six months after the announcement.",
    "termsOfService": "https://coasterdatabase.com/developers#licence",
    "contact": {
      "name": "CoasterDB developers",
      "url": "https://coasterdatabase.com/developers"
    },
    "license": {
      "name": "Data: CC0-1.0 facts, CC BY-SA 4.0 text, per-file photo licences (see GET /meta)",
      "url": "https://coasterdatabase.com/developers#licence"
    }
  },
  "servers": [
    {
      "url": "https://coasterdatabase.com/api/v1",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Coasters"
    },
    {
      "name": "Parks"
    },
    {
      "name": "Manufacturers"
    },
    {
      "name": "Countries"
    },
    {
      "name": "Models"
    },
    {
      "name": "Search"
    },
    {
      "name": "Statistics"
    },
    {
      "name": "Meta"
    }
  ],
  "paths": {
    "/coasters": {
      "get": {
        "operationId": "listCoasters",
        "tags": [
          "Coasters"
        ],
        "summary": "List coasters",
        "description": "Roller coasters with filters, sorting and cursor pagination. Numeric filters and sorting use trusted values only: a height or speed that is flagged or in conflict never matches and sorts last. Values whose only evidence is a source we may not redistribute are left out of every response.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Country name (exact, any case), country ID (`CDB-CTY-000012`) or two-letter ISO code when known.",
            "example": "Germany",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "park",
            "in": "query",
            "required": false,
            "description": "Park ID. A merged park ID is followed to its survivor.",
            "schema": {
              "pattern": "^CDB-PAR-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "manufacturer",
            "in": "query",
            "required": false,
            "description": "Manufacturer ID.",
            "schema": {
              "pattern": "^CDB-MFR-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "description": "Model ID.",
            "schema": {
              "pattern": "^CDB-MOD-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Construction type as stored, matched exactly in any case, for example `Steel` or `Wood`.",
            "example": "Steel",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "One or more statuses, comma-separated.",
            "example": "operating,sbno",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "opened_from",
            "in": "query",
            "required": false,
            "description": "Opened in this year or later. Coasters with no known opening date are left out.",
            "example": 1990,
            "schema": {
              "type": "integer",
              "minimum": 1700,
              "maximum": 2100
            }
          },
          {
            "name": "opened_to",
            "in": "query",
            "required": false,
            "description": "Opened in this year or earlier.",
            "example": 2020,
            "schema": {
              "type": "integer",
              "minimum": 1700,
              "maximum": 2100
            }
          },
          {
            "name": "min_height_m",
            "in": "query",
            "required": false,
            "description": "Trusted height at least this many metres. Flagged and conflicting heights never match.",
            "example": 60,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "max_height_m",
            "in": "query",
            "required": false,
            "description": "Trusted height at most this many metres.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "min_speed_kmh",
            "in": "query",
            "required": false,
            "description": "Trusted top speed at least this many km/h.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "max_speed_kmh",
            "in": "query",
            "required": false,
            "description": "Trusted top speed at most this many km/h.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "has_photo",
            "in": "query",
            "required": false,
            "description": "True for coasters with a licensed photo, false for those without.",
            "schema": {
              "type": "boolean",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of name, opened, height_m, drop_m, length_m, speed_kmh, duration_s, inversions, id; a leading minus sorts descending (`-height_m`). Default `name`. Rows with no value come last.",
            "example": "-height_m",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^-?[a-z_]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 100. Default 25.",
            "example": 25,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque position from the `next_cursor` of the previous response. Send it back unchanged with the same filters and sort.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Coaster"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/coasters/{id}": {
      "get": {
        "operationId": "getCoaster",
        "tags": [
          "Coasters"
        ],
        "summary": "Get one coaster",
        "description": "One coaster by its permanent ID. An ID that was merged into another record answers 308 with a Location header pointing at the survivor; an unknown ID is 404. Includes the Wikipedia-derived description with its licence and attribution.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Coaster ID, for example `CDB-COA-000047`.",
            "schema": {
              "pattern": "^CDB-COA-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Coaster"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "308": {
            "description": "The ID was merged into another record. `Location` points at the survivor; the query string is kept. Clients should follow it and update their stored ID.",
            "headers": {
              "Location": {
                "description": "The surviving record.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "410": {
            "description": "The record was removed. Its ID will never be reused.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1"
      }
    },
    "/parks": {
      "get": {
        "operationId": "listParks",
        "tags": [
          "Parks"
        ],
        "summary": "List parks",
        "description": "Parks with filters, sorting and cursor pagination. `coaster_count` is the number of roller coasters we hold for the park, not the number of rides it has.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Country name (exact, any case), country ID or two-letter ISO code when known.",
            "example": "United States",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "One or more park types, comma-separated. Most parks are `unknown` until classified.",
            "example": "theme,amusement",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "min_coasters",
            "in": "query",
            "required": false,
            "description": "Parks with at least this many coasters on record.",
            "example": 1,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "opened_from",
            "in": "query",
            "required": false,
            "description": "Opened in this year or later.",
            "schema": {
              "type": "integer",
              "minimum": 1700,
              "maximum": 2100
            }
          },
          {
            "name": "opened_to",
            "in": "query",
            "required": false,
            "description": "Opened in this year or earlier.",
            "schema": {
              "type": "integer",
              "minimum": 1700,
              "maximum": 2100
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of name, opened, coaster_count, id; a leading minus sorts descending. Default `name`.",
            "example": "-coaster_count",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^-?[a-z_]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 100. Default 25.",
            "example": 25,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque position from the `next_cursor` of the previous response. Send it back unchanged with the same filters and sort.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Park"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/parks/{id}": {
      "get": {
        "operationId": "getPark",
        "tags": [
          "Parks"
        ],
        "summary": "Get one park",
        "description": "One park by its permanent ID, with the coasters we hold for it and its Wikipedia-derived description (licence and attribution included). A merged ID answers 308 with a Location header; an unknown ID is 404.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Park ID, for example `CDB-PAR-000001`.",
            "schema": {
              "pattern": "^CDB-PAR-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Park"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "308": {
            "description": "The ID was merged into another record. `Location` points at the survivor; the query string is kept. Clients should follow it and update their stored ID.",
            "headers": {
              "Location": {
                "description": "The surviving record.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "410": {
            "description": "The record was removed. Its ID will never be reused.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1"
      }
    },
    "/manufacturers": {
      "get": {
        "operationId": "listManufacturers",
        "tags": [
          "Manufacturers"
        ],
        "summary": "List manufacturers",
        "description": "Coaster manufacturers with filters, sorting and cursor pagination.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Country name (exact, any case), country ID or two-letter ISO code when known.",
            "example": "Switzerland",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "min_coasters",
            "in": "query",
            "required": false,
            "description": "Manufacturers with at least this many coasters on record.",
            "example": 10,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of name, founded, coaster_count, id; a leading minus sorts descending. Default `name`.",
            "example": "-coaster_count",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^-?[a-z_]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 100. Default 25.",
            "example": 25,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque position from the `next_cursor` of the previous response. Send it back unchanged with the same filters and sort.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Manufacturer"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/manufacturers/{id}": {
      "get": {
        "operationId": "getManufacturer",
        "tags": [
          "Manufacturers"
        ],
        "summary": "Get one manufacturer",
        "description": "One manufacturer by its permanent ID, with its Wikipedia-derived description (licence and attribution included). A merged ID answers 308 with a Location header; an unknown ID is 404.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Manufacturer ID, for example `CDB-MFR-000001`.",
            "schema": {
              "pattern": "^CDB-MFR-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The record.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Manufacturer"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "308": {
            "description": "The ID was merged into another record. `Location` points at the survivor; the query string is kept. Clients should follow it and update their stored ID.",
            "headers": {
              "Location": {
                "description": "The surviving record.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "410": {
            "description": "The record was removed. Its ID will never be reused.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1"
      }
    },
    "/countries": {
      "get": {
        "operationId": "listCountries",
        "tags": [
          "Countries"
        ],
        "summary": "List countries",
        "description": "Countries that have at least one coaster or park on record, with counts. Historical states point at today's country through `successor`. ISO codes are not filled in for every country yet.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "current",
            "in": "query",
            "required": false,
            "description": "True for countries that exist today, false for historical ones such as Czechoslovakia.",
            "schema": {
              "type": "boolean",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "min_coasters",
            "in": "query",
            "required": false,
            "description": "Countries with at least this many coasters on record.",
            "example": 10,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of name, coaster_count, park_count, id; a leading minus sorts descending. Default `name`.",
            "example": "-coaster_count",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^-?[a-z_]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 100. Default 25.",
            "example": 25,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque position from the `next_cursor` of the previous response. Send it back unchanged with the same filters and sort.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Country"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/models": {
      "get": {
        "operationId": "listModels",
        "tags": [
          "Models"
        ],
        "summary": "List coaster models",
        "description": "Coaster models (a manufacturer's named design, such as a hypercoaster line). Models are normalised from the source text and are not complete.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "manufacturer",
            "in": "query",
            "required": false,
            "description": "Only models of this manufacturer.",
            "schema": {
              "pattern": "^CDB-MFR-[0-9]{6,12}$",
              "type": "string",
              "maxLength": 24
            }
          },
          {
            "name": "min_coasters",
            "in": "query",
            "required": false,
            "description": "Models with at least this many coasters on record.",
            "example": 2,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "One of name, coaster_count, id; a leading minus sorts descending. Default `name`.",
            "example": "-coaster_count",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "pattern": "^-?[a-z_]+$"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 100. Default 25.",
            "example": 25,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque position from the `next_cursor` of the previous response. Send it back unchanged with the same filters and sort.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Comma-separated top-level fields to return, for example `name,height_m`. `id` is always included. Unknown fields are refused.",
            "example": "name,height_m",
            "schema": {
              "type": "string",
              "maxLength": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Model"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/search": {
      "get": {
        "operationId": "search",
        "tags": [
          "Search"
        ],
        "summary": "Search by name",
        "description": "Best matches across coasters, parks, manufacturers and models, ranked by closeness. Returns at most 50 hits and has no pagination: refine the query instead.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "What to look for: part of a name. Accents and case are ignored and small typos are tolerated. At least 2 characters.",
            "example": "mill force",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Limit the search to some kinds of record, comma-separated.",
            "example": "coaster,park",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 50. Default 10.",
            "example": 10,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SearchHit"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/stats/rankings/{metric}": {
      "get": {
        "operationId": "getRanking",
        "tags": [
          "Statistics"
        ],
        "summary": "Rankings",
        "description": "The top coasters by one measurement, using trusted values only. A coaster is left out when its value is unknown, held for review as implausible, in conflict between sources, or withheld for licensing. Equal values share a rank. `meta.ranked` and `meta.total` say how many coasters were ranked out of how many matched the filters.",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "metric",
            "in": "path",
            "required": true,
            "description": "One of tallest, fastest, longest, drop, inversions, duration.",
            "example": "tallest",
            "schema": {
              "type": "string",
              "enum": [
                "tallest",
                "fastest",
                "longest",
                "drop",
                "inversions",
                "duration"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many to return, 1 to 100. Default 25.",
            "example": 10,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Only coasters in this country (name, ID or two-letter code).",
            "example": "Japan",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Only this construction type, for example `Steel`.",
            "example": "Wood",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only these statuses, comma-separated. Default: all.",
            "example": "operating",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of results.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/RankingItem"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1, or 2 when limit is above 50"
      }
    },
    "/meta": {
      "get": {
        "operationId": "getMeta",
        "tags": [
          "Meta"
        ],
        "summary": "Data licence, counts and versions",
        "description": "A summary of the data licence and attribution rules, how many records the API serves, when the sources were last read, the tiers, and what is deliberately not served (queue times among them).",
        "security": [
          {},
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The record.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "ETag": {
                "description": "Validator for conditional requests (`If-None-Match`).",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ApiMeta"
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  },
                  "required": [
                    "data",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Not modified (the `If-None-Match` value matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "x-cost-units": "1"
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A stable URI that identifies the kind of problem. It points at the explanation in the developer docs."
          },
          "title": {
            "type": "string",
            "description": "A short, fixed summary."
          },
          "status": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The HTTP status code."
          },
          "code": {
            "type": "string",
            "description": "A stable machine-readable code, for example `invalid_parameter`."
          },
          "detail": {
            "type": "string",
            "description": "What went wrong, in a sentence."
          },
          "instance": {
            "type": "string",
            "description": "The path of the request that failed."
          },
          "request_id": {
            "type": "string",
            "description": "Quote this when asking for help. It appears in the X-Request-Id header too."
          },
          "errors": {
            "description": "Per-parameter problems, when there are any.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "parameter": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "parameter",
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code",
          "detail",
          "instance",
          "request_id"
        ],
        "additionalProperties": false
      },
      "ResponseMeta": {
        "type": "object",
        "properties": {
          "api_version": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "generated_at": {
            "type": "string"
          },
          "tier": {
            "type": "string",
            "enum": [
              "anonymous",
              "free",
              "developer"
            ]
          },
          "count": {
            "description": "Items in this response.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "limit": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "has_more": {
            "type": "boolean"
          },
          "depth_limited": {
            "description": "True when more results exist but your tier's limit on how far one walk may go has been reached.",
            "type": "boolean"
          },
          "next_cursor": {
            "description": "Pass as `cursor` to get the next page. Null on the last page.",
            "type": [
              "string",
              "null"
            ]
          },
          "ranked": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "total": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "metric": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "methodology": {
            "type": "string"
          },
          "redirect": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              }
            },
            "required": [
              "from",
              "to"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "api_version",
          "request_id",
          "generated_at",
          "tier"
        ],
        "additionalProperties": false
      },
      "Envelope": {
        "type": "object",
        "description": "The body of a 308 redirect: no data, and `meta.redirect` says where the record went.",
        "properties": {
          "data": {
            "type": "null"
          },
          "meta": {
            "$ref": "#/components/schemas/ResponseMeta"
          }
        },
        "required": [
          "data",
          "meta"
        ]
      },
      "Coaster": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Permanent ID, for example CDB-COA-000123."
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string",
                "description": "This record in the API."
              },
              "web": {
                "description": "This record on the website.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "self",
              "web"
            ],
            "additionalProperties": false
          },
          "status": {
            "type": "string",
            "enum": [
              "operating",
              "closed",
              "sbno",
              "planned",
              "unknown"
            ],
            "description": "`sbno` means standing but not operating. `unknown` is a real answer, not a default."
          },
          "type": {
            "description": "For example Steel or Wood, as the source says.",
            "type": [
              "string",
              "null"
            ]
          },
          "park": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reference"
              },
              {
                "type": "null"
              }
            ]
          },
          "manufacturer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reference"
              },
              {
                "type": "null"
              }
            ]
          },
          "model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reference"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "place": {
            "description": "City or town.",
            "type": [
              "string",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "location_from": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "coaster",
                  "park"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "`park` means the coordinates are the park's, not the ride's own."
          },
          "opened": {
            "$ref": "#/components/schemas/DateValue"
          },
          "closed": {
            "$ref": "#/components/schemas/DateValue"
          },
          "height_m": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "drop_m": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "length_m": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "speed_kmh": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "duration_s": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "inversions": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "photo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Photo"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "licence": {
            "type": "string",
            "description": "Licence of the structured data in this object (`CC0-1.0`). Text and photos carry their own licence in their own objects."
          },
          "attribution": {
            "type": "string",
            "description": "Credit line for the data in this object."
          },
          "angle_deg": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "g_force": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "capacity_per_hour": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "min_height_cm": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "max_height_cm": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "launches": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "lift_hills": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "trains_count": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "cars_per_train": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "riders_per_car": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "seats_per_train": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "area": {
            "description": "Themed area inside the park.",
            "type": [
              "string",
              "null"
            ]
          },
          "designer": {
            "type": [
              "string",
              "null"
            ]
          },
          "layout": {
            "type": [
              "string",
              "null"
            ]
          },
          "lift": {
            "type": [
              "string",
              "null"
            ]
          },
          "restraint": {
            "type": [
              "string",
              "null"
            ]
          },
          "track_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "track_material": {
            "type": [
              "string",
              "null"
            ]
          },
          "support_material": {
            "type": [
              "string",
              "null"
            ]
          },
          "propulsion": {
            "type": [
              "string",
              "null"
            ]
          },
          "launch_technology": {
            "type": [
              "string",
              "null"
            ]
          },
          "operation_pattern": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "year_round",
                  "seasonal"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "elements": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "previous_names": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "website": {
            "description": "Official ride page.",
            "type": [
              "string",
              "null"
            ]
          },
          "successor_of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reference"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ride this one replaced."
          },
          "description": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Description"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "A roller coaster. Fields marked developer tier appear only with a developer key; `description` only on the single-item endpoint."
      },
      "Reference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "A short reference to another record."
      },
      "CountryReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "iso2": {
            "description": "ISO 3166 two-letter code when known. Not filled in for every country yet.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "iso2"
        ],
        "additionalProperties": false
      },
      "DateValue": {
        "type": "object",
        "properties": {
          "value": {
            "description": "ISO date cut to its precision: `2000`, `2000-05` or `2000-05-13`. Null when unknown.",
            "type": [
              "string",
              "null"
            ]
          },
          "precision": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "year",
                  "month",
                  "day"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/FactStatus"
          },
          "source": {
            "description": "Key of the source the value came from, for example `wikidata`.",
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "description": "Link to the record in that source.",
            "type": [
              "string",
              "null"
            ]
          },
          "retrieved_at": {
            "description": "Date the source was last read (YYYY-MM-DD).",
            "type": [
              "string",
              "null"
            ]
          },
          "flags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValueFlag"
            }
          }
        },
        "required": [
          "value",
          "precision",
          "status",
          "source",
          "source_url",
          "retrieved_at",
          "flags"
        ],
        "additionalProperties": false,
        "description": "A date with its precision, status and source."
      },
      "FactStatus": {
        "type": "string",
        "enum": [
          "confirmed",
          "estimated",
          "unknown"
        ],
        "description": "How sure we are. `confirmed`: two independent sources agree, or a person checked it. `estimated`: one source. `unknown`: no value is known (the value is null, never zero)."
      },
      "ValueFlag": {
        "type": "string",
        "enum": [
          "conflicting_sources",
          "held_for_review"
        ],
        "description": "`conflicting_sources`: sources disagree about this value. `held_for_review`: the value is outside what any built coaster has reached and is waiting for a person to check it. Flagged values are left out of filters, sorting and rankings."
      },
      "NumberValue": {
        "type": "object",
        "properties": {
          "value": {
            "description": "The value, or null when unknown. Never 0 for unknown.",
            "type": [
              "number",
              "null"
            ]
          },
          "unit": {
            "type": "string",
            "description": "`m`, `km/h`, `s`, `deg`, `g`, `count`, `riders/hour`, `cm`, `year`."
          },
          "status": {
            "$ref": "#/components/schemas/FactStatus"
          },
          "source": {
            "description": "Key of the source the value came from, for example `wikidata`.",
            "type": [
              "string",
              "null"
            ]
          },
          "source_url": {
            "description": "Link to the record in that source.",
            "type": [
              "string",
              "null"
            ]
          },
          "retrieved_at": {
            "description": "Date the source was last read (YYYY-MM-DD).",
            "type": [
              "string",
              "null"
            ]
          },
          "flags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValueFlag"
            }
          }
        },
        "required": [
          "value",
          "unit",
          "status",
          "source",
          "source_url",
          "retrieved_at",
          "flags"
        ],
        "additionalProperties": false,
        "description": "A measurement with its status and source."
      },
      "Photo": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Link to the image on Wikimedia. We return a link, not the image."
          },
          "width": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "licence": {
            "type": "string"
          },
          "licence_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "page_url": {
            "type": "string",
            "description": "The Commons page for the file."
          },
          "attribution": {
            "type": "string",
            "description": "Credit line to show next to the image."
          }
        },
        "required": [
          "url",
          "width",
          "height",
          "author",
          "licence",
          "licence_url",
          "page_url",
          "attribution"
        ],
        "additionalProperties": false,
        "description": "A photograph that lives on Wikimedia Commons, with its licence."
      },
      "RecordSource": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "retrieved_at": {
            "type": "string"
          }
        },
        "required": [
          "source",
          "url",
          "retrieved_at"
        ],
        "additionalProperties": false,
        "description": "Where the record itself came from and when it was read."
      },
      "Description": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "Title of the Wikipedia article the text comes from."
          },
          "url": {
            "type": "string",
            "description": "The article."
          },
          "licence": {
            "type": [
              "string",
              "null"
            ]
          },
          "licence_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "attribution": {
            "type": "string",
            "description": "Credit line you must show with the text (share-alike applies)."
          }
        },
        "required": [
          "text",
          "title",
          "url",
          "licence",
          "licence_url",
          "attribution"
        ],
        "additionalProperties": false,
        "description": "Text from Wikipedia contributors under CC BY-SA 4.0. Only on single-item endpoints, never in lists or bulk output."
      },
      "Park": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string",
                "description": "This record in the API."
              },
              "web": {
                "description": "This record on the website.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "self",
              "web"
            ],
            "additionalProperties": false
          },
          "type": {
            "type": "string",
            "enum": [
              "theme",
              "amusement",
              "water",
              "zoo",
              "fairground",
              "other",
              "unknown"
            ],
            "description": "`unknown` until the park has been classified."
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "place": {
            "type": [
              "string",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "opened": {
            "$ref": "#/components/schemas/DateValue"
          },
          "closed": {
            "$ref": "#/components/schemas/DateValue"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "coaster_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Roller coasters on record at this park (a count of what we hold, not of all rides)."
          },
          "photo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Photo"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "licence": {
            "type": "string",
            "description": "Licence of the structured data in this object (`CC0-1.0`). Text and photos carry their own licence in their own objects."
          },
          "attribution": {
            "type": "string",
            "description": "Credit line for the data in this object."
          },
          "description": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Description"
              },
              {
                "type": "null"
              }
            ]
          },
          "coasters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "A park. `description` and `coasters` appear only on the single-item endpoint."
      },
      "Manufacturer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": [
              "string",
              "null"
            ]
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string",
                "description": "This record in the API."
              },
              "web": {
                "description": "This record on the website.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "self",
              "web"
            ],
            "additionalProperties": false
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "founded": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "headquarters": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "coaster_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "photo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Photo"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "licence": {
            "type": "string",
            "description": "Licence of the structured data in this object (`CC0-1.0`). Text and photos carry their own licence in their own objects."
          },
          "attribution": {
            "type": "string",
            "description": "Credit line for the data in this object."
          },
          "description": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Description"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "A coaster manufacturer. `description` appears only on the single-item endpoint."
      },
      "Country": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "links": {
            "type": "object",
            "properties": {
              "coasters": {
                "type": "string",
                "description": "The coasters in this country."
              },
              "web": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "coasters",
              "web"
            ],
            "additionalProperties": false
          },
          "short_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "iso2": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_current": {
            "type": "boolean",
            "description": "False for a country that no longer exists, such as Czechoslovakia."
          },
          "successor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reference"
              },
              {
                "type": "null"
              }
            ]
          },
          "coaster_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "park_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "licence": {
            "type": "string",
            "description": "Licence of the structured data in this object (`CC0-1.0`). Text and photos carry their own licence in their own objects."
          },
          "attribution": {
            "type": "string",
            "description": "Credit line for the data in this object."
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "Model": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "links": {
            "type": "object",
            "properties": {
              "coasters": {
                "type": "string",
                "description": "The coasters of this model."
              }
            },
            "required": [
              "coasters"
            ],
            "additionalProperties": false
          },
          "manufacturer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Reference"
              },
              {
                "type": "null"
              }
            ]
          },
          "coaster_count": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "licence": {
            "type": "string",
            "description": "Licence of the structured data in this object (`CC0-1.0`). Text and photos carry their own licence in their own objects."
          },
          "attribution": {
            "type": "string",
            "description": "Credit line for the data in this object."
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "A coaster model, for example a manufacturer's named design."
      },
      "SearchHit": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "coaster",
              "park",
              "manufacturer",
              "model"
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "context": {
            "description": "A short hint to tell similar names apart, such as the park of a coaster.",
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "type": "number",
            "description": "0 to 1. Higher is a closer match."
          },
          "links": {
            "type": "object",
            "properties": {
              "self": {
                "type": "string",
                "description": "This record in the API."
              },
              "web": {
                "description": "This record on the website.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "self",
              "web"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "type",
          "id",
          "name",
          "context",
          "score",
          "links"
        ],
        "additionalProperties": false
      },
      "RankingItem": {
        "type": "object",
        "properties": {
          "rank": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Competition ranking: equal values share a rank (1, 1, 3)."
          },
          "value": {
            "$ref": "#/components/schemas/NumberValue"
          },
          "coaster": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "links": {
                "type": "object",
                "properties": {
                  "self": {
                    "type": "string",
                    "description": "This record in the API."
                  },
                  "web": {
                    "description": "This record on the website.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "self",
                  "web"
                ],
                "additionalProperties": false
              },
              "park": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Reference"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/CountryReference"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "links",
              "park",
              "country",
              "status"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "rank",
          "value",
          "coaster"
        ],
        "additionalProperties": false
      },
      "ApiMeta": {
        "type": "object",
        "properties": {
          "api_version": {
            "type": "string"
          },
          "retrieved_at": {
            "description": "The newest date any source was read.",
            "type": [
              "string",
              "null"
            ]
          },
          "counts": {
            "type": "object",
            "properties": {
              "coasters": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "parks": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "manufacturers": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "models": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "countries": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "photos": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "coasters",
              "parks",
              "manufacturers",
              "models",
              "countries",
              "photos"
            ],
            "additionalProperties": false
          },
          "licence": {
            "type": "object",
            "properties": {
              "summary": {
                "type": "string"
              },
              "attribution_required": {
                "type": "string"
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "licence": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "licence_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "attribution": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "applies_to": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "name",
                    "licence",
                    "licence_url",
                    "attribution",
                    "applies_to"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "summary",
              "attribution_required",
              "sources"
            ],
            "additionalProperties": false
          },
          "not_served": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "what": {
                  "type": "string"
                },
                "why": {
                  "type": "string"
                }
              },
              "required": [
                "what",
                "why"
              ],
              "additionalProperties": false
            }
          },
          "tiers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tier": {
                  "type": "string"
                },
                "limit": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "window": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "enforced": {
                  "type": "boolean"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "tier",
                "limit",
                "window",
                "enforced",
                "note"
              ],
              "additionalProperties": false
            }
          },
          "links": {
            "type": "object",
            "properties": {
              "docs": {
                "type": "string"
              },
              "openapi": {
                "type": "string"
              }
            },
            "required": [
              "docs",
              "openapi"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "api_version",
          "retrieved_at",
          "counts",
          "licence",
          "not_served",
          "tiers",
          "links"
        ],
        "additionalProperties": false,
        "description": "The data licence summary, counts, retrieval date and API version."
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A parameter is missing, unknown or invalid.",
        "headers": {
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "No API key was sent, or it is wrong, malformed or revoked.",
        "headers": {
          "WWW-Authenticate": {
            "description": "`Bearer realm=\"CoasterDB API\"`",
            "schema": {
              "type": "string"
            }
          },
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The tier may not read a requested field, or the tier is not available.",
        "headers": {
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "No record has this ID, or no such endpoint exists.",
        "headers": {
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unprocessable": {
        "description": "The parameters are valid alone but cannot be combined, or the cursor does not belong to this query.",
        "headers": {
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RateLimited": {
        "description": "The rate limit was reached. Wait for Retry-After seconds.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait.",
            "schema": {
              "type": "integer"
            }
          },
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "ServerError": {
        "description": "An error on our side. Quote the request id.",
        "headers": {
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unavailable": {
        "description": "The query took too long or the service is busy. Retry later.",
        "headers": {
          "X-Request-Id": {
            "description": "The request id, also in the body.",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "headers": {
      "RateLimit-Limit": {
        "description": "Request units allowed in the current window.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Remaining": {
        "description": "Request units left in the current window.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the window resets.",
        "schema": {
          "type": "integer"
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "A key from /developers/keys, sent as `Authorization: Bearer cdb_...`."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "x-problem-types": {
    "invalid_parameter": {
      "status": 400,
      "title": "Invalid parameter",
      "type": "https://coasterdatabase.com/developers/docs#problem-invalid-parameter"
    },
    "invalid_cursor": {
      "status": 400,
      "title": "Invalid cursor",
      "type": "https://coasterdatabase.com/developers/docs#problem-invalid-cursor"
    },
    "unprocessable_query": {
      "status": 422,
      "title": "The query cannot be run",
      "type": "https://coasterdatabase.com/developers/docs#problem-unprocessable-query"
    },
    "api_key_required": {
      "status": 401,
      "title": "API key required",
      "type": "https://coasterdatabase.com/developers/docs#problem-api-key-required"
    },
    "invalid_api_key": {
      "status": 401,
      "title": "Invalid API key",
      "type": "https://coasterdatabase.com/developers/docs#problem-invalid-api-key"
    },
    "field_not_available": {
      "status": 403,
      "title": "Field not available",
      "type": "https://coasterdatabase.com/developers/docs#problem-field-not-available"
    },
    "tier_not_available": {
      "status": 403,
      "title": "Tier not available",
      "type": "https://coasterdatabase.com/developers/docs#problem-tier-not-available"
    },
    "not_found": {
      "status": 404,
      "title": "Not found",
      "type": "https://coasterdatabase.com/developers/docs#problem-not-found"
    },
    "method_not_allowed": {
      "status": 405,
      "title": "Method not allowed",
      "type": "https://coasterdatabase.com/developers/docs#problem-method-not-allowed"
    },
    "gone": {
      "status": 410,
      "title": "Gone",
      "type": "https://coasterdatabase.com/developers/docs#problem-gone"
    },
    "rate_limited": {
      "status": 429,
      "title": "Rate limit exceeded",
      "type": "https://coasterdatabase.com/developers/docs#problem-rate-limited"
    },
    "internal_error": {
      "status": 500,
      "title": "Internal error",
      "type": "https://coasterdatabase.com/developers/docs#problem-internal-error"
    },
    "query_timeout": {
      "status": 503,
      "title": "The query took too long",
      "type": "https://coasterdatabase.com/developers/docs#problem-query-timeout"
    },
    "service_unavailable": {
      "status": 503,
      "title": "Service unavailable",
      "type": "https://coasterdatabase.com/developers/docs#problem-service-unavailable"
    }
  },
  "x-tiers": {
    "anonymous": {
      "label": "Anonymous (no key)",
      "limit": 60,
      "windowSeconds": 3600,
      "maxDepth": 1000,
      "fieldGroups": [
        "core"
      ]
    },
    "free": {
      "label": "Free key",
      "limit": 1000,
      "windowSeconds": 86400,
      "maxDepth": 5000,
      "fieldGroups": [
        "core"
      ]
    },
    "developer": {
      "label": "Developer key",
      "limit": 20000,
      "windowSeconds": 86400,
      "maxDepth": 50000,
      "fieldGroups": [
        "core",
        "extended"
      ]
    },
    "commercial": {
      "label": "Commercial",
      "available": false,
      "excludedFields": [
        "description",
        "photo",
        "photos"
      ],
      "note": "Not available. It needs written terms from the site owner and a review of the data licences first (docs/api.md)."
    }
  }
}
