{
  "x402Version": 2,
  "id": 36001,
  "slug": "36001",
  "resource": "https://offercheck.offercheck.workers.dev/v1/fx",
  "description": "Convert between 30 major currencies (USD, EUR, GBP, JPY, CHF, CNY, INR, ILS, AUD, CAD, ...) using the European Central Bank's daily reference rates: rate and converted amount for one or many target currencies, optional historical date back to 1999. Returns the ECB rate date and source. $0.002 per call.",
  "type": "http",
  "serviceName": "offercheck",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB9721FDD2EC85F7f604F5BBcA2292d7C4ff6B62c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "amount": "100",
            "from": "USD",
            "to": "EUR,GBP"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "amount": 100,
            "date": "2026-09-25",
            "fetched_at": "2026-09-25T20:00:00.000Z",
            "from": "USD",
            "ms": 95,
            "rates": {
              "EUR": {
                "converted": 87.696,
                "rate": 0.87696
              },
              "GBP": {
                "converted": 75.458,
                "rate": 0.75458
              }
            },
            "source": "European Central Bank euro foreign exchange reference rates (published once per business day ~16:00 CET) via frankfurter.dev; non-EUR pairs are cross rates through EUR",
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "amount": {
                    "default": "1",
                    "description": "Amount in the base currency to convert, as a decimal number string, e.g. \"100\" (default 1). Query parameters are strings, so the Coinbase Bazaar validator rejects a numeric type here.",
                    "pattern": "^[0-9]+(\\.[0-9]+)?$",
                    "type": "string"
                  },
                  "date": {
                    "description": "Optional historical date YYYY-MM-DD (ECB business days from 1999-01-04); omit for the latest rates",
                    "type": "string"
                  },
                  "from": {
                    "default": "USD",
                    "description": "Base currency, ISO 4217 code (default USD)",
                    "type": "string"
                  },
                  "to": {
                    "default": "EUR",
                    "description": "Target currency or comma-separated list (default EUR); any of the 30 ECB currencies",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "finance",
    "fx",
    "exchange-rate",
    "currency",
    "crypto",
    "bazaar"
  ],
  "sourceHost": "offercheck.offercheck.workers.dev",
  "lastUpdated": "2026-10-11T08:18:35.738Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-11T08:18:35.494Z"
  },
  "metadata": {
    "serviceName": "offercheck",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "amount": "100",
              "from": "USD",
              "to": "EUR,GBP"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "amount": 100,
              "date": "2026-09-25",
              "fetched_at": "2026-09-25T20:00:00.000Z",
              "from": "USD",
              "ms": 95,
              "rates": {
                "EUR": {
                  "converted": 87.696,
                  "rate": 0.87696
                },
                "GBP": {
                  "converted": 75.458,
                  "rate": 0.75458
                }
              },
              "source": "European Central Bank euro foreign exchange reference rates (published once per business day ~16:00 CET) via frankfurter.dev; non-EUR pairs are cross rates through EUR",
              "warnings": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "amount": {
                      "default": "1",
                      "description": "Amount in the base currency to convert, as a decimal number string, e.g. \"100\" (default 1). Query parameters are strings, so the Coinbase Bazaar validator rejects a numeric type here.",
                      "pattern": "^[0-9]+(\\.[0-9]+)?$",
                      "type": "string"
                    },
                    "date": {
                      "description": "Optional historical date YYYY-MM-DD (ECB business days from 1999-01-04); omit for the latest rates",
                      "type": "string"
                    },
                    "from": {
                      "default": "USD",
                      "description": "Base currency, ISO 4217 code (default USD)",
                      "type": "string"
                    },
                    "to": {
                      "default": "EUR",
                      "description": "Target currency or comma-separated list (default EUR); any of the 30 ECB currencies",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "offercheck.offercheck.workers.dev",
    "manifest_name": "offercheck.offercheck.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}