Beauty & Personal Care · x402 · early usage

Convert an amount between two supported currencies using one validated ECB daily refere…

Convert an amount between two supported currencies using one validated ECB daily reference-rate observation. The underlying ECB statistics are available free from the ECB Data Portal; the fee covers bounded retrieval, validation, clearly labelled cross-rate c…

by apiacre.com · discovered, not yet claimed by its owner · updated 2026-10-11

30d calls4
30d payers4
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Convert an amount between two supported currencies using one validated ECB daily reference-rate observation. The underlying ECB statistics are available free from the ECB Data Portal; the fee covers bounded retrieval, validation, clearly labelled cross-rate calculation, and x402 delivery.

Tags: fx-rate · forex · currency-conversion · exchange-rate · ecb-reference-rate · bazaar · payment-identifier

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-11
Input example from Bazaar metadata
{
  "amount": "100",
  "base_currency": "GBP",
  "on_or_before": null,
  "quote_currency": "USD"
}
Output example
{
  "data": {
    "amount": "100",
    "baseCurrency": "GBP",
    "basis": {
      "basePerEur": "0.85585",
      "denomination": "EUR",
      "formula": "quotePerEur / basePerEur",
      "quotePerEur": "1.1576"
    },
    "convertedAmount": "135.2573465",
    "disclaimer": "Reference data only, not financial advice or a guarantee ...",
    "inverseRate": "0.739331375259",
    "limitations": [
      "ECB reference rates are usually published on TARGET busin...",
      "A converted amount is arithmetic evidence only; banks, ex...",
      "ECB observations can be revised, interrupted, or withdraw...",
      "Coverage is limited to the explicitly supported active EC..."
    ],
    "networkRequestsMade": 1,
    "quoteCurrency": "USD",
    "rate": "1.352573464976",
    "referenceDate": "2026-08-18",
    "referenceLagDays": 1,
    "requestedOnOrBefore": null,
    "retrievedAt": "2026-08-19T04:00:00+00:00",
    "source": {
      "dataset": "EXR daily euro foreign exchange reference rates",
      "provider": "European Central Bank",
      "requestUrl": "https://data-api.ecb.europa.eu/service/data/EXR/D.GBP+USD...",
      "seriesKeys": [
        "EXR.D.GBP.EUR.SP00.A",
        "EXR.D.USD.EUR.SP00.A"
      ]
    },
    "warnings": [
      "The latest common reference observation is 1 calendar day...",
      "API Acre derived this cross rate by dividing two unmodifi..."
    ]
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.ecb-fx-reference",
  "version": "1"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/27717.json for the price and payment options.
  3. Pay. Call GET https://apiacre.com/v1/data/ecb-fx-reference. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.002 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Solana
Demand
4 calls · 4 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0020xa0BFa4f07281c9b248DC3AED2217836BcA24869B300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.002B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xa0BFa4f07281c9b248DC3AED2217836BcA24869B",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "amountUsd": 0.002,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "amountUsd": 0.002,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "data": {
          "additionalProperties": false,
          "properties": {
            "amount": {
              "type": "string"
            },
            "baseCurrency": {
              "type": "string"
            },
            "basis": {
              "type": "object"
            },
            "convertedAmount": {
              "type": "string"
            },
            "disclaimer": {
              "type": "string"
            },
            "inverseRate": {
              "type": "string"
            },
            "limitations": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "networkRequestsMade": {
              "type": "integer"
            },
            "quoteCurrency": {
              "type": "string"
            },
            "rate": {
              "type": "string"
            },
            "referenceDate": {
              "type": "string"
            },
            "referenceLagDays": {
              "type": "integer"
            },
            "requestedOnOrBefore": {
              "type": [
                "string",
                "null"
              ]
            },
            "retrievedAt": {
              "type": "string"
            },
            "source": {
              "type": "object"
            },
            "warnings": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "baseCurrency",
            "quoteCurrency",
            "amount",
            "rate",
            "inverseRate",
            "convertedAmount",
            "referenceDate",
            "requestedOnOrBefore",
            "referenceLagDays",
            "basis",
            "source",
            "retrievedAt",
            "networkRequestsMade",
            "warnings",
            "limitations",
            "disclaimer"
          ],
          "type": "object"
        },
        "meta": {
          "properties": {
            "cached": {
              "type": "boolean"
            },
            "duration_ms": {
              "type": "integer"
            },
            "next_actions": {
              "items": {
                "type": "object"
              },
              "type": "array"
            },
            "sources": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "warnings": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "duration_ms",
            "cached",
            "sources",
            "warnings",
            "next_actions"
          ],
          "type": "object"
        },
        "request_id": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "request_id",
        "service",
        "version",
        "data",
        "meta"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "data": {
      "amount": "string",
      "baseCurrency": "string",
      "basis": {},
      "convertedAmount": "string",
      "disclaimer": "string",
      "inverseRate": "string",
      "limitations": [
        "string"
      ],
      "networkRequestsMade": 0,
      "quoteCurrency": "string",
      "rate": "string",
      "referenceDate": "string",
      "referenceLagDays": 0,
      "requestedOnOrBefore": "string",
      "retrievedAt": "string",
      "source": {},
      "warnings": [
        "string"
      ]
    },
    "meta": {
      "cached": true,
      "duration_ms": 0,
      "next_actions": [
        {}
      ],
      "sources": [
        "string"
      ],
      "warnings": [
        "string"
      ]
    },
    "request_id": "string",
    "service": "string",
    "version": "string"
  },
  "type": "string"
}

Examples

curl
curl -X POST 'https://apiacre.com/v1/data/ecb-fx-reference' -H 'Content-Type: application/json' --data '{"amount":"100","base_currency":"GBP","on_or_before":null,"quote_currency":"USD"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://apiacre.com/v1/data/ecb-fx-reference", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"amount\":\"100\",\"base_currency\":\"GBP\",\"on_or_before\":null,\"quote_currency\":\"USD\"}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://apiacre.com/v1/data/ecb-fx-reference", json=json.loads("{\"amount\":\"100\",\"base_currency\":\"GBP\",\"on_or_before\":null,\"quote_currency\":\"USD\"}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
apiacre.com
Endpoint
https://apiacre.com/v1/data/ecb-fx-reference
Machine-readable
/resources/27717.json