Sun & Moon Tracker

Sun & Moon times

Explore the sky, one request at a time.

JSON + iCalendar

API reference

GET/times

Query parameters

Response guide

    Errors, timezones & compatibility

    Existing fields and nesting are preserved. Blank optional fields use the documented defaults. Invalid values return an error; missing astronomical events return nulls or empty arrays. Location-based dates use the detected timezone. New range ends are exclusive. Skyfield calculations support 1900–2052; the entire search window must fit.

    New endpoints return HTTP 400 with error and code fields for invalid parameters. Existing endpoints retain their 400/422 validation behavior. Longitude aliases lon and long are accepted, with lng taking precedence.

    Request builder

    ⌘ / Ctrl + Enter to send
    GET

    Response · Ready

    Your next discovery starts here.

    Choose an endpoint, adjust the parameters, and send a request. The actual API response will appear here.

    No request sentRequests run only when you press Send