LiveOunce 4,158.64 $ +1.24%21k 84.20 JODUpdated 17:59
العربية

Jordan gold price API

The same data the site displays is available as JSON and CSV for any site, app or spreadsheet, free of charge, provided you credit GoldPrice JO with a link to the site.

Current price

Returns today’s price for every karat in JOD and USD, shop sell and buy prices, ounce, lira and bar prices, and the change from the previous day. Refreshes every 5 minutes.

GET https://goldpricejo.com/api/v1/prices

Daily history

Returns a daily series (open, high, low, close in USD per ounce, plus the 21k and 24k gram in JOD). Use days from 7 to 3650, or from and to as YYYY-MM-DD.

GET https://goldpricejo.com/api/v1/history?days=365
GET https://goldpricejo.com/api/v1/history.csv?from=2024-01-01&to=2024-12-31

JavaScript example

const r = await fetch('https://goldpricejo.com/api/v1/prices');
const data = await r.json();
console.log(data.local.sell['21'], 'JOD per gram (21k)');

Google Sheets example

=IMPORTDATA("https://goldpricejo.com/api/v1/history.csv?days=30")

Terms

  • License: CC BY 4.0. Show "Source: GoldPrice JO" with a link to https://goldpricejo.com wherever the data is displayed.
  • Fair use: one request per minute per application. The data does not change faster than every 5 minutes.
  • No warranty. The numbers are indicative, not a trading offer.
  • Fields may be added but will not be removed without notice on this page.

Related pages