Docs/APIs/Gold Price

Gold Price

Get Current Gold Price

OperationalCredits 2 per callp50 224msFinanceStar

Overview

A gold rate API for apps and stores that show the live gold price. Requests retrieve real-time spot gold valuations denominated in USD across ounce, gram, and kilogram weights, accompanied by 24-hour change values and price direction. Paid tiers can query prices across 172 currency codes, retrieve 24-hour high and low ranges, and include hourly price snapshots spanning the preceding day. The last 30 daily closes are stored too: paid plans get the 7- and 30-day change and the 30-day high, low, average and volatility, and daily=true returns the closes themselves.

Live Test Gold Price API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/goldprice
curl "https://api.apiverve.com/v1/goldprice?currency=USD&hourly=true&daily=true" \
  -H "x-api-key: your_api_key_here"

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
currencyOptionalPremiumstringThe currency to get the price in
default USD
hourlyOptionalPremiumbooleanInclude hourly price data for the past 24 hours
dailyOptionalPremiumbooleanInclude the daily closing price per ounce for the last 30 days

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "status": "ok",
  "error": null,
  "data": {
    "currency": "USD",
    "gram": 129.25,
    "kilogram": 129251.92,
    "ounce": 4020.19,
    "lastUpdated": "2026-10-27T12:00:00.000Z",
    "change24h": 11.88,
    "change24hPct": 0.3,
    "changeDirection": "up",
    "high24h": 4020.19,
    "low24h": 4008.31,
    "change7d": -102.49,
    "change7dPct": -2.49,
    "change30d": -265.95,
    "change30dPct": -6.2,
    "high30d": 4198.91,
    "low30d": 3993.62,
    "average30d": 4132.9,
    "volatility30d": 0.7777,
    "daily": [
      {
        "date": "2026-09-28",
        "price": 4198.34
      },
      {
        "date": "2026-09-29",
        "price": 4129.1
      },
      {
        "date": "2026-09-30",
        "price": 4181.49
      },
      {
        "date": "2026-10-01",
        "price": 4182.57
      },
      {
        "date": "2026-10-02",
        "price": 4185.41
      },
      {
        "date": "2026-10-03",
        "price": 4137.55
      },
      {
        "date": "2026-10-04",
        "price": 4137.54
      },
      {
        "date": "2026-10-05",
        "price": 4131.88
      },
      {
        "date": "2026-10-06",
        "price": 4122.7
      },
      {
        "date": "2026-10-07",
        "price": 4132.77
      },
      {
        "date": "2026-10-08",
        "price": 4125.82
      },
      {
        "date": "2026-10-09",
        "price": 4198.91
      },
      {
        "date": "2026-10-10",
        "price": 4195.82
      },
      {
        "date": "2026-10-11",
        "price": 4195.81
      },
      {
        "date": "2026-10-12",
        "price": 4186.27
      },
      {
        "date": "2026-10-13",
        "price": 4188.41
      },
      {
        "date": "2026-10-14",
        "price": 4158.44
      },
      {
        "date": "2026-10-15",
        "price": 4144.7
      },
      {
        "date": "2026-10-16",
        "price": 4182.94
      },
      {
        "date": "2026-10-17",
        "price": 4164.68
      },
      {
        "date": "2026-10-18",
        "price": 4164.67
      },
      {
        "date": "2026-10-19",
        "price": 4180.55
      },
      {
        "date": "2026-10-20",
        "price": 4122.68
      },
      {
        "date": "2026-10-21",
        "price": 4120.33
      },
      {
        "date": "2026-10-22",
        "price": 4091.63
      },
      {
        "date": "2026-10-23",
        "price": 4010.3
      },
      {
        "date": "2026-10-24",
        "price": 3993.62
      },
      {
        "date": "2026-10-25",
        "price": 3993.62
      },
      {
        "date": "2026-10-26",
        "price": 4008.31
      },
      {
        "date": "2026-10-27",
        "price": 4020.19
      }
    ],
    "marketStatus": "open",
    "karatGram": {
      "24k": 129.25,
      "22k": 118.48,
      "21k": 113.09,
      "18k": 96.94,
      "14k": 75.4,
      "10k": 53.85
    },
    "formatted": {
      "ounce": "$4,020.19",
      "gram": "$129.25",
      "kilogram": "$129,251.92",
      "ounceWords": "four thousand, twenty dollars",
      "kilogramWords": "one hundred twenty-nine thousand, two hundred fifty-two dollars"
    }
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
currencystring"USD"ISO 4217 currency code for price values
gramnumber129.25Gold price per gram in specified currency
kilogramnumber129251.92Gold price per kilogram in specified currency
ouncenumber4020.19Gold price per troy ounce in specified currency
lastUpdatedstring"2026-10-27T12:00:00.000Z"ISO 8601 timestamp of last price update
change24hnumber11.88Price change vs 24 hours ago in currency units
change24hPctPremiumnumber0.3Percentage price change vs 24 hours ago
changeDirectionstring"up"Direction of 24h change: up, down, or unchanged
high24hPremiumnumber4020.19Highest price in the past 24 hours
low24hPremiumnumber4008.31Lowest price in the past 24 hours
change7dPremiumnumber-102.49Change in the ounce price over the last 7 days, in the requested currency; null until a close from then is stored
change7dPctPremiumnumber-2.49Percent change in the ounce price over the last 7 days; null until a close from then is stored
change30dPremiumnumber-265.95Change in the ounce price over the last 30 days, in the requested currency; null until a close from then is stored
change30dPctPremiumnumber-6.2Percent change in the ounce price over the last 30 days; null until a close from then is stored
high30dPremiumnumber4198.91Highest daily close per ounce over the last 30 days, in the requested currency; null until two days are stored
low30dPremiumnumber3993.62Lowest daily close per ounce over the last 30 days, in the requested currency; null until two days are stored
average30dPremiumnumber4132.9Mean daily close per ounce over the last 30 days, in the requested currency; null until two days are stored
volatility30dPremiumnumber0.7777Standard deviation of the daily percent changes over the last 30 days (not annualized); null until two days are stored
dailyPremiumarray[30]Gold's daily closes per ounce for the last 30 days, oldest first (when daily=true). Today's row is the latest price
datePremiumstring"2026-09-28"UTC date of the close (YYYY-MM-DD)
pricePremiumnumber4198.34Closing price per ounce, converted at that day's exchange rate
marketStatusstring"open"open or closed by regular spot trading hours (Sunday 18:00 to Friday 17:00 New York time, daily 17:00-18:00 break); exchange holidays are not reflected
karatGramPremiumobject{...}Gold value per gram by karat in the requested currency, at the purity fraction (karat / 24) of the spot gram price
24kPremiumnumber129.25Price per gram of 24-karat gold (pure, equal to gram)
22kPremiumnumber118.48Price per gram of 22-karat gold (91.7%)
21kPremiumnumber113.09Price per gram of 21-karat gold (87.5%)
18kPremiumnumber96.94Price per gram of 18-karat gold (75%)
14kPremiumnumber75.4Price per gram of 14-karat gold (58.3%)
10kPremiumnumber53.85Price per gram of 10-karat gold (41.7%)
formattedobject{...}
ouncePremiumstring"$4,020.19"Formatted ounce price with currency symbol
gramPremiumstring"$129.25"Formatted gram price with currency symbol
kilogramPremiumstring"$129,251.92"Formatted kilogram price with currency symbol
ounceWordsPremiumstring"four thousand, twenty dollars"Ounce price spelled out in words with currency
kilogramWordsPremiumstring"one hundred twenty-nine thousand, two hundred fifty-two dollars"Kilogram price spelled out in words with currency

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

Use cases

Jewelry Store Pricing
E-commerce jewelers adjust retail bullion and custom jewelry checkout prices dynamically based on live gold rates per gram.
Portfolio Asset Valuation
Wealth tracking dashboards recalculate physical precious metal portfolio balances by multiplying recorded gold ounces against incoming spot rates.
Pawn Shop Appraisals
When customers bring in scrap scrap gold, collateral loan software pulls the latest kilogram and gram benchmarks to calculate fair lending values.
Trading Alert Triggers
Market watch bots monitor 24-hour change direction and absolute price shifts to push notifications when bullion moves significantly.

Other ways to use Gold Price

Set up Gold Price on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Finance:

Was this page helpful?