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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 592 ms | $0.004 |
| 7 h ago | Passed | 402 | 620 ms | $0.004 |
| 10 h ago | Passed | 402 | 556 ms | $0.004 |
| 14 h ago | Passed | 402 | 634 ms | $0.004 |
| 18 h ago | Passed | 402 | 567 ms | $0.004 |
| 22 h ago | Passed | 402 | 741 ms | $0.004 |
| 25 h ago | Passed | 402 | 661 ms | $0.004 |
| 29 h ago | Passed | 402 | 820 ms | $0.004 |
| 32 h ago | Passed | 402 | 627 ms | $0.004 |
| 36 h ago | Passed | 402 | 651 ms | $0.004 |
| 41 h ago | Passed | 402 | 581 ms | $0.004 |