# Gold Price API

> Gold Price fetches real-time spot gold prices per troy ounce, gram, and kilogram. Each response includes the update timestamp, 24-hour price change, and market direction, while paid plans add custom currencies, karat prices, 7- and 30-day changes, 30-day stats, and hourly and daily history.

**Endpoint:** `GET https://api.apiverve.com/v1/goldprice`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/goldprice

## Overview

A gold price API with a free plan, for apps and stores that show the live gold spot price. The Free plan returns the USD spot price per ounce, gram and kilogram with the 24-hour change. 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.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

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

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `currency` | string | No | The currency to get the price in. default USD. Premium field |
| `hourly` | boolean | No | Include hourly price data for the past 24 hours. default false. Premium field |
| `daily` | boolean | No | Include the daily closing price per ounce for the last 30 days. default false. Premium field |

## Response fields

- `currency` — string · ISO 4217 currency code for price values
- `gram` — number · Gold price per gram in specified currency
- `kilogram` — number · Gold price per kilogram in specified currency
- `ounce` — number · Gold price per troy ounce in specified currency
- `lastUpdated` — string · ISO 8601 timestamp of last price update
- `change24h` — number · Price change vs 24 hours ago in currency units
- `change24hPct` — number · Percentage price change vs 24 hours ago · (premium)
- `changeDirection` — string · Direction of 24h change: up, down, or unchanged
- `high24h` — number · Highest price in the past 24 hours · (premium)
- `low24h` — number · Lowest price in the past 24 hours · (premium)
- `change7d` — number · Change in the ounce price over the last 7 days, in the requested currency; null until a close from then is stored · (premium)
- `change7dPct` — number · Percent change in the ounce price over the last 7 days; null until a close from then is stored · (premium)
- `change30d` — number · Change in the ounce price over the last 30 days, in the requested currency; null until a close from then is stored · (premium)
- `change30dPct` — number · Percent change in the ounce price over the last 30 days; null until a close from then is stored · (premium)
- `high30d` — number · Highest daily close per ounce over the last 30 days, in the requested currency; null until two days are stored · (premium)
- `low30d` — number · Lowest daily close per ounce over the last 30 days, in the requested currency; null until two days are stored · (premium)
- `average30d` — number · Mean daily close per ounce over the last 30 days, in the requested currency; null until two days are stored · (premium)
- `volatility30d` — number · Standard deviation of the daily percent changes over the last 30 days (not annualized); null until two days are stored · (premium)
  - `daily.0.date` — string · UTC date of the close (YYYY-MM-DD) · (premium)
  - `daily.0.price` — number · Closing price per ounce, converted at that day's exchange rate · (premium)
- `marketStatus` — string · 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
- `karatGram` — object · Gold value per gram by karat in the requested currency, at the purity fraction (karat / 24) of the spot gram price · (premium)
  - `karatGram.24k` — number · Price per gram of 24-karat gold (pure, equal to gram) · (premium)
  - `karatGram.22k` — number · Price per gram of 22-karat gold (91.7%) · (premium)
  - `karatGram.21k` — number · Price per gram of 21-karat gold (87.5%) · (premium)
  - `karatGram.18k` — number · Price per gram of 18-karat gold (75%) · (premium)
  - `karatGram.14k` — number · Price per gram of 14-karat gold (58.3%) · (premium)
  - `karatGram.10k` — number · Price per gram of 10-karat gold (41.7%) · (premium)
- `formatted` — object
  - `formatted.ounce` — string · Formatted ounce price with currency symbol · (premium)
  - `formatted.gram` — string · Formatted gram price with currency symbol · (premium)
  - `formatted.kilogram` — string · Formatted kilogram price with currency symbol · (premium)
  - `formatted.ounceWords` — string · Ounce price spelled out in words with currency · (premium)
  - `formatted.kilogramWords` — string · Kilogram price spelled out in words with currency · (premium)

## Sample response

```json
{
  "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"
    }
  }
}
```

## 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.

## SDKs

- **npm** — `npm install @apiverve/goldprice` (https://www.npmjs.com/package/@apiverve/goldprice)
- **PyPI** — `pip install apiverve-goldprice` (https://pypi.org/project/apiverve-goldprice/)
- **NuGet** — `dotnet add package APIVerve.API.GoldPrice` (https://www.nuget.org/packages/APIVerve.API.GoldPrice)
- **Source** — https://github.com/apiverve/goldprice-api

## More

- Full reference: https://docs.apiverve.com/ref/goldprice
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
