# Usagold — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Get live and historical gold and silver prices from USAGOLD, including daily, weekly, and monthly data to track price trends over time. Access current market rates or retrieve price history summaries to monitor precious metal values.

**Category:** Finance & Markets | **Website:** [usagold.com/](https://usagold.com/) | **Docs:** [parse.bot/marketplace/66765ce3-cb58-40fe-b3e9-cd1c764b4f1b/usagold-com-api](https://parse.bot/marketplace/66765ce3-cb58-40fe-b3e9-cd1c764b4f1b/usagold-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-usagold-com-api-66765ce3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_gold_price_by_date

Get the closing price for a specific date and metal. Returns the price and daily change. Only trading days have data; weekends and holidays return not-found.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Date in YYYY-MM-DD format. Must be a trading day. |
| `metal` | string | No | Metal type to query. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-usagold-com-api-66765ce3/get_gold_price_by_date \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","metal":"<string>"}'
```

### get_gold_price_history_summary

Get summary price statistics showing Yesterday, Last Week, and Last Month closing prices with changes versus the prior period. Provides a quick snapshot of recent price movement.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `metal` | string | No | Metal type to query. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-usagold-com-api-66765ce3/get_gold_price_history_summary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"metal":"<string>"}'
```

### get_gold_prices_by_month

Get all daily prices for a specific month, year, and metal. Returns an array of prices for each trading day in the month. Trading days only; weekends and holidays are omitted.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `metal` | string | No | Metal type to query. |
| `month` | string | Yes | Month as a number from 1 to 12. |
| `year` | string | Yes | Year in YYYY format (e.g. 2026). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-usagold-com-api-66765ce3/get_gold_prices_by_month \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"metal":"<string>","month":"<string>","year":"<string>"}'
```

### get_live_prices

Get live gold and silver spot prices with current change amount and direction. Returns both metals in a single call. Prices update during market hours.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-usagold-com-api-66765ce3/get_live_prices \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_weekly_gold_prices

Get weekly gold or silver closing prices for a specific year. Returns one price per week, ordered most recent first. Each entry contains the week-ending date and closing price.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `metal` | string | No | Metal type to query. |
| `year` | string | No | Year in YYYY format (e.g. 2026). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-usagold-com-api-66765ce3/get_weekly_gold_prices \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"metal":"<string>","year":"<string>"}'
```
