ExchangeRate-API · Schema

PairResponse

Pair conversion response from ExchangeRate-API v6.

Currency ExchangeForeign ExchangeFinancial DataForexCurrency ConversionPublic APIs

Properties

Name Type Description
result string Status indicator.
documentation string Link to API documentation.
terms_of_use string Link to terms of use.
time_last_update_unix integer Last update Unix timestamp.
time_last_update_utc string Last update in UTC.
time_next_update_unix integer Next update Unix timestamp.
time_next_update_utc string Next update in UTC.
base_code string Supplied base currency.
target_code string Supplied target currency.
conversion_rate number Exchange rate between base and target.
conversion_result number Optional: converted amount when amount path parameter supplied.
View JSON Schema on GitHub

JSON Schema

exchangerate-api-pair-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PairResponse",
  "description": "Pair conversion response from ExchangeRate-API v6.",
  "type": "object",
  "properties": {
    "result": {
      "type": "string",
      "description": "Status indicator."
    },
    "documentation": {
      "type": "string",
      "format": "uri",
      "description": "Link to API documentation."
    },
    "terms_of_use": {
      "type": "string",
      "format": "uri",
      "description": "Link to terms of use."
    },
    "time_last_update_unix": {
      "type": "integer",
      "description": "Last update Unix timestamp."
    },
    "time_last_update_utc": {
      "type": "string",
      "description": "Last update in UTC."
    },
    "time_next_update_unix": {
      "type": "integer",
      "description": "Next update Unix timestamp."
    },
    "time_next_update_utc": {
      "type": "string",
      "description": "Next update in UTC."
    },
    "base_code": {
      "type": "string",
      "description": "Supplied base currency."
    },
    "target_code": {
      "type": "string",
      "description": "Supplied target currency."
    },
    "conversion_rate": {
      "type": "number",
      "description": "Exchange rate between base and target."
    },
    "conversion_result": {
      "type": "number",
      "description": "Optional: converted amount when amount path parameter supplied."
    }
  },
  "required": ["result", "base_code", "target_code", "conversion_rate"]
}