Sunrise Sunset
SunriseSunsetSunrise Sunset: Sunrise Sunset calculates exact sunrise and sunset times, twilight stages, and golden hour windows for any latitude and longitude coordinates. Paid plans can specify custom dates and receive solar noon. With local=true, the response names the IANA timezone of the coordinates on any plan, and paid plans also get each time in local time with its UTC offset. (Cost: 2 credits)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "SunriseSunset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | The latitude of the location | |
| lon | Yes | The longitude of the location | |
| date | No | The date for which you want to get the sunrise and sunset times (e.g., MM-DD-YYYY : 01-01-2022) | |
| local | No | Also return the timezone of the coordinates and every time in local time |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |