goldprice.dev vs Barchart
Build a gold application around spot prices, daily history, and physical dealer quotes with goldprice.dev. Barchart OnDemand spans several asset classes, with its cmdty product line focused on commodities. The tables below compare access, request budgets, and the gold instruments each service returns.
At a glance
| Feature | goldprice.dev | Barchart |
|---|---|---|
| Free tier | 1,000 requests/month | Limited-request trial |
| Cheapest paid plan | Physical · $10/month | Contact sales |
| Update speed | Source-dependent; timestamps and staleness flags | Real-time, delayed or end-of-day |
| History | 30 days free; daily gold to 1996 on Pro | Tick, minute and daily; depth not published |
| Coverage | Gold; silver and copper on Pro | Stocks, funds, futures, FX and crypto |
| Interfaces | REST; MCP; WebSocket on Pro | GET, POST, SOAP; JSON, XML, CSV |
| SDKs | Not published | Java, JavaScript, PHP, Python, MATLAB |
| Commercial use on free tier | ✗ Non-commercial only | Trial licence not published |
Price at your usage
The lowest published plans for each monthly gold request volume; commercial access is covered in the FAQ.
| Requests a month | goldprice.dev | Barchart |
|---|---|---|
| 1,000 | Free · $0/month | Contact sales |
| 10,000 | Physical · $10/month | Contact sales |
| 100,000 | Pro · $30/month | Contact sales |
Barchart sells custom OnDemand packages; prices for these request volumes are available through sales.
Switch in a few minutes
Replace the GC*1 gold futures lookup with a USD gold spot request on your server.
Barchart
# Change: URL and auth
curl -G \
"https://ondemand.websol.barchart.com/getQuote.json" \
--data-urlencode "apikey=YOUR_API_KEY" \
--data-urlencode "symbols=GC*1"// Change: URL and auth
const url = new URL(
"https://ondemand.websol.barchart.com/getQuote.json"
);
url.search = new URLSearchParams({
"apikey": "YOUR_API_KEY",
"symbols": "GC*1",
}).toString();
const response = await fetch(url, {
method: "GET",
});
if (!response.ok) {
throw new Error(String(response.status));
}
console.log(await response.json());import requests
# Change: URL and auth
response = requests.get(
"https://ondemand.websol.barchart.com/getQuote.json",
params={
"apikey": "YOUR_API_KEY",
"symbols": "GC*1",
},
timeout=10,
)
response.raise_for_status()
print(response.json())goldprice.dev
# Change: URL and auth
curl -G \
"https://api.goldprice.dev/v1/prices" \
--data-urlencode "symbol=XAU-USD-SPOT" \
-H "Authorization: Bearer YOUR_API_KEY"// Change: URL and auth
const url = new URL(
"https://api.goldprice.dev/v1/prices"
);
url.search = new URLSearchParams({
"symbol": "XAU-USD-SPOT",
}).toString();
const response = await fetch(url, {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
},
});
if (!response.ok) {
throw new Error(String(response.status));
}
console.log(await response.json());import requests
# Change: URL and auth
response = requests.get(
"https://api.goldprice.dev/v1/prices",
params={
"symbol": "XAU-USD-SPOT",
},
headers={
"Authorization": "Bearer YOUR_API_KEY",
},
timeout=10,
)
response.raise_for_status()
print(response.json())Why teams switch
An ongoing place to start
1,000 gold requests each month on Free let you test a recurring workload. No card is required. Commercial use starts on Pro at $30/month. The usage table shows the lowest tier for each request volume, giving a prototype a clear path to a larger workload.
History for gold applications
Daily gold bars reach 1996 on Pro. Free covers 30 days, and Physical covers one year. Each returned observation includes timestamps and staleness flags, so your application can show the age of a price alongside its value. The long daily series supports a different timescale from intraday bars.
One service for code and agents
MCP is included on every plan alongside REST. Start with gold; Pro adds silver and copper. The same account supports application requests and agent tools, with the access limits of its selected tier.
When they are the better pick
Barchart is the better pick for futures contract discovery, several asset classes, or legacy delivery formats. Its OnDemand catalogue supports GET, POST, and SOAP requests with JSON, XML, and CSV responses. Tick and minute-bar history serve analyses that need finer intervals than daily bars, while custom packages combine instruments and delivery options.
Questions
Can I use goldprice.dev commercially?
Yes. Pro includes commercial use at $30/month, subject to terms and source rights. Free and Physical are non-commercial. Free includes 1,000 monthly gold requests, MCP, and 30 days of history, with no credit card required.
Does Barchart offer a free trial?
Yes. Barchart advertises a free trial with limited requests. Its OnDemand service offers custom packages through contact. goldprice.dev publishes monthly plans and request caps, so a small gold project can compare its expected volume against a listed tier.
What kinds of history does Barchart provide?
The official API catalogue describes tick, minute-bar, and end-of-day history. That is useful when the sampling interval drives your analysis. goldprice.dev has daily gold bars from 1996 on Pro, covering long-term gold analysis with one bar per day.
Is Barchart data always real time?
Barchart offers real-time, delayed, and end-of-day data through its packages. A daily reference supports end-of-day reporting, while real-time delivery serves applications that react during the market session. The selected delivery option determines which observations the application receives.
Related comparisons
Get a free API keySources and review date
Reviewed .