# Gold Spot Price

The world gold price in USD and IDR, per ounce, gram, and kilogram, with the day's movement.

- Method: `GET`
- Path: `/v1/gold/spot`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/gold/spot \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "units": [
      {
        "unit": "ounce",
        "usd": 4368.24,
        "usd_change": -55.72,
        "idr": 78082946.6,
        "idr_change": -754896.31
      },
      {
        "unit": "gram",
        "usd": 140.44,
        "usd_change": -1.79,
        "idr": 2510425.03,
        "idr_change": -24270.48
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-18T16:32:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-18T17:10:15.000Z"
  }
}
```