{"uid":"cap_67bQtO1c53vg7bQtcI4J8","slug":"sun-moon-and-planets-rise-set-twilight-calculator-a33d26c5","name":"Sun, Moon and Planets – Rise/Set & Twilight Calculator","description":"Sunrise, sunset, solar noon, three twilights, golden and blue hour for a lat/lon and date; handles polar day and night.","url":"https://sky-calc.x402tookit.com/rise-set-sun?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["lat","lon","date"],"properties":{"lat":{"type":"number","description":"Latitude, -90 to 90 (north positive)"},"lon":{"type":"number","description":"Longitude, -180 to 180 (east positive)"},"date":{"type":"string","description":"Local calendar date YYYY-MM-DD, 1900 to 2100"},"utc_offset_hours":{"type":"number","description":"Local UTC offset in hours, -12 to 14, default 0 (the date is then a UTC day)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"lat":{"type":["null","number"]},"lon":{"type":["null","number"]},"asOf":{"type":["null","string"]},"date":{"type":["null","string"]},"source":{"type":["null","string"]},"sunset":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"sunrise":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"verdict":{"type":["null","string"]},"accuracy":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"civilDawn":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"civilDusk":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"solarNoon":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"nauticalDawn":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"nauticalDusk":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"maxAltitudeDeg":{"type":["null","number"]},"utcOffsetHours":{"type":["null","number"]},"blueHourEvening":{"type":["null","object"],"properties":{"end":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"start":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}}}},"blueHourMorning":{"type":["null","object"],"properties":{"end":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"start":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}}}},"astronomicalDawn":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"astronomicalDusk":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"dayLengthMinutes":{"type":["null","number"]},"localDayStartUtc":{"type":["null","string"]},"goldenHourEvening":{"type":["null","object"],"properties":{"end":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"start":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}}}},"goldenHourMorning":{"type":["null","object"],"properties":{"end":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}},"start":{"type":["null","object"],"properties":{"utc":{"type":["null","string"]},"local":{"type":["null","string"]}}}}},"sunAltitudeAtLocalMidnightDeg":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1GNLF4LkdIwXpPYR5zncE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sunrise, sunset, solar noon, civil/nautical/astronomical twilights, and golden/blue hour times for a given latitude, longitude, and date, including polar day/night handling.","exampleAgentPrompt":"What time is sunrise, sunset, solar noon, and golden hour in Denver, Colorado (latitude 39.74, longitude -104.98) on July 4th 2025, using UTC-6?","exampleUseCases":[{"title":"Golden hour photography planning","prompt":"I'm doing a landscape shoot in Santorini (lat 36.46, lon 25.43) on August 10th 2025 — can you tell me exactly when golden hour and blue hour are, both morning and evening? I'm on UTC+3."},{"title":"Polar day/night check for Arctic trip","prompt":"I'm traveling to Tromsø, Norway (lat 69.65, lon 18.96) on December 15th 2025 — will there be any sunlight at all? If so, what are the sunrise and sunset times? We're on UTC+1."},{"title":"Civil twilight timing for outdoor event","prompt":"We're hosting an outdoor wedding ceremony in Sydney, Australia (lat -33.87, lon 151.21) on March 22nd 2026, UTC+11 — when does civil dusk start so we know when to turn on the lights?"}],"resultDescription":"A JSON object containing UTC and local times for sunrise, sunset, solar noon, civil dawn/dusk, nautical dawn/dusk, astronomical dawn/dusk, golden hour, and blue hour — plus a summary verdict, accuracy note, and flags for polar day or polar night conditions when applicable.","failureModes":["Invalid latitude or longitude (outside -90/90 or -180/180 range) returns an error","Date outside supported range 1900–2100 returns an error","Polar day or polar night condition — sun never rises or sets — returns a special verdict flag rather than times","Missing required parameters (lat, lon, date) returns a validation error","Extreme UTC offset values outside -12 to 14 return an error"],"whenToPreferThis":"Choose this endpoint when you need precise solar event times (sunrise, sunset, twilights, golden/blue hour) for any location and date, especially when polar conditions must be handled gracefully. It is preferable to generic weather APIs that only provide basic sunrise/sunset without twilight breakdowns, and to astronomy libraries when you need a simple HTTP call without running local code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T00:30:36.379Z","isFirstParty":false,"canonicalSlug":"sun-moon-and-planets-rise-set-twilight-calculator-a33d26c5"}