{"uid":"cap_0sb9PFWCF10F4pQi02T2f","slug":"astro-times-sunrise-sunset-twilight-calculator-77326584","name":"Astro Times – Sunrise/Sunset & Twilight Calculator","description":"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.","url":"https://x402.agentutility.ai/astro-times","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["latitude","longitude"],"properties":{"date":{"type":"string","description":"Date in YYYY-MM-DD. Defaults to today (UTC) if omitted."},"latitude":{"type":"number","description":"Decimal degrees, range [-90, 90]. Positive north."},"longitude":{"type":"number","description":"Decimal degrees, range [-180, 180]. Positive east."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"date":{"type":"string"},"times":{"type":"object","properties":{"sunset":{"type":"string"},"sunrise":{"type":"string"},"solar_noon":{"type":"string"},"civil_twilight_end":{"type":"string"},"day_length_seconds":{"type":"integer"},"civil_twilight_begin":{"type":"string"},"nautical_twilight_end":{"type":"string"},"nautical_twilight_begin":{"type":"string"},"astronomical_twilight_end":{"type":"string"},"astronomical_twilight_begin":{"type":"string"}}},"source":{"type":"string"},"location":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"}}}}}}}}},"responseSchema":{"type":"json","example":{"date":"2026-05-06","times":{"sunset":"2026-05-07T03:11:30+00:00","sunrise":"2026-05-06T13:08:42+00:00","solar_noon":"2026-05-06T20:10:06+00:00","civil_twilight_end":"2026-05-07T03:40:42+00:00","day_length_seconds":50568,"civil_twilight_begin":"2026-05-06T12:39:31+00:00","nautical_twilight_end":"2026-05-07T04:15:36+00:00","nautical_twilight_begin":"2026-05-06T12:04:38+00:00","astronomical_twilight_end":"2026-05-07T04:51:59+00:00","astronomical_twilight_begin":"2026-05-06T11:28:14+00:00"},"source":"https://api.sunrise-sunset.org/json","location":{"lat":37.7749,"lon":-122.4194}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EpEu_ItniXd2TnG26g7E0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes sunrise, sunset, solar noon, day length, golden hour, and civil/nautical/astronomical twilight times for any lat/lon on any date, returning UTC ISO8601 strings.","exampleAgentPrompt":"What time is sunrise and sunset in San Francisco on July 4th, and how long is the day? Also give me civil and nautical twilight times.","exampleUseCases":[{"title":"Golden hour shoot location planning","prompt":"I'm doing a landscape photography session near Denver, Colorado on September 15th — what time does golden hour start and end in the morning, and when is sunset and civil twilight in the evening?"},{"title":"Outdoor event scheduling at dusk","prompt":"We're planning an outdoor wedding reception in Miami on October 10th — what time does the sun set and when does civil twilight end so we know when to turn the lights on?"},{"title":"Nautical navigation twilight window","prompt":"I'm sailing out of Sydney, Australia on March 20th and need to know when nautical twilight begins in the morning and ends in the evening so I can plan my watch schedule."}],"resultDescription":"A JSON object containing the date, latitude/longitude, and a full set of solar times: sunrise, sunset, solar noon, day length in seconds, civil/nautical/astronomical twilight begin and end times — all as UTC ISO8601 strings. Also includes the upstream source URL (sunrise-sunset.org).","failureModes":["Invalid or out-of-range latitude/longitude returns an error","Malformed date format causes a parsing failure","Dates far in the past or future may return less accurate results","Network timeout if the upstream sunrise-sunset.org API is unavailable","Missing required fields (lat, lon, or date) result in a 4xx error"],"whenToPreferThis":"Choose this endpoint when you need precise, astronomy-grade solar event times (including all twilight categories, golden hour, and solar noon) for any geographic coordinate and date, with no API key required and pay-per-call USDC pricing that suits autonomous agents. Prefer it over weather APIs that only provide approximate sunrise/sunset, or when you need the full set of twilight phases for navigation, photography, or scheduling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:13:23.727Z","isFirstParty":false}