CommodityPriceAPI CommodityPriceAPI API

The CommodityPriceAPI API API from CommodityPriceAPI — 3 operation(s) for commoditypriceapi api.

Operations 3

GET / GET / #
GET /v3 Usage endpoint GET /v3 returns the current usage and quota information for your… #
GET /v3/{v3id} GET /v3/symbols #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/commoditypriceapi:commoditypriceapi-commoditypriceapi-api-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

commoditypriceapi-commoditypriceapi-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CommodityPriceAPI API
  version: '2026-10-16'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-16: 6 operation(s) read from 9 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; CommodityPriceAPI has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 11
    documentation: -5
    pages-with-code: 8
    pages-read: 9
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-16'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://commoditypriceapi.com
  - https://commoditypriceapi.com/gold-price
  - https://commoditypriceapi.com/silver-price
  - https://commoditypriceapi.com/tools/gold-to-silver-ratio
  - https://commoditypriceapi.com/docs
  - https://commoditypriceapi.com/oil-price-api
  - https://commoditypriceapi.com/copper-price-api
  - https://commoditypriceapi.com/platinum-price-api
  - https://commoditypriceapi.com/palladium-price-api
servers:
- url: https://api.commoditypriceapi.com
security:
- apiKey: []
tags:
- name: CommodityPriceAPI API
paths:
  /:
    get:
      operationId: get
      tags:
      - CommodityPriceAPI API
      summary: GET /
      x-source: https://commoditypriceapi.com/gold-price
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl, fetch, axios — all work 0 SDKs required Just your API key API reference Live gold rates Returns the latest CFD-based spot rate for gold (XAU), including bid and ask prices. Rates are sourced from live OTC market feeds and reflect real-world traded prices. Endpoint GET https://api.commoditypriceapi.com /v3/rates/latest/xau Every current plan receives real-time rates. Basic plan users receive '
  /v3:
    get:
      operationId: get_v3
      tags:
      - CommodityPriceAPI API
      summary: Usage endpoint GET /v3 returns the current usage and quota information for your…
      description: GET /v3/usage Returns the current usage and quota information for your account.
      x-source: https://commoditypriceapi.com/docs
      parameters:
      - name: apiKey
        in: query
        required: true
        schema:
          type: string
        description: Your unique API key.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV3Response'
      x-evidence:
        kind: documentation
  /v3/{v3id}:
    get:
      operationId: get_v3_v3id
      tags:
      - CommodityPriceAPI API
      summary: GET /v3/symbols
      x-source: https://commoditypriceapi.com/docs
      parameters:
      - name: v3id
        in: path
        required: true
        schema:
          type: string
      - name: underlying
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV3V3IdResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl JavaScript Python PHP Copy $ curl \"https://api.commoditypriceapi.com/v3/symbols?underlying=WTIOIL-FUT\"  -H \"x-api-key: YOUR_API_KEY\" const res = await fetch ( \n \"https://api.commoditypriceapi.com/v3/symbols?underlying=WTIOIL-FUT\" , \n { headers : { \"x-api-key\" : \"YOUR_API_KEY\" } } , \n ) ; \n const data = await res . json ( ) ; \nconsole . log ( data ) ; import requests\nres = requests . get ( \n \""
        collapsed_from: 2 example path(s) differing only at v3Id
components:
  schemas:
    GetV3V3IdResponse:
      type: object
      properties:
        success:
          type: boolean
        symbols:
          type: array
          items:
            type: object
            properties:
              symbol:
                type: string
              category:
                type: string
              currency:
                type: object
                properties:
                  code:
                    type: string
                  name:
                    type: string
                  symbol:
                    type: string
              unit:
                type: object
                properties:
                  symbol:
                    type: string
                  name:
                    type: string
              name:
                type: string
              description:
                type: string
              status:
                type: string
              contract:
                type: string
              deliveryMonth:
                type: string
              expiresAt:
                type: string
                format: date
              underlying:
                type: string
    GetV3Response:
      type: object
      properties:
        plan:
          type: string
          description: Your current plan name in lowercase (e.g. basic , standard , advanced ).
        quota:
          type: integer
          description: Your current allotted quota.
        used:
          type: integer
          description: Your usage since start of month, subscription, or trial.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key