goldprice.dev vs Yahoo Finance (yfinance)
Build with a documented gold spot API, daily history, and source details through goldprice.dev. Yahoo Finance’s unofficial yfinance library provides Python access to futures quotes for personal research. The comparison below shows the difference between a GC=F futures lookup and a USD gold spot request, alongside access and pricing.
At a glance
| Feature | goldprice.dev | Yahoo Finance (yfinance) |
|---|---|---|
| Free tier | 1,000 requests/month | Free library; quota not published |
| Cheapest paid plan | Physical · $10/month | Not published |
| Update speed | Source-dependent; timestamps and staleness flags | GC=F is delayed; delay not published |
| History | 30 days free; daily gold to 1996 on Pro | Depth not published |
| Coverage | Gold; silver and copper on Pro | Gold, silver, platinum, palladium futures |
| Interfaces | REST; MCP; WebSocket on Pro | Website; unofficial Python library |
| SDKs | Not published | yfinance (unofficial Python) |
| Commercial use on free tier | ✗ Non-commercial only | ✗ Personal data use only |
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 | Yahoo Finance (yfinance) |
|---|---|---|
| 1,000 | Free · $0/month | Not published |
| 10,000 | Physical · $10/month | Not published |
| 100,000 | Pro · $30/month | Not published |
yfinance is free to install; Yahoo publishes no API request allowance for these monthly volumes.
Switch in a few minutes
Replace the GC=F daily futures close with a USD gold spot request on your server.
Yahoo Finance (yfinance)
import yfinance as yf
# Change: ticker to HTTP
history = yf.Ticker("GC=F").history(
period="1d",
)
print(history["Close"].iloc[-1])# Yahoo has no official public request for curl.
# Select Python for the common yfinance approach.// Yahoo has no official public fetch request.
// Select Python for the common yfinance approach.goldprice.dev
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())# 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());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
yfinance is the better pick for personal research built around Python and futures data. Its catalogue includes gold, silver, platinum, and palladium futures, giving notebooks access to instruments beyond goldprice.dev’s three metals. The GC=F page labels its COMEX quote as delayed, and the ticker identifies the futures instrument throughout the analysis.
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.
Is yfinance an official Yahoo API?
No. Yahoo Finance has no official public API. yfinance is a third-party scraper and is not endorsed by Yahoo. Its README describes research and educational use and directs users to Yahoo terms for data rights.
Can I replace GC=F with a gold spot quote?
Yes, for an application built around spot prices. GC=F is a gold futures ticker, and its quote page is labelled COMEX delayed. XAU-USD-SPOT uses a spot reference, so the instrument label and calculation assumptions change with the request.
Can I use yfinance for a commercial product?
The README describes personal data use; the open-source library licence does not include a commercial data licence. A commercial Yahoo feed needs Yahoo licensing. goldprice.dev offers commercial use on Pro.
Related comparisons
Get a free API keySources and review date
Reviewed .