{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prospectapis/json-schema/prospectapis-event-schema.json",
  "title": "Event",
  "description": "One public event, the same shape for every platform. A field the platform does not publish is null, never guessed.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prospectapis-events-api-openapi.yml#/components/schemas/Event",
  "type": "object",
  "required": [
    "id",
    "platform",
    "platform_event_id",
    "url",
    "title",
    "start_at",
    "timezone",
    "hosts",
    "categories"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The platform and its own id, such as luma.evt-AbC123."
    },
    "platform": {
      "type": "string",
      "enum": [
        "luma",
        "partiful"
      ]
    },
    "platform_event_id": {
      "type": "string",
      "description": "The platform's own stable id."
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "start_at": {
      "type": "string",
      "format": "date-time",
      "description": "UTC."
    },
    "end_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "start_local": {
      "type": [
        "string",
        "null"
      ],
      "description": "Local time with the offset."
    },
    "end_local": {
      "type": [
        "string",
        "null"
      ]
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "city_slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "venue": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "lat": {
          "type": [
            "number",
            "null"
          ]
        },
        "lng": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "online": {
      "type": "boolean"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "Luma's own category slug; null on Partiful."
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "guest_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Null when the host hides the guest list."
    },
    "guest_count_exact": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "hosts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "role": {
            "type": "string"
          },
          "x_handle": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin": {
            "type": [
              "string",
              "null"
            ]
          },
          "instagram": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "bio": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "speakers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "role": {
            "type": "string"
          },
          "x_handle": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkedin": {
            "type": [
              "string",
              "null"
            ]
          },
          "instagram": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "bio": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "organizer": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ticket": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "is_free": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "price_min": {
          "type": [
            "number",
            "null"
          ]
        },
        "price_max": {
          "type": [
            "number",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "sold_out": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "requires_approval": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "cover_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "first_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_seen_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}