/v1/cost
Ink cost per print + run
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/screenprint-api/v1/cost" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/screenprint-api/v1/cost", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/screenprint-api/v1/cost");
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/screenprint-api/v1/cost",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Ink cost = pounds used × price per pound. This is INK only — add screens, emulsion, garments, labour and flash/cure energy for a full job cost. Per-print ink cost is usually a few cents.",
"inputs": {
"prints": 150,
"area_in2": 100,
"ink_price_per_lb": 25,
"mileage_in2_per_lb": 15000
},
"ink_pounds": 1,
"total_ink_cost": 25,
"ink_cost_per_print": 0.1667
},
"meta": {
"timestamp": "2026-06-06T07:14:01.112Z",
"request_id": "7001bda9-a3b7-4050-b89f-43622c0c7ff7"
},
"status": "ok",
"message": "Ink cost",
"success": true
}