Tomorrow.io · JSON Structure

Events Request Structure

Advanced Events request body.

Type: object Properties: 3 Required: 2
WeatherClimateForecastHistorical WeatherAir QualityPollenFireFloodRoutesMap TilesAviationMaritimePublic APIs

EventsRequest is a JSON Structure definition published by Tomorrow.io, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

location insights buffer

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tomorrow/refs/heads/main/json-structure/events-request-structure.json",
  "name": "EventsRequest",
  "description": "Advanced Events request body.",
  "type": "object",
  "properties": {
    "location": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "description": "GeoJSON geometry \u2014 Point, LineString, or Polygon.",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "Point",
                "LineString",
                "Polygon"
              ],
              "example": "Point"
            },
            "coordinates": {
              "type": "array",
              "items": {},
              "example": [
                -71.0466,
                42.3478
              ]
            }
          },
          "required": [
            "type",
            "coordinates"
          ]
        }
      ]
    },
    "insights": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "hail",
        "thunderstorm"
      ]
    },
    "buffer": {
      "type": "float",
      "default": 1,
      "description": "Radius around the location in km."
    }
  },
  "required": [
    "location",
    "insights"
  ]
}