WeatherAPI · JSON Structure

Weatherapi Astronomy Response Structure

AstronomyResponse schema from WeatherAPI.com

Type: object Properties: 2
WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

AstronomyResponse is a JSON Structure definition published by WeatherAPI, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

location astronomy

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/weatherapi/refs/heads/main/json-structure/weatherapi-astronomy-response-structure.json",
  "name": "AstronomyResponse",
  "description": "AstronomyResponse schema from WeatherAPI.com",
  "type": "object",
  "properties": {
    "location": {
      "type": "object",
      "description": "Location metadata returned with every weather response.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Location name",
          "example": "London"
        },
        "region": {
          "type": "string",
          "description": "Region or state",
          "example": "City of London, Greater London"
        },
        "country": {
          "type": "string",
          "description": "Country name",
          "example": "United Kingdom"
        },
        "lat": {
          "type": "float",
          "description": "Latitude",
          "example": 51.5074
        },
        "lon": {
          "type": "float",
          "description": "Longitude",
          "example": -0.1278
        },
        "tz_id": {
          "type": "string",
          "description": "IANA timezone ID, e.g. Europe/London",
          "example": "Europe/London"
        },
        "localtime_epoch": {
          "type": "int32",
          "description": "Local time as Unix epoch",
          "example": 1748441400
        },
        "localtime": {
          "type": "string",
          "description": "Local date and time string",
          "example": "2026-05-28 15:30"
        }
      }
    },
    "astronomy": {
      "type": "object",
      "properties": {
        "astro": {
          "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": "double",
              "example": 35.0
            },
            "is_moon_up": {
              "type": "int32",
              "example": 1
            },
            "is_sun_up": {
              "type": "int32",
              "example": 1
            }
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/weatherapi-astronomy-response-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.