Commodity prices: gold, oil, silver, gas, grains

$0.01 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

Commodity price now for gold, silver, platinum, palladium, copper, crude oil (WTI and Brent), natural gas, gasoline, heating oil, corn, wheat, soybeans, coffee, sugar, cocoa or cotton: the front-month futures price with its unit, the day's change and percent, previous close, day range and 52-week range. XAU, oil and similar names work. Use to price a commodity in an agent, track inflation inputs, or add market context to a brief.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

One of: gold, silver, platinum, palladium, copper, crude-oil, brent, natural-gas, gasoline, heating-oil, corn,…

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
commodity (required)stringOne of: gold, silver, platinum, palladium, copper, crude-oil, brent, natural-gas, gasoline, heating-oil, corn, wheat, soybeans, coffee, sugar, cocoa, cotton

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/commodity/price?commodity=gold"

Or one of your 3 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/commodity/price?commodity=gold&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "commodity": "gold",
  "name": "Gold",
  "contract": "front-month futures",
  "symbol": "GC=F",
  "unit": "USD per troy ounce",
  "price": 4105.3,
  "previousClose": 4088.1,
  "change": 17.2,
  "changePercent": 0.4207,
  "dayHigh": 4121.8,
  "dayLow": 4079.5,
  "fiftyTwoWeekHigh": 4398,
  "fiftyTwoWeekLow": 2567.4,
  "exchange": "COMEX",
  "marketTime": "2026-11-10T21:59:00.000Z",
  "note": "Market data from Yahoo Finance's public endpoints; quotes may be delayed by the exchange (often 15 minutes). Not investment advice."
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is commodity_price, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools