{"uid":"cap__j_UBSov-fB9Yg3NISloM","slug":"coco-sun-times-api-d5a6d4bb","name":"CoCo Sun Times API","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/sun?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"tz":{"type":"string"},"lat":{"type":"string"},"lon":{"type":"string"},"date":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["date"],"properties":{"date":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"date":"2026-10-18","dawn":"2026-10-18T11:43:40.034069+00:00","dusk":"2026-10-18T23:44:19.763945+00:00","noon":"2026-10-18T17:44:25+00:00","sunset":"2026-10-18T23:17:19.613313+00:00","sunrise":"2026-10-18T12:10:41.658582+00:00","timezone":"UTC","daylight_hours":11.11},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_LhQ76YuQ0Aqc3a0bcJUC8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sunrise, sunset, dawn, dusk, solar noon, and total daylight hours for a given location and date","exampleAgentPrompt":"What time does the sun rise and set in Denver, Colorado (latitude 39.7392, longitude -104.9903) on November 15, 2025, using the America/Denver timezone?","exampleUseCases":[{"title":"Outdoor photography golden hour planning","prompt":"I'm doing a landscape shoot at latitude 36.1069, longitude -112.1129 (Grand Canyon) on March 21, 2026 — can you tell me the exact sunrise, sunset, dawn, and dusk times in America/Phoenix timezone so I know when to be in position?"},{"title":"Solar energy production estimate setup","prompt":"For a solar panel site at latitude 51.5074, longitude -0.1278 in London, what are the daylight hours and solar noon time on June 21, 2025 using the Europe/London timezone?"},{"title":"Travel itinerary daylight awareness","prompt":"We're visiting Reykjavik, Iceland — latitude 64.1355, longitude -21.8954 — on December 10, 2025. Can you get me the sunrise, sunset times and total daylight hours for that day in the Atlantic/Reykjavik timezone?"}],"resultDescription":"A JSON object containing the date, dawn, sunrise, solar noon, sunset, dusk times as ISO 8601 timestamps with timezone offset, the timezone string, and total daylight_hours as a decimal number.","failureModes":["Missing required query parameters (lat, lon, date) returns an error","Invalid latitude or longitude values may produce incorrect or no results","Unrecognized timezone string may default to UTC or return an error","Out-of-range date values may cause computation failure","Network or server errors return non-2xx HTTP status"],"whenToPreferThis":"Choose this endpoint when you need precise, computed solar event times (sunrise, sunset, dawn, dusk, solar noon) and daylight duration for any geographic coordinate and date. It is ideal for planning outdoor activities, photography, scheduling, or solar energy calculations when you need offline-computed, stable results rather than real-time weather data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:42:34.290Z","isFirstParty":false,"canonicalSlug":"coco-sun-times-api-d5a6d4bb"}