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.
| Free | Limit |
|---|---|
| Price a month | $0 |
| Requests an hour | 100 |
| Spot prices | Live |
| Metals | 5 |
| Exchange rates and other currencies | Yes |
| Daily history | No |
| Daily OHLC candles | No |
| Previous close and daily change | No |
| Commercial use | Yes, 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.
curl -i "https://goldapi.dev/api/v1/price/XAU/USD" \ -H "X-API-Key: $API_KEY"| Status | error | When |
|---|---|---|
| 429 | rate_limit_exceeded | Over the plan's requests an hour |
| 401 | api_key_required | The request has no key |
| 401 | invalid_api_key | The key is not valid |
| 403 | feature_requires_basic | The plan doesn't include this endpoint |
{ "error": "rate_limit_exceeded" }Limits on paid plans
Paid plans include more requests and more data.
Basic plan
| Basic | Limit |
|---|---|
| Price a month | $8 |
| Requests an hour | 2,000 |
| Spot prices | Live |
| Metals | 5 |
| Exchange rates and other currencies | Yes |
| Daily history | Yes |
| Daily OHLC candles | No |
| Previous close and daily change | No |
| Commercial use | Yes, no link needed |
Pro plan
| Pro | Limit |
|---|---|
| Price a month | $15 |
| Requests an hour | Unlimited |
| Spot prices | Live |
| Metals | 5 |
| Exchange rates and other currencies | Yes |
| Daily history | Yes |
| Daily OHLC candles | Yes |
| Previous close and daily change | Yes |
| Commercial use | Yes, 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.