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

Alloy to add for a target karat

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

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

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

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

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

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

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

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

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

{
    "data": {
        "note": "To bring fine gold down to a target karat, the fine gold must end up as karat ÷ 24 of the total, so the total weight = the fine gold ÷ that fraction and the alloy to add = the total − the fine gold. Starting from 7.5 g of pure gold for 18K gives a 10 g total, so add 2.5 g of alloy. Lower karats need more alloy; 24K needs none. This is the master-alloy batching a goldsmith does to hit a karat from refined gold.",
        "inputs": {
            "pure_gold_g": 7.5,
            "target_karat": 18
        },
        "alloy_to_add_g": 2.5,
        "total_weight_g": 10,
        "target_fineness_permille": 750
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:54.510Z",
        "request_id": "516eb088-4b6d-4e44-8c6d-1f9601d7bac1"
    },
    "status": "ok",
    "message": "Alloy mix",
    "success": true
}