/v1/palette
Beads per colour + bags
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/fusebead-api/v1/palette" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fusebead-api/v1/palette", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fusebead-api/v1/palette");
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/fusebead-api/v1/palette",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Percent mode splits a total by each colour's share (normalised by the percent sum, so it works even if they don't add to 100). Count mode just bags the counts. Bags assume ~1000 beads each — set beads_per_bag for your supplier.",
"colors": [
{
"bags": 2,
"beads": 1682,
"color": "red",
"percent": 50
},
{
"bags": 2,
"beads": 1009,
"color": "blue",
"percent": 30
},
{
"bags": 1,
"beads": 673,
"color": "white",
"percent": 20
}
],
"inputs": {
"mode": "percent",
"total_beads": 3364,
"beads_per_bag": 1000
},
"total_bags": 5,
"total_beads": 3364
},
"meta": {
"timestamp": "2026-06-06T07:13:57.399Z",
"request_id": "c816fe5f-59a5-4999-b322-ddf0387f08f8"
},
"status": "ok",
"message": "Color palette",
"success": true
}