80trust / 100

Space Sun Moon

by Tanod skypeek in Weather & location

x402 APIPassing, checked 14 min ago

skypeek (Tanod) sunrise, sunset, twilight and moon phase (computed locally).

POST https://tanod.dev/v1/space/sun-moon

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
275 ms typical, 713 ms slowest 5%
Last check
14 min ago
Next check
in 16 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/space/sun-moon" \
  -H "content-type: application/json" \
  -d '{"date":"2026-10-08","lat":14.5995,"lon":120.9842,"tz":"Asia/Manila"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fspace%2Fsun-moon
const res = await pay("https://tanod.dev/v1/space/sun-moon", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"date":"2026-10-08","lat":14.5995,"lon":120.9842,"tz":"Asia/Manila"}),
});
console.log(await res.json());

Example input

{
  "date": "2026-10-08",
  "lat": 14.5995,
  "lon": 120.9842,
  "tz": "Asia/Manila"
}

Example output

{
  "accuracy": "Sun and twilight times within ~1 minute, moonrise / moonset within ~3 minutes, illumination within 0.5 percentage points (checked against JPL DE421). Standard refraction (34 arcmin), sea-level horizon: terrain, weather and elevation are not modelled. Sun rise / set uses the Sun's upper limb; Moon rise / set the Moon's upper limb with parallax. Days with no rise or set return null; sun.polar says why.",
  "date": "2026-10-08",
  "lat": 14.5995,
  "lon": 120.9842,
  "method": "Meeus low-order Sun and truncated Moon series computed locally (no ephemeris file)",
  "moon": {
    "age_fraction": 0.9148,
    "distance_km": 379060,
    "elongation_deg": 329.34,
    "illumination": 0.0703,
    "moonrise": "2026-10-08T03:25:46+08:00",
    "moonset": "2026-10-08T15:59:35+08:00",
    "phase": "waning_crescent",
    "phase_evaluated_at": "2026-10-08T12:00:00+08:00",
    "up_at_local_noon": true,
    "waxing": false
  },
  "sun": {
    "astronomical_twilight": {
      "dawn": "2026-10-08T04:35:13+08:00",
      "dusk": "2026-10-08T18:51:57+08:00"
    },
    "civil_twilight": {
      "dawn": "2026-10-08T05:24:54+08:00",
      "dusk": "2026-10-08T18:02:18+08:00"
    },
    "day_length_hours": 11.909,
    "max_altitude_deg": 69.54,
    "nautical_twilight": {
      "dawn": "2026-10-08T05:00:03+08:00",
      "dusk": "2026-10-08T18:27:09+08:00"
    },
    "polar": null,
    "solar_noon": "2026-10-08T11:43:37+08:00",
    "sunrise": "2026-10-08T05:46:20+08:00",
    "sunset": "2026-10-08T17:40:52+08:00"
  },
  "tz": "Asia/Manila"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
14 min agoPassed402266 ms$0.001
4 h agoPassed402272 ms$0.001
7 h agoPassed402275 ms$0.001
12 h agoPassed402310 ms$0.001
14 h agoPassed402714 ms$0.001
19 h agoPassed402267 ms$0.001
22 h agoPassed402588 ms$0.001
25 h agoPassed402713 ms$0.001
31 h agoPassed402274 ms$0.001