# orbit Geo & Time: Sunrise & Sunset

> orbit Geo & Time: Sunrise & Sunset is a paid API for AI agents from orbit-geo.orbit-builder.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Returns sunrise, sunset, solar noon (with elevation), and day length for any location and date using MET Norway's Sunrise 3.0 API

## Facts

- Endpoint: GET https://orbit-geo.orbit-builder.workers.dev/v1/sun?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orbit-geo-time-sunrise-sunset-9a9a55ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2WZcvoVmICOj0eEDaGcPK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability orbit-geo-time-sunrise-sunset-9a9a55ec
```

Example prompt: What time does the sun rise and set in Almaty, Kazakhstan tomorrow, and how long will the day be? Show times in UTC+5:00.

## When to prefer this

Choose this endpoint when you need authoritative solar timing data (sunrise, sunset, solar noon, day length, sun elevation) for any geographic point or named place on a specific date, especially when you need output in a specific UTC offset. It is backed by MET Norway's Sunrise 3.0 API and handles edge cases like polar day/night gracefully. Prefer it over generic weather APIs when the primary need is solar event timing rather than meteorological data.

## Known failure modes

- Invalid or unrecognizable place name returns an error or falls back to example input
- Coordinates outside valid ranges (lat -90 to 90, lon -180 to 180) may cause errors
- Malformed date string (not YYYY-MM-DD) may return an error or use today's date
- Polar regions during midnight sun or polar night return null sunrise/sunset times with a note
- Invalid UTC offset format may cause incorrect time conversion or error
- No parameters provided runs example input rather than returning an error

## How this service works

Location and time data for agents: weather now + 7-day forecast (MET Norway), geocoding and reverse geocoding (OpenStreetMap Nominatim), sunrise/sunset, world time-zone conversion and public holidays (Nager.Date). Real open data fetched at call time, attribution included. $0.001 per call. By orbit-builder.

## Output

A JSON object containing the date, sunrise time, sunset time, solar noon time, solar noon elevation in degrees, day length as a human-readable string (e.g. '8h13m'), and the resolved location coordinates. For polar day or polar night, times are returned as null with an explanatory note.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lat": {
       "type": "number",
       "description": "latitude"
      },
      "lon": {
       "type": "number",
       "description": "longitude"
      },
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD (default today UTC)"
      },
      "place": {
       "type": "string",
       "description": "or a place name, e.g. Almaty or Paris, France"
      },
      "offset": {
       "type": "string",
       "description": "UTC offset for output, e.g. +05:00 (default +00:00)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-10-23",
  "sunset": "2026-10-23T17:18+00:00",
  "sunrise": "2026-10-23T09:05+00:00",
  "location": {
   "lat": 64.146,
   "lon": -21.9422
  },
  "day_length": "8h13m",
  "solar_noon": "2026-10-23T13:12+00:00",
  "solar_noon_elevation_deg": 14.6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/orbit-geo-time-sunrise-sunset-9a9a55ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from orbit-geo.orbit-builder.workers.dev](https://www.zero.xyz/host/orbit-geo.orbit-builder.workers.dev/llms.txt)
