{"uid":"cap_LuHZ3RkCkrGDLe19zTdXg","slug":"solar-times-twilight-calculator-by-coordinates-a9970360","name":"Solar Times & Twilight Calculator by Coordinates","description":"Sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for coordinates and a date, in local time (zone detected from coordinates). Local astronomical calculation; handles polar night and midnight sun.","url":"https://api.vextorium.com/sol-horarios-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["lat","lon"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"},"zona":{"type":"string"},"fecha":{"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"nota":{"type":["string","null"]},"zona":{"type":["string","null"]},"fecha":{"type":["string","null"]},"puesta":{"type":["string","null"]},"salida":{"type":["string","null"]},"duracion_dia":{"type":["string","null"]},"mediodia_solar":{"type":["string","null"]},"crepusculo_civil":{"type":["object","null"],"properties":{"amanece":{"type":["string","null"]},"anochece":{"type":["string","null"]}}},"crepusculo_nautico":{"type":["object","null"],"properties":{"amanece":{"type":["string","null"]},"anochece":{"type":["string","null"]}}},"crepusculo_astronomico":{"type":["object","null"],"properties":{"amanece":{"type":["string","null"]},"anochece":{"type":["string","null"]}}}}}}}}},"responseSchema":{"type":"json","example":{"lat":40.4168,"lon":-3.7038,"nota":"Precisión de ±1-2 minutos (algoritmo del Almanaque Náutico).","zona":"Europe/Madrid","fecha":"2026-10-02","puesta":"19:56","salida":"08:11","duracion_dia":"11 h 44 min","mediodia_solar":"14:03","crepusculo_civil":{"amanece":"07:44","anochece":"20:23"},"crepusculo_nautico":{"amanece":"07:13","anochece":"20:54"},"crepusculo_astronomico":{"amanece":"06:41","anochece":"21:26"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4yQ5e34AF7miVMz_vB0jA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns sunrise, sunset, solar noon, day length, and civil/nautical/astronomical twilight times for a given latitude/longitude and date, in the local timezone auto-detected from coordinates.","exampleAgentPrompt":"What are the sunrise, sunset, and all twilight times for coordinates 40.4168, -3.7038 on October 2nd, 2026? I also need the day length and solar noon.","exampleUseCases":[{"title":"Outdoor photography golden hour planning","prompt":"I'm shooting landscapes near lat 51.5, lon -0.12 (London area) on March 15th — what time is sunrise, sunset, and when does civil twilight start and end so I can catch the golden hour?"},{"title":"Polar region daylight check","prompt":"I need to know if there will be polar night or normal daylight at lat 70.0, lon 25.0 (northern Norway) on December 21st, and if so, what are the sunrise and sunset times?"},{"title":"Nautical navigation twilight window","prompt":"For our boat's position at lat -33.86, lon 151.21 on July 10th, can you give me the nautical and astronomical twilight times so we know our safe navigation window before and after darkness?"}],"resultDescription":"A JSON object containing: sunrise and sunset times, solar noon, day length (hours and minutes), civil twilight start/end, nautical twilight start/end, astronomical twilight start/end — all in local time for the auto-detected or provided timezone. Also returns the echo of coordinates, date, timezone, and a precision note (±1-2 minutes accuracy via Nautical Almanac algorithm). Null values are returned for polar night or midnight sun conditions with an explanatory note.","failureModes":["Missing required lat or lon fields returns a validation error","Invalid coordinate values (out of -90/90 or -180/180 range) may return error or unexpected results","Unsupported or malformed date string (fecha) may return an error","Polar night or midnight sun conditions return null for affected fields with a descriptive nota field","Incorrect bodyType setting may result in unparsed body","Network or payment-related failures return no solar data"],"whenToPreferThis":"Choose this endpoint when you need precise, locally-time-corrected solar event calculations (sunrise, sunset, twilight phases) for any global coordinate pair without relying on an external timezone database — timezone is auto-detected from coordinates. Especially valuable for polar regions where midnight sun and polar night handling is built in. Prefer over general weather APIs when you specifically need astronomical solar timing rather than weather forecasts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:41.086Z","isFirstParty":false,"canonicalSlug":"solar-times-twilight-calculator-by-coordinates-a9970360"}