# Saylor Innovations Sun Times API

> Saylor Innovations Sun Times API is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Returns sunrise, sunset, solar noon, day length, and civil/nautical/astronomical twilight times in UTC for any latitude/longitude and date

## Facts

- Endpoint: GET https://saylorinnovations.com/api/astronomy/sun?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-sun-times-api-dcf1ff29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pPR2WQ9Jm7tSALV81S0-f

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 saylor-innovations-sun-times-api-dcf1ff29
```

Example prompt: What time is sunrise, sunset, and solar noon tomorrow at latitude 40.7128, longitude -74.0060, and how long will the day be? Also include civil and nautical twilight times.

## When to prefer this

Choose this endpoint when you need precise solar event times (sunrise, sunset, solar noon, twilight phases) for any geographic coordinate and date, especially when UTC output is required. It is well-suited for golden hour photography planning, outdoor scheduling, astrophotography dark window calculation, or any application needing machine-readable sun schedule data by lat/lon. Prefer it over weather APIs that only provide approximate local sunrise/sunset without detailed twilight phases.

## Known failure modes

- Missing lat or lon parameters returns an error
- Invalid coordinate values (out of range) may return an error or unexpected results
- Polar regions during midnight sun or polar night may return null day_length_seconds or no sunrise/sunset times
- No date parameter defaults to current date (behavior may vary)
- Network or service downtime returns a non-200 response

## How this service works

Sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight times in UTC for any lat/lon and date, golden hour planning

## Output

A JSON object containing the date, location reference, sunrise and sunset times in UTC, solar noon UTC, day length in seconds, and structured objects for civil twilight, nautical twilight, and astronomical twilight (each with start/end times). Also includes a source field and optional notes or caveats.

## 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"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "Latitude in decimal degrees"
      },
      "lon": {
       "type": "string",
       "description": "Longitude in decimal degrees"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "location",
      "sunrise_utc",
      "sunset_utc"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Date (YYYY-MM-DD)"
      },
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "location": {
       "type": "object",
       "description": "Place the data refers to"
      },
      "sunset_utc": {
       "type": "string",
       "description": "Sunset utc"
      },
      "sunrise_utc": {
       "type": "string",
       "description": "Sunrise utc"
      },
      "civil_twilight": {
       "type": "object",
       "description": "Civil twilight"
      },
      "solar_noon_utc": {
       "type": "string",
       "description": "Solar noon utc"
      },
      "nautical_twilight": {
       "type": "object",
       "description": "Nautical twilight"
      },
      "day_length_seconds": {
       "type": [
        "number",
        "null"
       ],
       "description": "Day length, in seconds"
      },
      "astronomical_twilight": {
       "type": "object",
       "description": "Astronomical twilight"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-sun-times-api-dcf1ff29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
