Real-time Streaming

Stream Sunrise/Sunset

Today + tomorrow sun events.

post/stream/sunrise-sunset

Request body

latitudenumber nullable required
longitudenumber nullable required
timezoneOffsetnumber nullable

Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC.

Response

Successful calculation

okboolean

Example response

{
  "ok": true
}

Changes

Changed in 2 of the 13 revisions of this API.216

    • added the optional property data/nextEventAt to the response with the 200 status

      response-optional-property-added

    • added the optional property data/nextEventKind to the response with the 200 status

      response-optional-property-added

    • added the optional property data/pricing to the response with the 200 status

      response-optional-property-added

    • added the optional property data/sseUpgrade to the response with the 200 status

      response-optional-property-added

    • added the optional property data/tickSeconds to the response with the 200 status

      response-optional-property-added

    • added the optional property data/timestamp to the response with the 200 status

      response-optional-property-added

    • added the optional property data/today/date to the response with the 200 status

      response-optional-property-added

    • added the optional property data/today/polarState to the response with the 200 status

      response-optional-property-added

    • added the optional property data/today/sunrise to the response with the 200 status

      response-optional-property-added

    • added the optional property data/today/sunset to the response with the 200 status

      response-optional-property-added

    • added the optional property data/today/warning to the response with the 200 status

      response-optional-property-added

    • added the optional property data/tomorrow/date to the response with the 200 status

      response-optional-property-added

    • added the optional property data/tomorrow/polarState to the response with the 200 status

      response-optional-property-added

    • added the optional property data/tomorrow/sunrise to the response with the 200 status

      response-optional-property-added

    • added the optional property data/tomorrow/sunset to the response with the 200 status

      response-optional-property-added

    • added the optional property data/transport to the response with the 200 status

      response-optional-property-added

    • the timezoneOffset request property's max was set to 14.00

      request-property-max-set

    • the timezoneOffset request property's min was set to -14.00

      request-property-min-set