Vai al contenuto
GET /v1/weight

Weight on a body

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/gravitation-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/gravitation-api/v1/weight" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gravitation-api/v1/weight", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gravitation-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/gravitation-api/v1/weight",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "body": "mars",
        "formula": "W = m·g_body; ratio = g_body/g_earth.",
        "mass_kg": 70,
        "weight_n": 259.7,
        "weight_kgf": 26.48203,
        "ratio_to_earth": 0.378315,
        "weight_on_earth_n": 686.4655,
        "surface_gravity_ms2": 3.71
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:41.308Z",
        "request_id": "99494b52-88de-4382-a812-40e4d66e4111"
    },
    "status": "ok",
    "message": "Weight on a body",
    "success": true
}