Gold Price API/Documentation

API Documentation

Base URL: https://www.sentisignal.com/api/v1/gold

Authentication

All endpoints (except /currencies and /waitlist) require an API key. Pass it in one of two ways:

# Option 1: Authorization header (recommended)
curl -H "Authorization: Bearer YOUR_API_KEY" https://www.sentisignal.com/api/v1/gold/price

# Option 2: x-api-key header
curl -H "x-api-key: YOUR_API_KEY" https://www.sentisignal.com/api/v1/gold/price

Get your API key at sentisignal.com/dashboard/api.

GET /price

Get the current gold price in one or more currencies.

Parameters

NameTypeDefaultDescription
currenciesstringUSDComma-separated currency codes (e.g., USD,EUR,GBP)
weight_unitstringtroy_oztroy_oz, gram, or kg

Example

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.sentisignal.com/api/v1/gold/price?currencies=USD,EUR,GBP&weight_unit=gram"

Response

{
  "status": "success",
  "timestamp": "2026-03-01T12:00:00Z",
  "data": {
    "metal": "gold",
    "price_date": "2026-03-01",
    "source": "NBP (National Bank of Poland)",
    "prices": {
      "USD": { "price": 65.77, "unit": "gram", "currency": "USD" },
      "EUR": { "price": 60.84, "unit": "gram", "currency": "EUR" },
      "GBP": { "price": 52.21, "unit": "gram", "currency": "GBP" }
    },
    "fx_source": "ECB (European Central Bank)",
    "fx_date": "2026-03-01"
  },
  "meta": { "credits_used": 1, "credits_remaining": 99, "plan": "free" }
}

GET /price/historical

Get historical gold prices for a date range.

Parameters

NameTypeDefaultDescription
start_datestringrequiredStart date (YYYY-MM-DD)
end_datestringrequiredEnd date (YYYY-MM-DD)
currenciesstringUSDComma-separated currency codes
intervalstringdailydaily, weekly, or monthly
weight_unitstringtroy_oztroy_oz, gram, or kg

Example

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.sentisignal.com/api/v1/gold/price/historical?start_date=2026-02-01&end_date=2026-02-28&currencies=USD,EUR"

GET /price/convert

Convert a specific weight of gold to a currency value.

Parameters

NameTypeDefaultDescription
currencystringrequiredTarget currency (e.g., EUR)
weightnumber1Amount of gold
weight_unitstringtroy_oztroy_oz, gram, or kg
datestringlatestPrice date (YYYY-MM-DD, optional)

Example

# How much is 10 grams of gold worth in EUR?
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://www.sentisignal.com/api/v1/gold/price/convert?currency=EUR&weight=10&weight_unit=gram"

GET /currencies

List all supported currencies. No authentication required.

curl https://www.sentisignal.com/api/v1/gold/currencies

Error Codes

CodeMessageDescription
400Invalid parametersMissing or malformed query parameters
401Invalid API keyMissing, invalid, expired, or revoked API key
403Plan restrictionRequested currency or date range not available on your plan
429Rate limit exceededPer-minute or monthly limit reached. Check Retry-After header
500Server errorInternal error. Contact support if persistent

Rate Limits

Rate limit information is included in response headers:

HeaderDescription
X-RateLimit-LimitRequests per minute allowed
X-RateLimit-RemainingRemaining requests this minute
X-RateLimit-Limit-MonthlyMonthly request limit
X-RateLimit-Remaining-MonthlyRemaining requests this month
Retry-AfterSeconds to wait (only on 429 responses)