Docs/Skills/Sunrise Sunset Skill

Sunrise Sunset Skill

Get sunrise and sunset times

OperationalCredits 2 per callp50 201msWeather

Overview

A sunrise and sunset times API that works like a sunrise sunset calculator for any coordinates: get sunset time, dawn, dusk and golden hour in one call. Sunrise Sunset works by calculating the sunrise and sunset times based on the location and date provided. It returns the sunrise and sunset times in UTC in a structured format. Pass local=true to get the IANA timezone of the coordinates on any plan, and on paid plans every time again as local ISO 8601 with its UTC offset, daylight saving included, so no separate timezone lookup is needed.

Live Test Sunrise Sunset Skill Skill →

The tool

Once your client is connected to the VerveKit server, this appears in its tool list as SunriseSunsetSkill. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.

Tool call
{
  "name": "SunriseSunsetSkill",
  "arguments": {
    "lat": "36.72016",
    "lon": "-4.42034"
  }
}

You do not name the tool yourself; the model picks it. Asking about 36.72016 in the terms this skill covers is enough for it to reach for SunriseSunsetSkill on its own — naming it explicitly also works, and is the way to force the call.

Connecting

One server URL covers every skill in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.

{
  "mcpServers": {
    "vervekit": {
      "url": "https://api.vervekit.com/v1/mcp"
    }
  }
}

Per-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.

Arguments

These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.

ArgumentTypeDescription
latRequirednumberThe latitude of the location
range -90–90
lonRequirednumberThe longitude of the location
range -180–180
dateOptionalPremiumstringThe date for which you want to get the sunrise and sunset times (e.g., MM-DD-YYYY : 01-01-2022)
date
localOptionalbooleanAlso return the timezone of the coordinates and every time in local time
timezone

What the model gets back

The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.

Result
{
  "status": "ok",
  "error": null,
  "data": {
    "solarNoon": "2026-01-16T12:28:27.256Z",
    "sunrise": "2026-01-16T07:30:14.174Z",
    "sunset": "2026-01-16T17:26:40.338Z",
    "sunriseEnd": "2026-01-16T07:33:11.786Z",
    "sunsetStart": "2026-01-16T17:23:42.726Z",
    "dawn": "2026-01-16T07:02:03.459Z",
    "dusk": "2026-01-16T17:54:51.053Z",
    "nauticalDawn": "2026-01-16T06:30:17.010Z",
    "nauticalDusk": "2026-01-16T18:26:37.502Z",
    "nightEnd": "2026-01-16T05:59:14.883Z",
    "night": "2026-01-16T18:57:39.629Z",
    "goldenHourEnd": "2026-01-16T08:09:09.341Z",
    "goldenHour": "2026-01-16T16:47:45.171Z",
    "timezone": "Europe/Madrid",
    "localTimes": {
      "solarNoon": "2026-01-16T13:28:27+01:00",
      "sunrise": "2026-01-16T08:30:14+01:00",
      "sunset": "2026-01-16T18:26:40+01:00",
      "sunriseEnd": "2026-01-16T08:33:11+01:00",
      "sunsetStart": "2026-01-16T18:23:42+01:00",
      "dawn": "2026-01-16T08:02:03+01:00",
      "dusk": "2026-01-16T18:54:51+01:00",
      "nauticalDawn": "2026-01-16T07:30:17+01:00",
      "nauticalDusk": "2026-01-16T19:26:37+01:00",
      "nightEnd": "2026-01-16T06:59:14+01:00",
      "night": "2026-01-16T19:57:39+01:00",
      "goldenHourEnd": "2026-01-16T09:09:09+01:00",
      "goldenHour": "2026-01-16T17:47:45+01:00"
    }
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
solarNoonPremiumstring2026-01-16T12:28:27.256ZSolar noon time
sunrisestring2026-01-16T07:30:14.174ZSunrise time in ISO 8601 format
sunsetstring2026-01-16T17:26:40.338ZSunset time in ISO 8601 format
sunriseEndstring2026-01-16T07:33:11.786ZMoment the sun's disc has fully cleared the horizon, in UTC
sunsetStartstring2026-01-16T17:23:42.726ZMoment the sun's disc first touches the horizon at sunset, in UTC
dawnstring2026-01-16T07:02:03.459ZStart of civil twilight, when the sun is 6 degrees below the horizon
duskstring2026-01-16T17:54:51.053ZEnd of civil twilight, when the sun drops 6 degrees below the horizon
nauticalDawnstring2026-01-16T06:30:17.010ZStart of nautical twilight, when the sun is 12 degrees below the horizon
nauticalDuskstring2026-01-16T18:26:37.502ZEnd of nautical twilight, when the sun drops 12 degrees below the horizon
nightEndstring2026-01-16T05:59:14.883ZEnd of astronomical night, when the sun rises above 18 degrees below the horizon
nightstring2026-01-16T18:57:39.629ZStart of astronomical night, when the sun drops 18 degrees below the horizon
goldenHourEndstring2026-01-16T08:09:09.341ZEnd of the morning golden hour, when soft low-angle light gives way to daylight
goldenHourstring2026-01-16T16:47:45.171ZStart of the evening golden hour, when the light turns soft and low-angle
timezonestringEurope/MadridWith local=true, the IANA timezone of the coordinates
localTimesPremiumobject{…}With local=true, every time above as local ISO 8601 with its UTC offset, null where the sun never reaches that point
localTimes.solarNoonPremiumstring2026-01-16T13:28:27+01:00Solar noon time
localTimes.sunrisePremiumstring2026-01-16T08:30:14+01:00Sunrise time in ISO 8601 format
localTimes.sunsetPremiumstring2026-01-16T18:26:40+01:00Sunset time in ISO 8601 format
localTimes.sunriseEndPremiumstring2026-01-16T08:33:11+01:00Moment the sun's disc has fully cleared the horizon, in UTC
localTimes.sunsetStartPremiumstring2026-01-16T18:23:42+01:00Moment the sun's disc first touches the horizon at sunset, in UTC
localTimes.dawnPremiumstring2026-01-16T08:02:03+01:00Start of civil twilight, when the sun is 6 degrees below the horizon
localTimes.duskPremiumstring2026-01-16T18:54:51+01:00End of civil twilight, when the sun drops 6 degrees below the horizon
localTimes.nauticalDawnPremiumstring2026-01-16T07:30:17+01:00Start of nautical twilight, when the sun is 12 degrees below the horizon
localTimes.nauticalDuskPremiumstring2026-01-16T19:26:37+01:00End of nautical twilight, when the sun drops 12 degrees below the horizon
localTimes.nightEndPremiumstring2026-01-16T06:59:14+01:00End of astronomical night, when the sun rises above 18 degrees below the horizon
localTimes.nightPremiumstring2026-01-16T19:57:39+01:00Start of astronomical night, when the sun drops 18 degrees below the horizon
localTimes.goldenHourEndPremiumstring2026-01-16T09:09:09+01:00End of the morning golden hour, when soft low-angle light gives way to daylight
localTimes.goldenHourPremiumstring2026-01-16T17:47:45+01:00Start of the evening golden hour, when the light turns soft and low-angle

Failure modes

Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This skill is not part of VerveKit. Check the catalog.
429Out of credits, or a brief rate limit. The message tells them apart.

A call costs 2 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.

Use cases

Golden Hour Photography
Camera apps check golden hour start and civil twilight times to alert photographers when optimal natural lighting begins.
Municipal Lighting Automation
Smart lighting controllers switch streetlights and architectural fixtures on at sunset and off at dawn based on coordinate lookups.
Visual Flight Dispatch
Before dispatching visual flight rules flights, aviation platforms check nautical dawn and dusk to verify legal daylight operating hours.
Agricultural Spray Scheduling
To schedule field treatments during cooler periods, farm management systems use sunrise and dusk timestamps to plan early morning passes.

Other ways to use Sunrise Sunset Skill

Set up Sunrise Sunset Skill on VerveKit, or reach the same source a different way. Your VerveKit account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Weather:

Was this page helpful?