Μετάβαση στο περιεχόμενο
GET /v1/pure-gold-weight

Pure gold weight in a piece

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

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

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

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

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

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

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

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

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

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