# GoldPrice — Zapi reference > Harga emas, perak & crypto live + grafik, historis, ETF, saham tambang, berita, dan kalkulator. Sumber data publik goldprice. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/finance/goldprice - Endpoint catalog: https://zpi.web.id/category/finance - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## GoldPrice **Category:** finance · **Slug:** `goldprice` **Detail page:** https://zpi.web.id/api/finance/goldprice Harga emas, perak & crypto live + grafik, historis, ETF, saham tambang, berita, dan kalkulator. Sumber data publik goldprice. **Tags:** finance, gold, silver, crypto, precious-metals, price ### Spot Harga spot emas & perak live (per oz/gram/kg), any currency. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/finance:goldprice/spot` - **Cache TTL:** 60s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `currency` | string | query | no | Kode mata uang ISO (mis. USD, IDR, EUR). Default USD. | **cURL:** ```bash curl "https://api.zpi.web.id/v1/finance:goldprice/spot?currency=USD" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/finance:goldprice/spot?currency=USD", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/finance:goldprice/spot?currency=USD", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "asOf": "Jun 14th 2026, 01:41:25 am NY", "gold": { "change": 112.885, "pricePerKg": 135383.74, "pricePerOz": 4210.905, "pricePerGram": 135.3837, "changePercent": 2.7546, "previousClose": 4098.02 }, "silver": { "change": 3.8419, "pricePerKg": 2179.23, "pricePerOz": 67.7815, "pricePerGram": 2.1792, "changePercent": 6.0086, "previousClose": 63.9396 }, "currency": "USD", "timestamp": 1781415690581, "goldSilverRatio": 62 } ``` --- ### Chart URL gambar grafik harga (gold/silver, 7d–30y). - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/finance:goldprice/chart` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `metal` | enum(gold|silver) | query | no | Logam mulia: gold atau silver. Default gold | | `period` | enum(7d|30d|6m|1y|2y|5y|10y|15y|20y|30y) | query | no | Rentang waktu chart. Pilihan: 7d, 30d, 6m, 1y, 2y, 5y, 10y, 15y, 20y, 30y. Default 7d | | `currency` | string | query | no | Kode mata uang ISO 3-huruf (USD, EUR, GBP, IDR, JPY, dll). Default USD | **cURL:** ```bash curl "https://api.zpi.web.id/v1/finance:goldprice/chart?metal=gold&period=7d¤cy=USD" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/finance:goldprice/chart?metal=gold&period=7d¤cy=USD", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/finance:goldprice/chart?metal=gold&period=7d¤cy=USD", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "metal": "gold", "period": "7d", "currency": "USD", "imageUrl": "https://charts.goldprice.org/charts/history/gold_7_day_o_USD_x.png", "verified": true, "availablePeriods": [ "7d", "30d", "6m", "1y", "2y", "5y", "10y", "15y" ] } ``` --- ### Crypto Harga cryptocurrency live (BTC/ETH/SOL/dll) + market cap. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/finance:goldprice/crypto` - **Cache TTL:** 60s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `ids` | string | query | no | Daftar id koin dipisah koma (mis. bitcoin,ethereum,solana,ripple,dogecoin). Default "bitcoin,ethereum,solana,ripple,dogecoin". Max 50 koin. | | `currency` | enum(usd|idr|eur|gbp|jpy|sgd|aud|btc|eth) | query | no | Mata uang harga: usd, idr, eur, gbp, jpy, sgd, aud, btc, eth. Default usd. | **cURL:** ```bash curl "https://api.zpi.web.id/v1/finance:goldprice/crypto?ids=bitcoin%2Cethereum%2Csolana¤cy=usd" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/finance:goldprice/crypto?ids=bitcoin%2Cethereum%2Csolana¤cy=usd", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/finance:goldprice/crypto?ids=bitcoin%2Cethereum%2Csolana¤cy=usd", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "count": 3, "items": [ { "id": "bitcoin", "ath": 126080, "name": "Bitcoin", "rank": 1, "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400", "price": 64328, "low24h": 63486, "symbol": "BTC", "high24h": 64633, "change24h": 777.02, "marketCap": 1288787081171, "volume24h": 18113239771, "lastUpdated": "2026-06-14T05:41:38.195Z", "totalSupply": 20042446, "athChangePercent": -48.98, "changePercent24h": 1.22, "circulatingSupply": 20042437 }, { "id": "ethereum", "ath": 4946.05, "name": "Ethereum", "rank": 2, "image": "https://coin-images.coingecko.com/coins/images/279/large/ethereum.png?1696501628", "price": 1676.5, "low24h": 1662.23, "symbol": "ETH", "high24h": 1688.12, "change24h": 12.19, "marketCap": 202192671812, "volume24h": 6621220095, "lastUpdated": "2026-06-14T05:41:37.677Z", "totalSupply": 120684209.1147544, "athChangePercent": -66.1, "changePercent24h": 0.73, "circulatingSupply": 120684209.1147544 }, { "id": "solana", "ath": 293.31, "name": "Solana", "rank": 7, "image": "https://coin-images.coingecko.com/coins/images/4128/large/solana.png?1718769756", "price": 68.17, "low24h": 66.64, "symbol": "SOL", "high24h": 69.36, "change24h": 1.42, "marketCap": 39519480119, "volume24h": 1665123302, "lastUpdated": "2026-06-14T05:41:37.417Z", "totalSupply": 628303502.7848742, "athChangePercent": -76.76, "changePercent24h": 2.13, "circulatingSupply": 579823662.913511 } ], "currency": "USD" } ``` --- ### News Daftar berita pasar emas/perak. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/finance:goldprice/news` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `page` | number | query | no | Nomor halaman, default 1 | | `count` | number | query | no | Item per halaman, default 20 (max 50) | | `category` | string | query | no | Filter opsional (keyword pada judul/slug, mis. 'fed' atau 'inflation') | **cURL:** ```bash curl "https://api.zpi.web.id/v1/finance:goldprice/news?page=1&count=1&category=VALUE" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/finance:goldprice/news?page=1&count=1&category=VALUE", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/finance:goldprice/news?page=1&count=1&category=VALUE", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "page": 1, "count": 5, "items": [ { "url": "https://goldprice.org/news/gold-pulls-back-inflation-pressure-reprices-fed-path", "slug": "gold-pulls-back-inflation-pressure-reprices-fed-path", "image": "https://goldprice.org/sites/default/files/styles/blog_hero_375/public/blog_hero_images/Gold-Price-Recap1_6.jpg?itok=rvvHfSPF", "title": "Gold Pulls Back as Inflation Pressure Reprices the Fed Path", "author": "Matthew Bolden", "publishedAt": "2026-06-12T14:31:49-04:00" }, { "url": "https://goldprice.org/news/jobs-shock-knocks-gold-below-4400-fed-cut-hopes-fade", "slug": "jobs-shock-knocks-gold-below-4400-fed-cut-hopes-fade", "image": "https://goldprice.org/sites/default/files/styles/blog_hero_375/public/blog_hero_images/Gold-Price-Recap1_5.jpg?itok=hGQiYGdB", "title": "Jobs Shock Knocks Gold Below $4,400 as Fed Cut Hopes Fade", "author": "Matthew Bolden", "publishedAt": "2026-06-05T13:42:18-04:00" }, { "url": "https://goldprice.org/news/de-escalation-headlines-weigh-on-gold-ahead-of-memorial-day", "slug": "de-escalation-headlines-weigh-on-gold-ahead-of-memorial-day", "image": "https://goldprice.org/sites/default/files/styles/blog_hero_375/public/blog_hero_images/Gold-Price-Recap%20%281%29_12.jpg?itok=fYRM7OWK", "title": "De-Escalation Headlines Weigh on Gold Ahead of Memorial Day", "author": "Matthew Bolden", "publishedAt": "2026-05-22T15:47:47-04:00" }, { "url": "https://goldprice.org/news/gold-falls-toward-4550-fed-cut-hopes-fade", "slug": "gold-falls-toward-4550-fed-cut-hopes-fade", "image": "https://goldprice.org/sites/default/files/styles/blog_hero_375/public/blog_hero_images/Gold-Price-Recap%20%281%29_11.jpg?itok=NO3uEVUh", "title": "Gold Falls Toward $4,550 as Fed-Cut Hopes Fade", "author": "Matthew Bolden", "publishedAt": "2026-05-15T16:11:03-04:00" }, { "url": "https://goldprice.org/news/gold-rallies-iran-peace-hopes-ease-yields-and-dollar-pressure", "slug": "gold-rallies-iran-peace-hopes-ease-yields-and-dollar-pressure", "image": "https://goldprice.org/sites/default/files/styles/blog_hero_375/public/blog_hero_images/Gold-Price-Recap1_4.jpg?itok=xAifbwQS", "title": "Gold Rallies as Iran Peace Hopes Ease Yields and Dollar Pressure", "author": "Matthew Bolden", "publishedAt": "2026-05-08T14:40:07-04:00" } ], "hasMore": false } ``` --- ### Article Isi artikel berita (input slug dari endpoint news). - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/finance:goldprice/article/:slug` - **Cache TTL:** 1800s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `slug` | string | path | yes | Slug artikel (atau full URL goldprice.org/news/...) | **cURL:** ```bash curl "https://api.zpi.web.id/v1/finance:goldprice/article/:slug" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/finance:goldprice/article/:slug", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/finance:goldprice/article/:slug", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "url": "https://goldprice.org/news/gold-pulls-back-inflation-pressure-reprices-fed-path", "slug": "gold-pulls-back-inflation-pressure-reprices-fed-path", "image": "https://goldprice.org/sites/default/files/styles/blog_hero/public/blog_hero_images/Gold-Price-Recap1_6.jpg?itok=qLiud1Ae", "title": "Gold Pulls Back as Inflation Pressure Reprices the Fed Path", "author": "Matthew Bolden", "source": "goldprice.org", "contentText": "Happy Friday, traders. Welcome to our weekly market wrap, where we take a look back at these last five trading days with a focus on the market news, economic data, and headlines that had the most impact on gold prices and other key correlated assets—and may continue to in the future.\n\nSo, what kind of week has it been?\n\n### Here's what you need to know:\n\n- Gold is set to close the week under pressure, with spot trading near $4,227/oz on Friday morning, down roughly $103 from last Friday's close near $4,330.\n\n- The main driver was another repricing of the Fed path after May CPI showed annual inflation running at 4.2%, keeping rate uncertainty in the center of the trade.\n\n- Geopolitical headlines around the US-Iran ceasefire and canceled strike plans complicated the tape, helping yields and crude ease late in the week while also reducing some of gold's safe-haven bid.\n\n- Next week brings the June FOMC decision on Wednesday, Chair Kevin Warsh's first as Fed chair, and traders will be watching for any shift in how the Fed balances sticky inflation, resilient labor data, and energy-market risk.\n\n### So, What Kind of a Week Has It Been?\n\nFor gold, this has been a week of pressure, repricing, and—at least through Friday morning—some late-session repair that does not quite undo the damage from earlier in the tape. Spot gold is trading near $4,227/oz as of Friday morning, down roughly $103 from last Friday's close near $4,330. That puts the yellow metal lower by a little more than 2.4% on the week, even after buyers stepped back in below the midweek lows.\n\nThe decline was not especially mysterious. The market came into the week already leaning away from the easy-rate-cut narrative after last Friday's blowout jobs number, and this week's inflation data gave traders one more reason to stay cautious. Gold has spent most of June trying to decide whether the $4,500 area was a consolidation line or a ceiling. This week's answer, at least for now, is that the path of least resistance moved lower once inflation and Fed risk returned to the center of the trade.\n\n### Inflation Keeps the Fed in the Driver's Seat\n\nThe key macro catalyst this week was the May CPI print, which showed annual inflation running at 4.2%, the hottest year-over-year reading since 2023, with energy prices doing much of the work. For gold traders, the important point was less the headline number by itself and more what it did to the policy conversation.\n\nA sticky inflation tape is not automatically bearish for gold. In the longer run, inflation is part of the reason investors own the metal in the first place. But in the short run, when inflation forces the market to push out rate-cut expectations—or, more aggressively, to entertain renewed talk of a hike—the reaction function can turn hostile very quickly. Higher real-rate expectations raise the opportunity cost of holding gold, and that is especially true when the market is already digesting a stronger labor-market print from the prior week.\n\nThe Fed is also in its pre-meeting quiet period, which left traders without much official guidance to lean on. That silence tends to let the data speak louder, and this week the data told the market that Chair Kevin Warsh's first FOMC meeting next Wednesday is unlikely to open with an immediate dovish pivot. The more likely setup is a hold, a cautious statement, and a press conference that traders will parse line by line for how willing this new Fed leadership is to tolerate inflation above target.\n\n### Geopolitics Gives, Then Takes Back, Some of the Bid\n\nThe geopolitical side of the trade was no cleaner. Early-week pressure on gold was helped along by a softer risk-premium backdrop as traders continued to reassess the US-Iran conflict and the durability of the latest ceasefire framework. Any sign that the Strait of Hormuz risk is easing matters for gold because it feeds directly into crude, gasoline, inflation expectations, and ultimately the Fed path.\n\nBy Friday morning, however, the tape had turned more two-sided. Reports that President Trump had canceled planned military strikes against Iran helped crude oil prices retreat and Treasury yields ease, which took some pressure off gold and allowed a bounce from the week's lows. But even that rebound carried an irony: de-escalation reduces the safe-haven bid that had helped support gold above $4,400, while lower oil prices also reduce the inflation impulse that had been forcing the Fed discussion in a more hawkish direction.\n\nThat is the difficult cross-current for gold here. Traders are not dealing with one simple narrative. A calmer Middle East can pressure gold by removing geopolitical premium, but it can also support gold if it pulls yields and the Dollar lower. A hotter inflation print can support the long-term hard-asset case, but it can hurt spot prices if it makes the Fed less likely to cut. This week, the rate side of the story won.\n\n### Silver Holds Up Better as the Dollar Slips\n\nSilver was the more resilient precious metal this week. Spot silver is trading near $68.72/oz on Friday morning, up about $0.90 from last Friday's close. That is not a runaway breakout, but it is a notable divergence from gold's softer tape and suggests that the white metal is still benefiting from a combination of monetary-metal demand and firmer industrial expectations.\n\nThe US Dollar was not a clean headwind by the end of the week. The Dollar softened on Thursday and Friday as yields eased and risk appetite improved, which helped give gold and silver some breathing room. But the weekly story was still dominated by the earlier repricing of Fed expectations, not by a sustained Dollar breakdown.\n\nAmong the PGMs, platinum slipped nearly 3% on the week, while palladium was the standout, gaining more than 7%. That divergence is another reminder that this has not been a simple \"precious metals up\" or \"precious metals down\" week. It has been a week of relative-value moves, macro repricing, and traders separating the monetary metals from the more industry-sensitive corners of the complex.\n\n### Looking Ahead\n\nNext week brings the June FOMC decision on Wednesday, and that is the obvious center of gravity for gold. The market is not positioned for a rate change, but it is positioned for guidance. Traders will want to know how Chair Warsh frames the combination of a hot inflation print, still-resilient labor data, energy-market uncertainty, and a gold market that has already corrected sharply from its recent highs.\n\nThe other thing to watch is whether Friday's rebound can turn into something more durable. If gold can reclaim the lower $4,300s and stabilize, this week may look like a corrective reset inside a still-constructive longer-term trend. If it fails there, the next leg of the tape may be less about geopolitics and more about how far real-rate expectations can stretch before physical demand and haven buyers step back in.\n\nIn the meantime, traders, I hope you can get out and safely enjoy your weekend for the next couple of days. After that, I'll see you back here next week for another market recap.\n\n\n\n\n\n\n\n\n\n\n\n#### Matthew Bolden\n\n\nMatthew Bolden is an active trader and investor. His passions include writing about financial markets in a simple, pragmatic way. His work has been seen in various arenas within the world of global finance, and he has written commentary on several markets including precious metals, stocks, currencies and options.\n\nMatthew is an avid reader, student of the markets and sports enthusiast who resides in the greater Chicago area.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n### Gold Price Chart\n\n\n\n\n\n\n