Sunrise sunset times
Sunrise sunset times. Computes sunrise, sunset, solar noon, day length (seconds), and civil / nautical / astronomical twilight begin & end for any latitude/longitude on any date. Also covers golden hour, dawn / dusk, and full astronomy-times. UTC ISO8601 stri…
by x402.agentutility.ai · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Sunrise sunset times. Computes sunrise, sunset, solar noon, day length (seconds), and civil / nautical / astronomical twilight begin & end for any latitude/longitude on any date. Also covers golden hour, dawn / dusk, and full astronomy-times. UTC ISO8601 strings. Wraps sunrise-sunset.org's public API — no auth, commercial-OK.
Tags: locale · astro · times · bazaar · builder-code
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"latitude": 37.7749,
"longitude": -122.4194
}{
"date": "2026-05-06",
"location": {
"lat": 37.7749,
"lon": -122.4194
},
"source": "https://api.sunrise-sunset.org/json",
"times": {
"astronomical_twilight_begin": "2026-05-06T11:28:14+00:00",
"astronomical_twilight_end": "2026-05-07T04:51:59+00:00",
"civil_twilight_begin": "2026-05-06T12:39:31+00:00",
"civil_twilight_end": "2026-05-07T03:40:42+00:00",
"day_length_seconds": 50568,
"nautical_twilight_begin": "2026-05-06T12:04:38+00:00",
"nautical_twilight_end": "2026-05-07T04:15:36+00:00",
"solar_noon": "2026-05-06T20:10:06+00:00",
"sunrise": "2026-05-06T13:08:42+00:00",
"sunset": "2026-05-07T03:11:30+00:00"
}
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/30942.jsonfor the price and payment options. - Pay. Call
GET https://x402.agentutility.ai/astro-times. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.005 | FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"date": {
"type": "string"
},
"location": {
"properties": {
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"type": "object"
},
"source": {
"type": "string"
},
"times": {
"properties": {
"astronomical_twilight_begin": {
"type": "string"
},
"astronomical_twilight_end": {
"type": "string"
},
"civil_twilight_begin": {
"type": "string"
},
"civil_twilight_end": {
"type": "string"
},
"day_length_seconds": {
"type": "integer"
},
"nautical_twilight_begin": {
"type": "string"
},
"nautical_twilight_end": {
"type": "string"
},
"solar_noon": {
"type": "string"
},
"sunrise": {
"type": "string"
},
"sunset": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"date": "string",
"location": {
"lat": 0,
"lon": 0
},
"source": "string",
"times": {
"astronomical_twilight_begin": "string",
"astronomical_twilight_end": "string",
"civil_twilight_begin": "string",
"civil_twilight_end": "string",
"day_length_seconds": 0,
"nautical_twilight_begin": "string",
"nautical_twilight_end": "string",
"solar_noon": "string",
"sunrise": "string",
"sunset": "string"
}
},
"type": "string"
}Examples
curl -X POST 'https://x402.agentutility.ai/astro-times' -H 'Content-Type: application/json' --data '{"latitude":37.7749,"longitude":-122.4194}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://x402.agentutility.ai/astro-times", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"latitude\":37.7749,\"longitude\":-122.4194}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://x402.agentutility.ai/astro-times", json=json.loads("{\"latitude\":37.7749,\"longitude\":-122.4194}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- x402.agentutility.ai
- Endpoint
- https://x402.agentutility.ai/astro-times
- Machine-readable
/resources/30942.json