For a latitude/longitude and date
agents.204-168-199-108.sslip.io/v1/geo/sun
For a latitude/longitude and date: sunrise, sunset, solar noon, civil/nautical/astronomical dawn and dusk, golden hour, day length and the sun's highest altitude — in UTC and (with tz) local time. Handles polar day/night (state field, nulls for events that do not happen). Accuracy ±1–2 minutes. Use for scheduling, photography, prayer-time inputs, solar and outdoor planning. Offline.
GET
https://agents.204-168-199-108.sslip.io/v1/geo/sunUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/geo/sun?date=2026-12-21&lat=25.2048&lon=55.2708&tz=Asia%2FDubai");
console.log(await res.json());Example input
{
"date": "2026-12-21",
"lat": "25.2048",
"lon": "55.2708",
"tz": "Asia/Dubai"
}