WeatherAPI · Schema

AstroElement

AstroElement schema from WeatherAPI.com

WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

Properties

Name Type Description
sunrise string
sunset string
moonrise string
moonset string
moon_phase string
moon_illumination number
is_moon_up integer
is_sun_up integer
View JSON Schema on GitHub

JSON Schema

weatherapi-astro-element-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherapi/refs/heads/main/json-schema/weatherapi-astro-element-schema.json",
  "title": "AstroElement",
  "description": "AstroElement schema from WeatherAPI.com",
  "type": "object",
  "properties": {
    "sunrise": {
      "type": "string",
      "example": "05:30 AM"
    },
    "sunset": {
      "type": "string",
      "example": "08:45 PM"
    },
    "moonrise": {
      "type": "string",
      "example": "10:15 PM"
    },
    "moonset": {
      "type": "string",
      "example": "06:42 AM"
    },
    "moon_phase": {
      "type": "string",
      "example": "Waxing Crescent"
    },
    "moon_illumination": {
      "type": "number",
      "example": 35.0
    },
    "is_moon_up": {
      "type": "integer",
      "example": 1
    },
    "is_sun_up": {
      "type": "integer",
      "example": 1
    }
  }
}