Skip to content
Eden Engine

Sunrise, Sunset and Solar Noon for a Location and Date (MET Norway)

metno/sun-times

Sun events for one date at any point on Earth from the Norwegian Meteorological Institute (MET Norway): sunrise and sunset with their azimuth, solar noon and solar midnight with the sun's elevation and whether it is visible. The date defaults to today. Times are UTC unless a UTC offset such as +01:00 is given. Near the poles a sunrise or sunset has null time and azimuth. Returned as the service's own GeoJSON feature. MET Norway data under CC BY 4.0, passed through unmodified and served by Eden Engine; not an official MET Norway product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

MET Norway

Data from MET Norway (Norwegian Meteorological Institute), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), passed through unmodified. Served by Eden Engine; not an official MET Norway product.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "metno/sun-times" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "metno/sun-times" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "metno/sun-times", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "metno/sun-times", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "latitude",
    "longitude"
  ],
  "properties": {
    "date": {
      "type": "string",
      "format": "date",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "The date as YYYY-MM-DD, a real calendar date, for example 2026-10-20. Leave out for today."
    },
    "offset": {
      "type": "string",
      "pattern": "^([+](0[0-9]|1[0-5])|[-](0[0-9]|1[0-2])):[0-5][0-9]$",
      "description": "Optional UTC offset for the returned times, +HH:MM or -HH:MM from -12:00 to +15:00, for example +01:00 for Oslo in winter. Leave out for UTC."
    },
    "latitude": {
      "type": "number",
      "maximum": 90,
      "minimum": -90,
      "description": "Latitude in decimal degrees, north positive (Oslo is 59.9)."
    },
    "longitude": {
      "type": "number",
      "maximum": 180,
      "minimum": -180,
      "description": "Longitude in decimal degrees, east positive (Oslo is 10.7)."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "type",
    "geometry",
    "when",
    "properties"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "Always Feature."
    },
    "when": {
      "type": "object",
      "description": "`interval`: the start and end of the mean solar day the events belong to (UTC).",
      "additionalProperties": true
    },
    "geometry": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "coordinates": {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      },
      "additionalProperties": true
    },
    "copyright": {
      "type": "string",
      "description": "The data's copyright holder, MET Norway."
    },
    "licenseURL": {
      "type": "string",
      "description": "Where the data licence is published."
    },
    "properties": {
      "type": "object",
      "required": [
        "body"
      ],
      "properties": {
        "body": {
          "type": "string",
          "description": "Sun."
        },
        "sunset": {
          "type": [
            "object",
            "null"
          ],
          "description": "`time` and `azimuth` in degrees; both null when the sun does not set.",
          "additionalProperties": true
        },
        "sunrise": {
          "type": [
            "object",
            "null"
          ],
          "description": "`time` and `azimuth` in degrees; both null when the sun does not rise.",
          "additionalProperties": true
        },
        "solarnoon": {
          "type": [
            "object",
            "null"
          ],
          "description": "`time`, `disc_centre_elevation` in degrees and `visible`.",
          "additionalProperties": true
        },
        "solarmidnight": {
          "type": [
            "object",
            "null"
          ],
          "description": "`time`, `disc_centre_elevation` in degrees and `visible`.",
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    }
  },
  "description": "A GeoJSON feature for the sun on the requested day, with MET Norway's `copyright` and `licenseURL`.",
  "additionalProperties": true
}