Ir al contenido
GET /v1/pure-gold-weight

Pure gold weight in a piece

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/goldpurity-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/goldpurity-api/v1/pure-gold-weight" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/goldpurity-api/v1/pure-gold-weight", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/goldpurity-api/v1/pure-gold-weight");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/goldpurity-api/v1/pure-gold-weight",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "note": "The pure (fine) gold in a piece = its total weight × the gold fraction (karat ÷ 24). A 10 g 18K ring holds 7.5 g of actual gold and 2.5 g of alloy metals (copper, silver, etc.). This is the fine-gold content that drives the intrinsic metal value and what a refiner pays on — the rest is the alloy that gives the colour and hardness.",
        "inputs": {
            "karat": 18,
            "total_weight_g": 10
        },
        "alloy_g": 2.5,
        "pure_gold_g": 7.5,
        "gold_fraction": 0.75
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:54.680Z",
        "request_id": "5a6bddc3-1271-462e-a89d-37a7ab35c971"
    },
    "status": "ok",
    "message": "Pure gold weight",
    "success": true
}