# Norges Bank Norway Exchange Rate API

> Norges Bank Norway Exchange Rate API is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns official Norwegian Krone (NOK) exchange rates from Norges Bank for a specified currency, with recent historical observations.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/finance/norges-bank-norway?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/norges-bank-norway-exchange-rate-api-f88f4a21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fxaQA3Knsib28w80CrSIe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability norges-bank-norway-exchange-rate-api-f88f4a21
```

Example prompt: What's the official Norges Bank exchange rate for USD to NOK? Give me the last 7 daily observations.

## When to prefer this

Choose this endpoint when you need authoritative, official Norwegian Krone exchange rate data sourced directly from Norges Bank — ideal for compliance, financial reporting, or any use case requiring a central bank reference rate. Prefer this over commercial FX APIs when official Norwegian government data is required. The pay-per-call model with no signup makes it suitable for infrequent or automated agent use.

## Known failure modes

- Invalid or unsupported currency code returns an error or empty rows
- Requesting more than 30 observations may be rejected or clamped
- Norges Bank data unavailable on weekends/holidays may result in gaps in the date series
- Payment failure via x402 means the call is not charged and no data is returned
- Malformed query parameters may result in a 400-level error

## How this service works

Norges Bank daily exchange rate of one foreign currency in NOK (NOK per 1 unit of the currency), from Norges Bank's SDMX-JSON data API. Last N observations; business days only.

## Output

A JSON object containing an array of dated NOK exchange rate observations (up to 30), each with a date and rateNok value, plus metadata: currency code, unit label (e.g. 'NOK per 1 USD'), source URL at Norges Bank, and a checkedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "last": {
       "type": "string",
       "description": "How many latest observations, 1 to 30 (default 5)"
      },
      "currency": {
       "type": "string",
       "description": "ISO 3 letter currency code, e.g. USD, EUR, GBP, SEK"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "date": "2026-10-16",
    "rateNok": 9.441
   },
   {
    "date": "2026-10-19",
    "rateNok": 9.4036
   }
  ],
  "unit": "NOK per 1 USD",
  "source": "https://data.norges-bank.no/api/data/EXR/B.USD.NOK.SP",
  "currency": "USD",
  "checkedAt": "2026-10-23T09:36:16.771Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/norges-bank-norway-exchange-rate-api-f88f4a21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
