API and widget
Free access to stored daily reference prices. Attribute Frankfurter and GoldPriceLens. Dealer quotes, personal data and manually recorded local SYP rates are excluded from this API.
API with a key
Create a secret key in your account. Send it in Authorization: Bearer, never in the URL. The shared account quota is 60 requests per minute and 1,000 per UTC day. Authenticated error requests also count. Error 429 includes a Retry-After wait time.
curl -H "Authorization: Bearer YOUR_API_KEY" "https://goldpricelens.com/api/v1/quotes?metal=gold¤cy=SEK"
GET /api/v1/quotes · metal=gold|silver|platinum|palladium · currency=SEK|USD|EUR
GET /api/v1/history?metal=gold¤cy=SEK&from=2026-01-01&to=2026-10-30
Prices are decimal strings per gram. History contains only stored observations within at most 366 calendar days, with no invented gap filling. Current prices return 503 when fresh data are unavailable. These are not real-time prices or executable offers.
Embeddable widget
The widget requires no key, displays no ads and sets no session cookies. It works without JavaScript. At most 30 loads per minute per IP address.