78trust / 100

Sun

by Sunrise / sunset in Weather & location

x402 APIPassing, checked 3 h ago

Compute sunrise, sunset, solar noon and day length for a latitude/longitude (east-positive) and date, using the NOAA sunrise equation. All times are UTC ISO-8601. Locations in polar day or night return null rise/set with a `polar` flag — a successful result, not an error.

POST https://astro.openverbs.com/v1/sun

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
627 ms typical, 741 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://astro.openverbs.com/v1/sun" \
  -H "content-type: application/json" \
  -d '{"day":1,"lat":1,"lon":1,"month":1,"year":1}'
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%2Fastro.openverbs.com%2Fv1%2Fsun
const res = await pay("https://astro.openverbs.com/v1/sun", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"day":1,"lat":1,"lon":1,"month":1,"year":1}),
});
console.log(await res.json());

Example input

{
  "day": 1,
  "lat": 1,
  "lon": 1,
  "month": 1,
  "year": 1
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402592 ms$0.004
7 h agoPassed402620 ms$0.004
10 h agoPassed402556 ms$0.004
14 h agoPassed402634 ms$0.004
18 h agoPassed402567 ms$0.004
22 h agoPassed402741 ms$0.004
25 h agoPassed402661 ms$0.004
29 h agoPassed402820 ms$0.004
32 h agoPassed402627 ms$0.004
36 h agoPassed402651 ms$0.004
41 h agoPassed402581 ms$0.004