curl --request GET \
--url 'https://api.fastforex.io/metals/spot?api_key='import requests
url = "https://api.fastforex.io/metals/spot?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/metals/spot?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/metals/spot?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/metals/spot?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/metals/spot?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/metals/spot?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bid": "4127.32",
"ask": "4127.65",
"mid": "4127.49",
"spread": "0.33",
"metal": "XAU",
"currency": "USD",
"unit": "oz_t",
"tsp": 1793870621899,
"dtm": "2026-11-05T09:23:41Z",
"cross_rate": false,
"source": "otc_aggregate",
"source_instrument": "XAUUSD",
"purity": "1000",
"purity_name": "Pure Gold Spot",
"ms": 6
}Metal Spot Price
Spot price for a single metal, in the currency, unit of mass and purity you ask for.
The instrument actually quoted is chosen from the metal, currency and unit together, and is reported as source_instrument. Where no instrument is quoted directly in the requested currency, the price is crossed via USD and cross_rate is true - this consumes an additional FX product call and widens the bid/ask gap.
curl --request GET \
--url 'https://api.fastforex.io/metals/spot?api_key='import requests
url = "https://api.fastforex.io/metals/spot?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/metals/spot?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/metals/spot?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/metals/spot?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/metals/spot?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/metals/spot?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bid": "4127.32",
"ask": "4127.65",
"mid": "4127.49",
"spread": "0.33",
"metal": "XAU",
"currency": "USD",
"unit": "oz_t",
"tsp": 1793870621899,
"dtm": "2026-11-05T09:23:41Z",
"cross_rate": false,
"source": "otc_aggregate",
"source_instrument": "XAUUSD",
"purity": "1000",
"purity_name": "Pure Gold Spot",
"ms": 6
}Query Parameters
Purity to price at, for precious metals only - ignored for base metals. Either a code from /metals/purities, or any custom fineness between 0 and 1000 exclusive of zero. Omit for the quoted (pure) price. A purity code from /metals/purities (e.g. '750'), or any custom fineness in parts per thousand between 1 and 1000. A custom value is echoed back with a purity_name of 'custom'.
"750"
Response
Success
A spot price converted to the requested currency, unit and purity. The *_name fields appear only when verbose is set. grade fields appear for base metals, purity fields for precious metals.