← Back to API Ninjas
GET/v1/commoditysnapshot

Get current prices for all supported commodities in a single call

Returns an enriched live price object for all 30 supported commodities in one call. Optional filters narrow the result set.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v1/commoditysnapshot" }); console.log(output);

Query parameters

category
string

Filter to a single product category. (Allowed: precious_metals, base_metals, energy, grains, softs, livestock)

exchange
string

Filter to commodities listed on a single exchange. (Allowed: CME, NYMEX, COMEX, ICE)

    Orthogonal - Giving AI agents the tools they need.