api-ninjas-com · Schema

CommodityPriceResponse

CompanyDataFinanceDevelopers

Properties

Name Type Description
exchange string The symbol of the exchange where the commodity is traded.
name string The display name of the commodity (e.g. Gold Futures).
value string The commodity's `?name=` slug (e.g. gold, crude_oil).
price number The current price of the commodity. See currency_unit for the price convention.
currency_unit string Price convention: USD = US dollars per unit; USX = US cents per unit. Grains, softs, and livestock are typically USX; metals and energy are typically USD.
unit string The quote unit (e.g., troy_ounce, barrel, bushel, lb, MMBtu, gallon, metric_ton, short_ton, hundredweight, board_feet).
previous_close number Previous session's closing price in the same quote convention as price.
change_24h number Change vs previous close in the quote unit.
change_24h_percent number Percent change vs previous close.
high_24h number Day's high price.
low_24h number Day's low price.
high_52w number 52-week high.
low_52w number 52-week low.
updated integer Unix timestamp of the price update.
futures_contract string The futures contract `price` is quoted for (e.g., GCZ26 = December 2026 gold).
futures_contract_month string Delivery month of futures_contract (YYYY-MM).
View JSON Schema on GitHub

JSON Schema

api-ninjas-com-commodity-price-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-commodity-price-response-schema.json",
  "title": "CommodityPriceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-commodity-price-api-openapi.yml#/components/schemas/CommodityPriceResponse",
  "type": "object",
  "properties": {
    "exchange": {
      "type": "string",
      "description": "The symbol of the exchange where the commodity is traded."
    },
    "name": {
      "type": "string",
      "description": "The display name of the commodity (e.g. Gold Futures)."
    },
    "value": {
      "type": "string",
      "description": "The commodity's `?name=` slug (e.g. gold, crude_oil)."
    },
    "price": {
      "type": "number",
      "description": "The current price of the commodity. See currency_unit for the price convention."
    },
    "currency_unit": {
      "type": "string",
      "enum": [
        "USD",
        "USX"
      ],
      "description": "Price convention: USD = US dollars per unit; USX = US cents per unit. Grains, softs, and livestock are typically USX; metals and energy are typically USD."
    },
    "unit": {
      "type": "string",
      "description": "The quote unit (e.g., troy_ounce, barrel, bushel, lb, MMBtu, gallon, metric_ton, short_ton, hundredweight, board_feet)."
    },
    "previous_close": {
      "type": "number",
      "description": "Previous session's closing price in the same quote convention as price."
    },
    "change_24h": {
      "type": "number",
      "description": "Change vs previous close in the quote unit."
    },
    "change_24h_percent": {
      "type": "number",
      "description": "Percent change vs previous close."
    },
    "high_24h": {
      "type": "number",
      "description": "Day's high price."
    },
    "low_24h": {
      "type": "number",
      "description": "Day's low price."
    },
    "high_52w": {
      "type": "number",
      "description": "52-week high."
    },
    "low_52w": {
      "type": "number",
      "description": "52-week low."
    },
    "updated": {
      "type": "integer",
      "description": "Unix timestamp of the price update."
    },
    "futures_contract": {
      "type": "string",
      "description": "The futures contract `price` is quoted for (e.g., GCZ26 = December 2026 gold)."
    },
    "futures_contract_month": {
      "type": "string",
      "description": "Delivery month of futures_contract (YYYY-MM)."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/api-ninjas-com-commodity-price-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.