Quickstart
Create a key and make your first request
API reference · Code and response examples
Before you begin
Create an account, complete onboarding and subscribe to Pro or Max. The included JustMarkets feed does not require your own broker login.
1. Create your key
Open API key in your workspace and select Create API key. Pro includes one active key; Max includes ten. Save the key immediately: it is shown only once.
2. Build a request
curl 'https://api.xauapi.com/v1/quote?feed=justmarkets' \
-H 'Authorization: Bearer YOUR_API_KEY'Replace YOUR_API_KEY with your private key. The production base URL is https://api.xauapi.com.
3. Inspect a response
Open the API explorer, select Quote and send a request. Check the timestamp and stale flag before using the returned price.
4. Check your usage
Visit Usage & logs to see the request. Requests admitted by the quota gate count, including feed errors. Rejected authentication, quota and rate-limit requests do not consume allowance.