金
Harga Emas API
3 endpointsFinance & CryptoIDsocial:read3 real examples
Returns world gold prices, Antam and Pegadaian gold prices in IDR, and silver prices with the rupiah exchange rate.
View as Markdown| GET | /hargaemas/world | World gold price in USD and IDR per troy ounce, gram and kilogram. |
| GET | /hargaemas/domestic | Antam and Pegadaian gold prices in IDR for each weight in grams. |
| GET | /hargaemas/silver | Silver price of one gram and one troy ounce in IDR and USD, with the rupiah exchange rate. |
world
GET
/v1/hargaemas/worldWorld gold price in USD and IDR per troy ounce, gram and kilogram.
scope social:read1 unitcached 5 minpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
idr | string |
idrChange | string |
name | string |
unit | string |
usd | string |
usdChange | string |
curl "https://api.hoshime.com/v1/hargaemas/world" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hargaemas/world", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hargaemas/world", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "idr": "73496454.04", "idrChange": "-694116.07", "name": "Ounce", "unit": "oz", "usd": "4058.65", "usdChange": "-45.94" }, { "idr": "2362965.87", "idrChange": "-22316.35", "name": "Gram", "unit": "gr", "usd": "130.49", "usdChange": "-1.48" } ], "meta": { "cached": false, "endpoint": "world", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hargaemas", "requestId": "req_2Xb9kQ…", "units": 1 } }
domestic
GET
/v1/hargaemas/domesticAntam and Pegadaian gold prices in IDR for each weight in grams.
scope social:read1 unitcached 5 minpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
antam | string |
grams | number (double) |
pegadaian | string |
curl "https://api.hoshime.com/v1/hargaemas/domestic" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hargaemas/domestic", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hargaemas/domestic", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "antam": "2480600000", "grams": 1000, "pegadaian": "2429353000" }, { "antam": "1240320000", "grams": 500, "pegadaian": "1214677000" } ], "meta": { "cached": false, "endpoint": "domestic", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hargaemas", "requestId": "req_2Xb9kQ…", "units": 1 } }
silver
GET
/v1/hargaemas/silverSilver price of one gram and one troy ounce in IDR and USD, with the rupiah exchange rate.
scope social:read1 unitcached 5 minpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
change | string |
changePercent | number (double) |
label | string |
price | string |
curl "https://api.hoshime.com/v1/hargaemas/silver" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hargaemas/silver", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hargaemas/silver", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "change": "0", "changePercent": 0, "label": "IDR/g", "price": "30144" }, { "change": "0", "changePercent": 0, "label": "IDR/oz", "price": "936543" } ], "meta": { "cached": false, "endpoint": "silver", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hargaemas", "requestId": "req_2Xb9kQ…", "units": 1 } }