{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/long-events/json-schema/long-events-events-request-schema.json",
  "title": "EventsRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/long-events-openapi.json#/components/schemas/EventsRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "action": {
      "$ref": "#/components/parameters/EventsAction/schema"
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "city": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "startDate": {
      "type": "string",
      "format": "date"
    },
    "endDate": {
      "type": "string",
      "format": "date"
    },
    "start_date": {
      "type": "string",
      "format": "date"
    },
    "end_date": {
      "type": "string",
      "format": "date"
    },
    "limit": {
      "type": "integer",
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "cursor": {
      "type": "string",
      "description": "Opaque next_cursor from a list action with unchanged filters."
    },
    "near_lat": {
      "type": "number"
    },
    "near_lng": {
      "type": "number"
    },
    "radius_km": {
      "type": "number",
      "minimum": 0
    },
    "sort_by": {
      "type": "string",
      "enum": [
        "date",
        "distance"
      ]
    },
    "editorial_pick": {
      "type": "boolean",
      "default": false
    },
    "editorial_series": {
      "type": "string",
      "enum": [
        "long5",
        "crypto5"
      ],
      "description": "Requires editorial_pick=true. Omit to return both labeled series."
    },
    "event_id": {
      "type": "string",
      "format": "uuid"
    },
    "event_week_id": {
      "type": "string",
      "format": "uuid"
    },
    "event_week_slug": {
      "type": "string"
    },
    "date": {
      "type": "string",
      "format": "date"
    },
    "stage": {
      "type": "string"
    },
    "artist_name": {
      "type": "string"
    },
    "artist_id": {
      "type": "string",
      "format": "uuid"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "min_events": {
      "type": "integer",
      "minimum": 0
    },
    "upcoming_only": {
      "type": "boolean",
      "default": true
    },
    "kind": {
      "type": "string",
      "enum": [
        "organizer",
        "venue",
        "artist"
      ]
    },
    "cities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 20
    }
  }
}