{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/extralingo-com/json-schema/extralingo-com-school-search-request-schema.json",
  "title": "SchoolSearchRequest",
  "description": "All fields optional. Omitted fields are not constrained.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/extralingo-com-openapi.json#/components/schemas/SchoolSearchRequest",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Free-text query (school name, keywords)."
    },
    "locale": {
      "type": "string",
      "enum": [
        "en",
        "nl",
        "da",
        "sv"
      ],
      "default": "en"
    },
    "language": {
      "type": "string",
      "description": "Language slug, e.g. \"spanish\"."
    },
    "country": {
      "type": "string",
      "description": "Country name as returned by /filters."
    },
    "cities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "City names as returned by /filters."
    },
    "course_type_titles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "accommodation_type_titles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "atmosphere_tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "accreditations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "class_size": {
      "type": "string"
    },
    "school_size": {
      "type": "string"
    },
    "age": {
      "type": "string"
    },
    "facets": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facet fields to return distributions for."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 50
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    }
  }
}