Pricing Guide

Limits for the Free plan

Free and paid limits, from the API's plan table

The Free plan includes 100 requests an hour, live prices for 5 metals and exchange rates. Every request needs an API key.

Included with Free

The limit counts all your account's keys together. Free allows commercial use if the page displaying the prices includes a visible link to goldApi.dev.

FreeLimit
Price a month$0
Requests an hour100
Spot pricesLive
Metals5
Exchange rates and other currenciesYes
Daily historyNo
Daily OHLC candlesNo
Previous close and daily changeNo
Commercial useYes, with a visible link to goldApi.dev near the prices

When you reach a limit

Use the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset response headers to slow requests before reaching the limit. Over it, the API returns 429, a short JSON body and a Retry-After header in seconds. Requests work again when the next hour starts.

Shell
curl -i "https://goldapi.dev/api/v1/price/XAU/USD" \  -H "X-API-Key: $API_KEY"
StatuserrorWhen
429rate_limit_exceededOver the plan's requests an hour
401api_key_requiredThe request has no key
401invalid_api_keyThe key is not valid
403feature_requires_basicThe plan doesn't include this endpoint
Response
{ "error": "rate_limit_exceeded" }

Paid plans include more requests and more data.

Basic plan

BasicLimit
Price a month$8
Requests an hour2,000
Spot pricesLive
Metals5
Exchange rates and other currenciesYes
Daily historyYes
Daily OHLC candlesNo
Previous close and daily changeNo
Commercial useYes, no link needed

Pro plan

ProLimit
Price a month$15
Requests an hourUnlimited
Spot pricesLive
Metals5
Exchange rates and other currenciesYes
Daily historyYes
Daily OHLC candlesYes
Previous close and daily changeYes
Commercial useYes, no link needed

Choosing a plan

Free works for prototypes, internal dashboards and personal sites. Choose a paid plan for more than 100 requests an hour, daily history or daily candles.

Questions

What are the request limits on the Free plan?

100 requests an hour, counting all your account's keys together.

Can I use the API without a key?

No. Every request needs your key in the X-API-Key header. A free key takes a minute and needs no credit card.

What response do I get after reaching the limit?

429, with the error rate_limit_exceeded and a Retry-After header in seconds.

When does the limit reset?

When the next hour starts. The X-RateLimit-Reset header gives the exact time.

Is commercial use allowed on Free?

Yes. The page displaying the prices must include a visible link to goldApi.dev. Paid plans do not require a link.

Keep reading

Start with a free API key

100 requests an hour on the free plan. No credit card. Free includes a credit link.

Get a free key