documentation
Authentication

Authentication

The CommodityPriceAPI uses API keys to authenticate requests. Each request must contain your API key via an apiKey query parameter or x-api-key in request header.

Get your API key

You can get your API key from the Dashboard (opens in a new tab) page.

⚠️

Do not share your API key in publicly accessible areas such as GitHub, client-side code, and so forth.

Send your API key

The Api Key may be sent in 2 ways

  1. Request Parameters - Include an apiKey parameter in your request's query string.
  2. Request Header - Include an x-api-key request header (opens in a new tab) with each request.

Track usage

You can track your API usage in the Dashboard (opens in a new tab) page and also via the Usage (opens in a new tab) endpoint.