Card type
sun_moon
Sunrise, sunset, daylight and moon phase for a place and date.
Version 1 · schema sun_moon.v1.schema.json
Layouts
Every card type has full. Pick a layout with the element's layout attribute, render.layout, or a theme.
Fields
The fields of card.data. Values a source doesn't provide are null; new optional fields can appear within version 1.
| Field | Type | Required | Notes |
|---|---|---|---|
location | object | yes | |
location.name | string | yes | |
location.timezone | string | yes | |
date | date | yes | ISO 8601 calendar date. |
local_time | HH:MM | yes | Time at the location when answered, so a renderer can place the sun. |
sun | object | yes | |
sun.rise | HH:MM | null | yes | null during polar night or day. |
sun.set | HH:MM | null | yes | |
sun.day_length_min | integer | yes | |
moon | object | yes | |
moon.phase | enum | yes | new · waxing_crescent · first_quarter · waxing_gibbous · full · waning_gibbous · last_quarter · waning_crescent |
moon.illumination_pct | number | yes | |
moon.next_full | date | yes | ISO 8601 calendar date. |
moon.next_new | date | yes | ISO 8601 calendar date. |
Example
A recorded answer to “When is sunset today?”. Open it in the Answer Lab to see every layout and style.
{
"v": 2,
"id": "ans_fi4rj7dsu6yyym5p",
"matched": true,
"locale": "en",
"skill": "sun_moon",
"confidence": 0.9,
"text": "Today the sun sets at 6:02 PM.",
"speech": "Today the sun sets at 6:02 PM.",
"card": {
"type": "sun_moon",
"version": 1,
"data": {
"location": {
"name": "51.05° N, 13.74° E",
"timezone": "Europe/Berlin"
},
"date": "2026-10-21",
"local_time": "14:00",
"sun": {
"rise": "07:36",
"set": "18:02",
"day_length_min": 626
},
"moon": {
"phase": "waxing_gibbous",
"illumination_pct": 77,
"next_full": "2026-10-26",
"next_new": "2026-11-09"
}
}
},
"sources": [
{
"name": "Calculated from date and location",
"url": null,
"license": null
}
],
"follow_ups": [],
"actions": [],
"usage": {
"billable": true
}
}