Finance · head-to-head
Fed Treasury vs Goldprice.dev
Fiscal Data is the U.S. Department of the Treasury's open REST API for federal financial datasets — debt, revenue, spending, interest rates, and savings bonds — maintained by the Bureau of the Fiscal Service. Every endpoint supports field selection, filtering, sorting, and pagination, and returns JSON by default with CSV or XML available via the format parameter. No registration or API key is required, and a live Origin-header probe confirmed CORS is enabled (Access-Control-Allow-Origin: *).
Goldprice.dev is a commodity-pricing API returning live XAU/XAG/copper spot prices across 31 currencies (cross-checked via exchangerate.dev with an ECB fallback), COMEX gold futures and GLD ETF data, and over a decade of daily XAU/USD history, with every price citing its source and published methodology. Access is anonymous and keyless by default at a modest rate limit; a free API key raises throughput, and paid tiers add per-country physical dealer pricing, a volatility/probability surface, a real-time SSE/WebSocket feed, and an MCP server on every plan. A live Origin-header probe against the real API host (api.goldprice.dev) found no Access-Control-Allow-Origin header, so CORS resolves to `no` — the stored `unknown` was unresolved, not confirmed open.
| Fed Treasury | Goldprice.dev | |
|---|---|---|
| Authentication | None | None |
| Pricing | free | freemium |
| Formats | JSON, XML, CSV | JSON, WebSocket |
| CORS | yes | no |
| HTTPS | Yes | Yes |
Fed Treasury supports CORS, while Goldprice.dev doesn't — pick Fed Treasury for direct browser calls.