api-ninjas-com · Schema

CommoditySnapshotItem

Snapshot returns a trimmed schema for batch efficiency. For previous_close, change_24h_percent, high_24h, low_24h, high_52w, low_52w, use /v1/commodityprice on a specific commodity.

CompanyDataFinanceDevelopers

Properties

Name Type Description
exchange string Listing exchange.
name string Display name of the commodity.
value string The API ?name= parameter value for this commodity.
category string Product category for filtering.
currency_unit string USD = US dollars per unit; USX = US cents per unit.
unit string The quote unit.
price number Current price in the commodity's native unit and currency convention.
change_24h number Absolute price change vs the previous close.
volume integer Trading volume for the session.
updated integer Unix timestamp when the snapshot was fetched.
View JSON Schema on GitHub

JSON Schema

api-ninjas-com-commodity-snapshot-item-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-snapshot-item-schema.json",
  "title": "CommoditySnapshotItem",
  "description": "Snapshot returns a trimmed schema for batch efficiency. For previous_close, change_24h_percent, high_24h, low_24h, high_52w, low_52w, use /v1/commodityprice on a specific commodity.",
  "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/CommoditySnapshotItem",
  "type": "object",
  "properties": {
    "exchange": {
      "type": "string",
      "description": "Listing exchange."
    },
    "name": {
      "type": "string",
      "description": "Display name of the commodity."
    },
    "value": {
      "type": "string",
      "description": "The API ?name= parameter value for this commodity."
    },
    "category": {
      "type": "string",
      "enum": [
        "precious_metals",
        "base_metals",
        "energy",
        "grains",
        "softs",
        "livestock"
      ],
      "description": "Product category for filtering."
    },
    "currency_unit": {
      "type": "string",
      "enum": [
        "USD",
        "USX"
      ],
      "description": "USD = US dollars per unit; USX = US cents per unit."
    },
    "unit": {
      "type": "string",
      "description": "The quote unit."
    },
    "price": {
      "type": "number",
      "description": "Current price in the commodity's native unit and currency convention."
    },
    "change_24h": {
      "type": "number",
      "description": "Absolute price change vs the previous close."
    },
    "volume": {
      "type": "integer",
      "description": "Trading volume for the session."
    },
    "updated": {
      "type": "integer",
      "description": "Unix timestamp when the snapshot was fetched."
    }
  }
}

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-snapshot-item"
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.