{"uid":"cap_0teZ-spY1uvfsWCNBo33q","slug":"aviationapis-airport-sun-times-1f4ca33d","name":"AviationAPIs Airport Sun Times","description":"Pay-per-call aviation data APIs for AI agents, settled in USDC via the x402 protocol.","url":"https://aviationapis.com/airport-sun-times","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude in decimal degrees"},"lon":{"type":"number","description":"Longitude in decimal degrees"},"date":{"type":"string","description":"UTC date YYYY-MM-DD (optional; defaults to today)"}}},"responseSchema":{"type":"json","example":{"lat":37.6188,"lon":-122.375,"date":"2026-06-02","sunset":"2026-06-03T03:23:00.000Z","sunrise":"2026-06-02T12:48:00.000Z","solar_noon":"2026-06-02T20:05:00.000Z","day_length_hours":14.58,"civil_twilight_end":"2026-06-03T03:52:00.000Z","civil_twilight_begin":"2026-06-02T12:19:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_bDv90jNU6o1iSjp-L8AQ_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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, and civil twilight times for a geographic coordinate and date","exampleAgentPrompt":"What are the sunrise and sunset times at SFO (latitude 37.6188, longitude -122.375) on June 2nd, 2026, including civil twilight and total daylight hours?","exampleUseCases":[{"title":"Sunrise time for airport departure","prompt":"I have an early morning flight departing from Denver International Airport (latitude 39.8561, longitude -104.6737) tomorrow, March 15th, 2025. What time does the sun rise there, and when does civil twilight begin so I can plan my drive to the airport before dawn?"},{"title":"Daylight hours for outdoor photography","prompt":"I'm planning a landscape photography shoot at Yosemite Valley (latitude 37.7456, longitude -119.5936) on July 4th, 2025. Can you tell me the total hours of daylight, exact sunrise and sunset times, and when civil twilight ends so I know how long I have for golden hour shots?"},{"title":"Solar noon for pilot navigation planning","prompt":"Our flight crew needs to know the exact solar noon time and civil twilight window at London Heathrow (latitude 51.4775, longitude -0.4614) on December 21st, 2025 — the winter solstice — so we can plan cockpit sun shield usage and low-sun approach procedures. Can you pull those solar event times?"}],"resultDescription":"A JSON object with the queried latitude, longitude, and date, plus UTC timestamps for sunrise, sunset, and solar noon, total day length in hours, and UTC timestamps for civil twilight begin and civil twilight end.","failureModes":["Missing or invalid latitude/longitude returns an error response","Date in wrong format (not YYYY-MM-DD) may cause a validation error","Coordinates outside valid range (-90 to 90 lat, -180 to 180 lon) may return an error","Payment failure via x402 protocol returns 402 status with no data","Network timeout for remote coordinate lookups"],"whenToPreferThis":"Choose this endpoint when you need precise solar event times (sunrise, sunset, solar noon, twilight) for any geographic coordinate, especially for aviation or outdoor planning. It is ideal when you have a lat/lon rather than a named location and need UTC-accurate sun times for a specific date. Prefer this over general weather APIs that do not provide civil twilight or solar noon data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:40:32.529Z","isFirstParty":false}