{"uid":"cap_GxJ9DFh-SkelvZJB9-Ow0","slug":"saylor-innovations-sunrise-sunset-twilight-moon-phase-api-be2ecac2","name":"Saylor Innovations Sunrise, Sunset, Twilight & Moon Phase API","description":"Sunrise, Sunset, Twilight & Moon Phase for Any Place/Date — Science","url":"https://saylorinnovations.com/api/sun/times?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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{"lat":{"type":"string","description":"latitude (query)"},"lon":{"type":"string","description":"longitude (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["sun","moon"],"properties":{"sun":{"type":"object"},"moon":{"type":"object"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KuD87WC8yFn7MYYVDMsnr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sunrise, sunset, solar noon, day length, civil/nautical/astronomical twilight times, moon phase, illumination percentage, and next full/new moon dates for any geographic coordinates and date.","exampleAgentPrompt":"What time is sunrise, sunset, and civil twilight at coordinates 48.8566° N, 2.3522° E (Paris) on July 14, 2025, and what's the moon phase that night?","exampleUseCases":[{"title":"Golden hour photography planning","prompt":"I'm shooting landscape photos at 36.1069° N, 112.1129° W (Grand Canyon) on September 21, 2025 — can you tell me the exact sunrise and sunset times, plus civil twilight windows so I know when golden hour starts and ends?"},{"title":"Camping trip moon visibility check","prompt":"We're camping at 44.4280° N, 110.5885° W (Yellowstone) on August 10, 2025 — will the moon be full or nearly full that night, and how much of it will be illuminated? I want to know if we'll have good natural light after dark."},{"title":"Polar region day length research","prompt":"What are the sunrise and sunset times, and total day length, at 71.1704° N, 25.9842° E (Nordkapp, Norway) on June 21, 2025? I need to know if it's experiencing polar day."}],"resultDescription":"A JSON object with two top-level keys: 'sun' containing sunrise, sunset, solar noon, day length, and civil/nautical/astronomical twilight start and end times for the given coordinates and date (including polar day/night handling); and 'moon' containing the current moon phase name, illumination percentage, and dates of the next full and new moon.","failureModes":["Missing required lat/lon parameters returns an error","Invalid coordinate values (out of range) may return an error or unexpected results","Date format issues may cause computation failure","Polar locations may return null for sunrise/sunset when polar day or polar night applies — this is expected behavior, not a bug"],"whenToPreferThis":"Choose this endpoint when you need precise solar event times (sunrise, sunset, twilight windows) or lunar data (phase, illumination, upcoming full/new moon) for any arbitrary coordinates and date. It handles edge cases like polar day and polar night, making it more robust than many alternatives. Ideal for photography planning, outdoor activity scheduling, navigation, religious observance timing, and any geospatial or astronomical application.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:55:24.841Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-sunrise-sunset-twilight-moon-phase-api-be2ecac2"}