api-ninjas-com · Schema

CommoditySpotResponse

CompanyDataFinanceDevelopers

Properties

Name Type Description
name string The commodity's display name.
value string The commodity's name parameter value.
price number The spot price: the price for immediate delivery.
bid number Spot bid price (composite spot only).
ask number Spot ask price (composite spot only).
spot_type string How the price is produced: composite = a live spot price with bid/ask (gold, silver, platinum, palladium; refreshed every minute on Developer plans, about every 10 seconds on Business plans and above)
date string Assessed spot only: the trading day of the price (YYYY-MM-DD). Daily spot prices are published with a delay, so it trails by several days.
benchmark string Assessed spot only: the physical spot benchmark (e.g., WTI Cushing, Oklahoma).
previous_close number The previous session's closing spot price.
change_24h number Change versus the previous close.
change_24h_percent number Percent change versus the previous close.
high_24h number Composite spot only: the session's high price.
low_24h number Composite spot only: the session's low price.
market_status string Composite spot only: whether the market is trading (Sunday 6 PM to Friday 5 PM ET, with a daily 5-6 PM ET break).
updated integer Unix timestamp (seconds) of the spot price.
unit string The quote unit.
currency_unit string Price currency, USD by default.
View JSON Schema on GitHub

JSON Schema

api-ninjas-com-commodity-spot-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-spot-response-schema.json",
  "title": "CommoditySpotResponse",
  "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/CommoditySpotResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The commodity's display name."
    },
    "value": {
      "type": "string",
      "description": "The commodity's name parameter value."
    },
    "price": {
      "type": "number",
      "description": "The spot price: the price for immediate delivery."
    },
    "bid": {
      "type": "number",
      "description": "Spot bid price (composite spot only)."
    },
    "ask": {
      "type": "number",
      "description": "Spot ask price (composite spot only)."
    },
    "spot_type": {
      "type": "string",
      "enum": [
        "composite",
        "assessed"
      ],
      "description": "How the price is produced: composite = a live spot price with bid/ask (gold, silver, platinum, palladium; refreshed every minute on Developer plans, about every 10 seconds on Business plans and above); assessed = the daily spot price at the benchmark's physical delivery hub (oil and energy)."
    },
    "date": {
      "type": "string",
      "description": "Assessed spot only: the trading day of the price (YYYY-MM-DD). Daily spot prices are published with a delay, so it trails by several days."
    },
    "benchmark": {
      "type": "string",
      "description": "Assessed spot only: the physical spot benchmark (e.g., WTI Cushing, Oklahoma)."
    },
    "previous_close": {
      "type": "number",
      "description": "The previous session's closing spot price."
    },
    "change_24h": {
      "type": "number",
      "description": "Change versus the previous close."
    },
    "change_24h_percent": {
      "type": "number",
      "description": "Percent change versus the previous close."
    },
    "high_24h": {
      "type": "number",
      "description": "Composite spot only: the session's high price."
    },
    "low_24h": {
      "type": "number",
      "description": "Composite spot only: the session's low price."
    },
    "market_status": {
      "type": "string",
      "enum": [
        "open",
        "closed"
      ],
      "description": "Composite spot only: whether the market is trading (Sunday 6 PM to Friday 5 PM ET, with a daily 5-6 PM ET break)."
    },
    "updated": {
      "type": "integer",
      "description": "Unix timestamp (seconds) of the spot price."
    },
    "unit": {
      "type": "string",
      "description": "The quote unit."
    },
    "currency_unit": {
      "type": "string",
      "description": "Price currency, USD by default."
    }
  }
}

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-spot-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.