/v1/weight
Sheet / ream / M-weight
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/paper-api/v1/weight" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/paper-api/v1/weight", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/paper-api/v1/weight");
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/paper-api/v1/weight",
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": "Sheet weight = gsm × sheet area (m²). Ream = 500 sheets; M-weight is the weight of 1000 sheets in pounds.",
"input": {
"gsm": 80,
"count": 500,
"area_m2": 0.06237
},
"total_kg": 2.4948,
"m_weight_lb": 11.0002,
"ream_500_kg": 2.4948,
"sheet_grams": 4.9896,
"total_grams": 2494.8,
"ream_500_grams": 2494.8
},
"meta": {
"timestamp": "2026-06-04T01:59:13.760Z",
"request_id": "3849415b-e9cc-42ed-b82e-c406269f3b4c"
},
"status": "ok",
"message": "Sheet / ream weight",
"success": true
}