/v1/cost
Ink cost per print + run
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}