Aller au contenu
GET /v1/karat-to-fineness

Karat to fineness and percent

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/goldpurity-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/goldpurity-api/v1/karat-to-fineness" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/goldpurity-api/v1/karat-to-fineness", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/goldpurity-api/v1/karat-to-fineness");
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/karat-to-fineness",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Karat is the number of 24ths of a piece that is pure gold, so the fineness (parts per thousand) = karat ÷ 24 × 1000 and the gold percentage = karat ÷ 24 × 100. 24K is pure (1000‰, 100 %), 18K is 750‰ (75 %), 14K is 583‰ (58.3 %), 9K is 375‰. Hallmark stamps quote the fineness directly — 750 for 18K — so this is the conversion between the two systems jewellers and assayers move between.",
        "inputs": {
            "karat": 18
        },
        "gold_percent": 75,
        "gold_fraction": 0.75,
        "fineness_permille": 750
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:54.606Z",
        "request_id": "e0442c49-ee24-4823-bd84-f319229abe24"
    },
    "status": "ok",
    "message": "Karat to fineness",
    "success": true
}