/v1/alloy-mix
Alloy to add for a target karat
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"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
}