Home
Tomorrow.io
Timelines Request Structure
Timelines Request Structure
Advanced Timelines request body.
Type: object
Properties: 8
Required: 2
Weather Climate Forecast Historical Weather Air Quality Pollen Fire Flood Routes Map Tiles Aviation Maritime Public APIs
TimelinesRequest is a JSON Structure definition published by Tomorrow.io, describing 8 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
Properties
location
fields
units
timesteps
startTime
endTime
timezone
dailyStartHour
Meta-schema: https://json-structure.org/meta/core/v0/#
JSON Structure
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/tomorrow/refs/heads/main/json-structure/timelines-request-structure.json",
"name": "TimelinesRequest",
"description": "Advanced Timelines request body.",
"type": "object",
"properties": {
"location": {
"oneOf": [
{
"type": "string",
"description": "Pre-defined location ID, place name, or latlong string.",
"example": "42.3478,-71.0466"
},
{
"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"
]
}
]
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"temperature",
"humidity",
"windSpeed"
]
},
"units": {
"type": "string",
"enum": [
"metric",
"imperial"
],
"default": "metric"
},
"timesteps": {
"type": "array",
"items": {
"type": "string",
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"1d",
"current"
]
},
"example": [
"1h"
]
},
"startTime": {
"type": "string",
"example": "now",
"description": "Accepts `now`, relative `nowPlus/MinusXm/h/d`, or ISO 8601."
},
"endTime": {
"type": "string",
"example": "nowPlus6h"
},
"timezone": {
"type": "string",
"default": "UTC",
"example": "America/New_York"
},
"dailyStartHour": {
"type": "int32",
"minimum": 0,
"maximum": 23,
"default": 6
}
},
"required": [
"location",
"fields"
]
}