{"uid":"cap_wn-EIvuqujrpxDdQi7kOb","slug":"agent-data-tools-sunrise-sunset-times-6304c73c","name":"Agent Data Tools: Sunrise & Sunset Times","description":"Sunrise, sunset, solar noon, civil dawn and dusk (UTC) and day length for any place and date, computed with the standard solar equations; handles polar day and night. No outside service. Use for photography, events and outdoor planning.","url":"https://agent-data-tools.revmesh2074.workers.dev/sun?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","description":"Latitude (-90 to 90)"},"lon":{"type":"number","description":"Longitude (-180 to 180)"},"date":{"type":"string","description":"Date (default today)"}}},"responseSchema":{"type":"object","properties":{"date":{"type":"string"},"polar":{},"sunset":{"type":"string"},"sunrise":{"type":"string"},"civilDawn":{"type":"string"},"civilDusk":{"type":"string"},"solarNoon":{"type":"string"},"dayLengthMinutes":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ekoXJFM9LvczI6KMRNaDB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sunrise, sunset, civil dawn/dusk, solar noon, and day length for a given geographic coordinate and optional date","exampleAgentPrompt":"What time does the sun rise and set at latitude 35.6895, longitude 139.6917 on December 21, 2026? Also give me the civil dawn and dusk times and total day length.","exampleUseCases":[{"title":"Golden hour photo shoot planning","prompt":"I'm shooting outdoors in Paris — latitude 48.8566, longitude 2.3522 — next Saturday December 21st. What time is sunrise and sunset, and when exactly is civil dawn? I want to plan my golden hour shots."},{"title":"Polar night detection for travel","prompt":"I'm visiting Tromsø, Norway, latitude 69.6496, longitude 18.9560, on January 10th. Is there actually a sunrise and sunset that day, or is it polar night? And how many minutes of daylight if any?"},{"title":"Automated solar schedule for smart home","prompt":"What is solar noon at my home coordinates — latitude 37.7749, longitude -122.4194 — today? I want to set my smart blinds to close at solar noon."}],"resultDescription":"A JSON object containing the date, UTC timestamps for sunrise, sunset, civil dawn, civil dusk, and solar noon, a dayLengthMinutes number indicating total daylight, and a polar field (null if normal day, otherwise indicating polar day or polar night).","failureModes":["Missing required lat or lon parameters returns an error","Latitude out of range (-90 to 90) or longitude out of range (-180 to 180) causes a validation error","Invalid date string format may cause a parse error or default to today","Payment failure via x402 results in no charge and no response","Extreme polar coordinates may return a polar flag with null sunrise/sunset"],"whenToPreferThis":"Choose this endpoint when you need precise solar event times (sunrise, sunset, civil dawn/dusk, solar noon) for any coordinate on Earth, especially when you want pay-per-call access with no API key or account setup. Prefer it over weather APIs when solar timing data is the primary need, or when building autonomous agent workflows that require programmatic access to daylight information.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:51.543Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-sunrise-sunset-times-6304c73c"}