Documentation
Learn about API structure, methods, and usage. Implement the API in minutes with a straightforward structure.
Getting Started
Your API Key is the unique key passed into the API base URL'saccess_keyparameter to authenticate.
API Key
Base URL:
https://metals-api.com/api/
Authenticate:
https://metals-api.com/api/latest?access_key=API_KEYAPI Response
Exchange rates are by default relative to USD and returned in JSON.
{ "success": true, "timestamp": 1519296206, "base": "EUR", "date": "2018-09-10", "rates": { "AUD": 1.566015, "CAD": 1.560132, "CHF": 1.154727, "CNY": 7.827874, "GBP": 0.882047, "JPY": 132.360679, "USD": 1.23396 } }Available Endpoints
The API comes with multiple endpoints, each serving a different use case. Depending on your subscription plan, certain endpoints may or may not be available.
Supported Symbols Endpoint
Latest Rates Endpoint
Historical Rates Endpoint
Bid And Ask Endpoint
Convert Endpoint
Time-Series Endpoint
Fluctuation Endpoint
Carat Endpoint
Lowest/Highest Price Endpoint
Metals Price India
Historical Rates LBMA Endpoint (From 1968)
Open/High/Low/Close Price Endpoint
News Endpoint
Historical LME Endpoint
Potential Errors
If you receive an error response, confirm your API key, subscription plan access, and request parameters.
