Loading...
Loading...
UTC sunrise, sunset, solar noon and day length for a date and coordinate, including polar day/night. Called as GET /v1/time/sunrise-sunset, it takes date, lat, lon and returns sunrise, sunset, dayLengthSeconds. An energy, imaging or scheduling agent needs daylight bounds at a location before it can plan solar yield, a shoot, or a delivery window. Reading this schema and dry-running the call are free and need no wallet; a real call costs $0.003, paid in USDC on Base over x402.
npx skill4agent add fittings-sh/fittings fittings-time-sunrise-sunsettime.sunrise-sunsethttps://fittings.shGET https://fittings.sh/v1/time/sunrise-sunset| Field | Type | Required | Notes |
|---|---|---|---|
| string | yes | ISO date YYYY-MM-DD |
| number | yes | |
| number | yes |
{
"date": "2026-06-21",
"lat": 51.4779,
"lon": -0.0015
}| Price | $0.003 |
| Source | none (pure compute) |
| Licence | none-needed |
fittingscall.mjscurl -sO https://fittings.sh/skill/call.mjscurl -s https://fittings.sh/catalog/time.sunrise-sunset | jq402 Payment Required# Dry run. Prints the quote and pays nothing, because no key is set.
node call.mjs time.sunrise-sunset date=2026-06-21 lat=51.4779 lon=-0.0015
# For real: a wallet holding USDC on Base, and nothing else.
export FITTINGS_PRIVATE_KEY=0x...
node call.mjs time.sunrise-sunset date=2026-06-21 lat=51.4779 lon=-0.0015FITTINGS_PRIVATE_KEYFITTINGS_MAX_PRICE@x402/core@x402/evmfittingshttps://fittings.sh/catalog/search?q=...