{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-bitcoin-response-schema.json",
  "title": "BitcoinResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-bitcoin-api-openapi.yml#/components/schemas/BitcoinResponse",
  "type": "object",
  "properties": {
    "price": {
      "type": "string",
      "description": "The price of Bitcoin in USD. Live on paid plans; on the free plan it is the close of the last completed hour."
    },
    "timestamp": {
      "type": "integer",
      "description": "Unix timestamp (seconds) of the moment the data was measured. On paid plans this is the moment the price was read. On the free plan it is the top of the current hour: the free tier updates once per hour, so every request within the same hour returns the same values and the same timestamp."
    },
    "24h_price_change": {
      "type": "string",
      "description": "The price change of Bitcoin in USD over the last 24 hours. On the free plan this is measured over the 24 completed hours ending at `timestamp`, rather than a live rolling window."
    },
    "24h_price_change_percent": {
      "type": "string",
      "description": "The price change percentage of Bitcoin over the last 24 hours. On the free plan this is measured over the 24 completed hours ending at `timestamp`, rather than a live rolling window."
    },
    "24h_high": {
      "type": "string",
      "description": "The highest price of Bitcoin in USD over the last 24 hours. On the free plan this is measured over the 24 completed hours ending at `timestamp`, rather than a live rolling window."
    },
    "24h_low": {
      "type": "string",
      "description": "The lowest price of Bitcoin in USD over the last 24 hours. On the free plan this is measured over the 24 completed hours ending at `timestamp`, rather than a live rolling window."
    },
    "24h_volume": {
      "type": "string",
      "description": "The volume of Bitcoin traded over the last 24 hours. On the free plan this is measured over the 24 completed hours ending at `timestamp`, rather than a live rolling window."
    }
  }
}