Μετάβαση στο περιεχόμενο
GET /v1/karat-to-fineness

Karat to fineness and percent

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/goldpurity-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}