{"uid":"cap_ZTmSObfShV3TxbTFD7hOY","slug":"sitecheck-sun-moon-position-lookup-3c8f1a07","name":"SiteCheck Sun & Moon Position Lookup","description":"Sunrise, sunset, solar noon and day length for a coordinate and date (default today), with the moonrise, moonset and phase. Times are ISO 8601 with the offset MET Norway gives (+00:00 is UTC). Attribution: data from MET Norway (CC BY 4.0).","url":"https://api.sitecheck-api.workers.dev/api/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"],"properties":{"lat":{"type":"string","description":"Latitude, -90 to 90"},"lon":{"type":"string","description":"Longitude, -180 to 180"},"date":{"type":"string","description":"Date, YYYY-MM-DD (default today)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"lat":52.52,"lon":13.405,"sun":{"polar":null,"sunset":"2026-10-14T16:14+00:00","sunrise":"2026-10-14T05:29+00:00","solarNoon":"2026-10-14T10:52+00:00","dayLengthHours":10.75},"date":"2026-10-14","moon":{"phase":"waxing crescent","moonset":"2026-10-14T17:11+00:00","moonrise":"2026-10-14T10:20+00:00","phaseDegrees":38.41},"times":"ISO 8601 with the offset MET Norway gives (+00:00 is UTC)","source":"https://api.met.no/weatherapi/sunrise/3.0 (sun, moon). Data from MET Norway (CC BY 4.0)","checkedAt":"2026-10-14T07:00:46.216Z"}},"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_0Emq29Te7-GMfpfH66UXO","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, solar noon, day length, and moon phase/rise/set times for a given latitude/longitude and date","exampleAgentPrompt":"What time is sunrise and sunset in Berlin (52.52, 13.405) on October 14, 2026, and what moon phase will it be?","exampleUseCases":[{"title":"Golden hour photography planning","prompt":"When is sunrise and sunset in Santorini, Greece (36.39, 25.46) this Saturday? I want to plan outdoor shots around golden hour."},{"title":"Outdoor event scheduling by daylight","prompt":"How many hours of daylight will there be in Oslo (59.91, 10.75) on June 21st? I'm planning a summer solstice outdoor event."},{"title":"Lunar phase check for stargazing","prompt":"What moon phase and moonrise time should I expect at coordinates 35.68, 139.69 tonight? I want to know if conditions are good for stargazing."}],"resultDescription":"A JSON object containing: sunrise and sunset times in ISO 8601 format with UTC offset, solar noon time, day length in decimal hours, moon phase name (e.g. 'waxing crescent'), phase degrees, moonrise and moonset times, plus metadata including source attribution (MET Norway CC BY 4.0) and a checkedAt timestamp.","failureModes":["Missing lat or lon parameters returns a validation error","Latitude outside -90 to 90 or longitude outside -180 to 180 causes rejection","Invalid date format (not YYYY-MM-DD) may return an error or default to today","Polar regions during midnight sun or polar night return null for some sun fields","Upstream MET Norway API unavailability causes service failure"],"whenToPreferThis":"Choose this endpoint when you need accurate, per-coordinate sunrise/sunset/solar noon and moon phase data for any date and location worldwide. It is especially useful when you need both solar and lunar data in a single call. Backed by MET Norway (a trusted meteorological source), it is suitable for scheduling, photography planning, agricultural timing, or any use case requiring precise astronomical times at a geographic point.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:41:16.800Z","isFirstParty":false,"canonicalSlug":"sitecheck-sun-moon-position-lookup-3c8f1a07"}