Skip to content
Fourohtwo

opendata402.com/v1/sun

Sunrise, sunset, solar noon, day length and the sun's elevation at noon for any latitude, longitude and date, computed with the NOAA solar algorithm (accurate to about a minute; times in UTC; polar day and night handled). Use it for solar panel and lighting schedules, photography, outdoor work planning and daylight-dependent automations.

BasePolygonArbitrumAnswering
GEThttps://opendata402.com/v1/sun

Uptime100% of 4 checks 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://opendata402.com/v1/sun?date=2026-12-21&lat=52.3676&lon=4.9041");
console.log(await res.json());

Example input

{
  "date": "2026-12-21",
  "lat": "52.3676",
  "lon": "4.9041"
}

More from opendata402Provider status