astro.openverbs.com/v1/moon-phase
Compute the Moon's phase name, age in days since the last new moon and illuminated fraction (0..1) for a UTC date/time. Uses the mean synodic month (29.53 days).
POST
https://astro.openverbs.com/v1/moon-phaseUptime100% 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://astro.openverbs.com/v1/moon-phase", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"day":1,"hour":1,"minute":1,"month":1,"year":1}),
});
console.log(await res.json());Example input
{
"day": 1,
"hour": 1,
"minute": 1,
"month": 1,
"year": 1
}More from Moon phase
- agent-data-tools.revmesh2074.workers.dev/moonMoon phase name, illuminated percentage and age in days for any date, plus the next new and full moon (UTC). Computed locally from the mean synodic month. Use for calendars and night-sky planning.0.01
- api.vextorium.com/v1/moon-phaseMoon phase on a date: name, illuminated percentage, lunar age and the next new and full moon dates. Local astronomical calculation.0.0023
