# MET Norway API

> Returns hourly forecasts, nowcasts, sun and moon times, weather warnings and ocean forecasts for a point.

Category: Travel, Maps & Weather. Region: NO. 7 endpoints at `https://api.hoshime.com/v1/metno/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/metno
## GET /v1/metno/forecast

Hourly weather forecast of a point: temperature, wind, humidity, cloud and rain.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9139) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7522) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `items` (Step[]), `items[].airTemperatureCelsius` (number (double)), `items[].cloudCoverPct` (number (double)), `items[].precipitationMm` (number (double)), `items[].relativeHumidity` (number (double)), `items[].startsAt` (string), `items[].symbol` (string), `items[].windFromDeg` (number (double)), `items[].windSpeedMs` (number (double)), `latitude` (number (double)), `longitude` (number (double)), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/metno/forecast?lat=59.9139&lon=10.7522" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/metno/nowcast

Short-range forecast for the next two hours (5-minute steps) for a point in Nordic areas.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9139) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7522) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `items` (Step[]), `items[].airTemperatureCelsius` (number (double)), `items[].cloudCoverPct` (number (double)), `items[].precipitationMm` (number (double)), `items[].relativeHumidity` (number (double)), `items[].startsAt` (string), `items[].symbol` (string), `items[].windFromDeg` (number (double)), `items[].windSpeedMs` (number (double)), `latitude` (number (double)), `longitude` (number (double)), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/metno/nowcast?lat=59.9139&lon=10.7522" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/metno/sun

Sunrise, sunset and solar noon of a point on a date.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9139) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7522) |
| `date` | string | no | Date, YYYY-MM-DD. Defaults to today (UTC). (e.g. 2024-06-21) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string), `solarMidnight` (string), `solarNoon` (string), `sunrise` (string), `sunset` (string)

```bash
curl "https://api.hoshime.com/v1/metno/sun?lat=59.9139&lon=10.7522&date=2024-06-21" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/metno/moon

Moonrise, moonset, the highest and lowest moon and the moon phase of a point on a date.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9139) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7522) |
| `date` | string | no | Date, YYYY-MM-DD. Defaults to today (UTC). (e.g. 2024-06-21) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `date` (string), `highMoon` (string), `lowMoon` (string), `moonrise` (string), `moonset` (string), `phaseDegrees` (number (double))

```bash
curl "https://api.hoshime.com/v1/metno/moon?lat=59.9139&lon=10.7522&date=2024-06-21" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/metno/alerts

Current weather warnings (yellow, orange, red) for a point in Norway, from MET Norway's metalerts.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9139) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7522) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `area` (string), `certainty` (string), `description` (string), `endsAt` (string), `event` (string), `id` (string), `instruction` (string), `level` (string), `severity` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/metno/alerts?lat=59.9139&lon=10.7522" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/metno/ocean

Sea forecast of a point: wave height and direction, sea temperature and current, hourly.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `items` (SeaStep[]), `items[].currentSpeedMs` (number (double)), `items[].currentToDeg` (number (double)), `items[].seaTemperatureCelsius` (number (double)), `items[].startsAt` (string), `items[].waveFromDeg` (number (double)), `items[].waveHeightMeters` (number (double)), `latitude` (number (double)), `longitude` (number (double))

```bash
curl "https://api.hoshime.com/v1/metno/ocean?lat=59.9&lon=10.7" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/metno/airQuality

Hourly air quality forecast of a point in Norway: the air quality index and NO2, O3, PM10 and PM2.5.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude, -90 to 90. (e.g. 59.9139) |
| `lon` | string | yes | Longitude, -180 to 180. (e.g. 10.7522) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `items` (AirQualityHour[]), `items[].index` (number (double)), `items[].no2` (number (double)), `items[].o3` (number (double)), `items[].pm10` (number (double)), `items[].pm25` (number (double)), `items[].startsAt` (string), `location` (string)

```bash
curl "https://api.hoshime.com/v1/metno/airQuality?lat=59.9139&lon=10.7522" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
