# Site Climate Day Length & Solar Times

> Site Climate Day Length & Solar Times is a paid API for AI agents from site-climate.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Returns day length, sunrise, sunset, and solar noon times (UTC) for a given latitude, longitude, and date, including handling of polar day and polar night conditions.

## Facts

- Endpoint: GET https://site-climate.x402tookit.com/daylength?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/site-climate-day-length-solar-times-7ebaa31f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_scDGFqNpyeSKPFi3n-wvt

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 site-climate-day-length-solar-times-7ebaa31f
```

Example prompt: How many hours of daylight will there be in Tromsø, Norway (latitude 69.65, longitude 18.96) on December 21, 2024, and what are the exact sunrise and sunset times in UTC?

## When to prefer this

Choose this endpoint when you need precise solar time data (sunrise, sunset, solar noon, day length) for any geographic coordinate and date, especially for locations that may experience polar day or polar night. It is ideal for planning outdoor activities, energy calculations, astronomical queries, or environmental analysis. Prefer it over general weather APIs when solar geometry is the primary concern rather than temperature or precipitation.

## Known failure modes

- Missing required query parameters (lat, lon, date) returns an error
- Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) returns a validation error
- Date not in YYYY-MM-DD format causes a parse error
- Payment failure or insufficient USDC balance blocks the request
- Polar locations near the boundary of polar day/night may return degraded or approximate results

## How this service works

Day length, sunrise, sunset (UTC) and solar noon for a latitude, longitude and date, including polar day and night.

## Output

Returns a JSON object containing sunrise time in UTC, sunset time in UTC, solar noon in UTC, day length as a decimal hour value and as an HH:MM string, solar declination in degrees, day of year, the input latitude/longitude and date, and a summary noting any polar day or polar night condition. May include degraded status and disclaimer fields.

## 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": [
      "lat",
      "lon",
      "date"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      },
      "date": {
       "type": "string",
       "description": "Date as YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "date": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "latitude": {
       "type": [
        "null",
        "number"
       ]
      },
      "dayOfYear": {
       "type": [
        "null",
        "number"
       ]
      },
      "longitude": {
       "type": [
        "null",
        "number"
       ]
      },
      "sunsetUtc": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "sunriseUtc": {
       "type": [
        "null",
        "string"
       ]
      },
      "daylengthHm": {
       "type": [
        "null",
        "string"
       ]
      },
      "solarNoonUtc": {
       "type": [
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/site-climate-day-length-solar-times-7ebaa31f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from site-climate.x402tookit.com](https://www.zero.xyz/host/site-climate.x402tookit.com/llms.txt)
