# Macro Data API – Currency Conversion via ECB Rates

> Macro Data API – Currency Conversion via ECB Rates is a paid API for AI agents from macro-data-api-313m.onrender.com, paid per call via x402, $0.011/call, status down (last checked 2026-10-30).

Converts a monetary amount from one currency to another using ECB euro reference rates for a specified or latest available date.

## Facts

- Endpoint: GET https://macro-data-api-313m.onrender.com/v1/convert?utm_source=zero.xyz
- Price: $0.011/call
- Payment: x402
- Status: down
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/macro-data-api-currency-conversion-via-ecb-rates-80abc3d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rJbCLIlEnN_i07LSBHJRq

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 macro-data-api-currency-conversion-via-ecb-rates-80abc3d6
```

Example prompt: Convert 500 USD to JPY using ECB euro reference rates for 2024-03-15.

## When to prefer this

Choose this endpoint when you need official, authoritative ECB euro reference rates for currency conversion — ideal for financial reporting, compliance, or reconciliation use cases where ECB rates are the standard. Prefer this over commercial FX APIs when reproducibility and official ECB sourcing are required. Also useful for historical conversions on a specific date.

## Known failure modes

- Unsupported or invalid ISO currency code returns an error
- Date with no ECB rate available (e.g. weekends, holidays) may return latest available or an error
- Non-numeric or missing amount parameter returns a validation error
- Rate data unavailable for very old historical dates

## How this service works

Converts an amount between two currencies using ECB euro reference rates for a date.

## Output

Returns the converted amount in the target currency, the applicable ECB euro reference exchange rate (including cross rate if neither currency is EUR), and the date of the rate used.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "amount",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "ISO currency code"
      },
      "date": {
       "type": "string",
       "description": "Optional date YYYY-MM-DD. Default: latest available."
      },
      "from": {
       "type": "string",
       "description": "ISO currency code"
      },
      "amount": {
       "type": "string",
       "description": "Amount to convert"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macro-data-api-currency-conversion-via-ecb-rates-80abc3d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from macro-data-api-313m.onrender.com](https://www.zero.xyz/host/macro-data-api-313m.onrender.com/llms.txt)
