Sources › Finance › GoldPrice › Spot

GoldPrice Spot API

Harga spot emas & perak live (per oz/gram/kg), any currency.

GoldPriceGET /spotAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:goldprice/spot

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 minute.

Parameters

NameTypeInRequiredDescription
currencystringqueryNoKode mata uang ISO (mis. USD, IDR, EUR). Default USD. Example: USD

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:goldprice/spot?currency=USD" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:goldprice/spot?currency=USD", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:goldprice/spot",
    params={"currency":"USD"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:goldprice",
  "data": {
    "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
  },
  "timestamp": "2026-06-14T06:24:09Z"
}

Frequently asked questions

How do I call the GoldPrice Spot API?

Send a GET request to https://api.zapi.ink/v1/finance:goldprice/spot with your Zapi key in the x-api-key header. Parameters — optional: currency. The response is JSON in the { project, data, timestamp } envelope.

What does the GoldPrice Spot API return?

Harga spot emas & perak live (per oz/gram/kg), any currency. The example response has the fields asOf, gold, silver, currency, timestamp, goldSilverRatio.

Is the GoldPrice Spot API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the GoldPrice Spot API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "goldprice" and endpoint "spot".

What other GoldPrice API endpoints are there?

It has 3 endpoints. Besides Spot: News, Performance.