Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/centerofmass-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/centerofmass-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/centerofmass-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/centerofmass-api/v1/meta");
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/centerofmass-api/v1/meta",
    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": {
        "notes": "Lists may be given as comma-separated values (e.g. masses=1,2,3&x=0,1,2) or as JSON arrays in a POST body. Units are consistent and unit-agnostic.",
        "service": "centerofmass-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/two-body": "Barycentre distances of two masses separated by a distance.",
            "GET /v1/point-masses": "Centre of mass from lists of masses and x (and optional y, z) coordinates."
        },
        "description": "Centre of mass of a point-mass system (1D/2D/3D) and the barycentre of a two-body system."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:23.141Z",
        "request_id": "dc2d1f9b-24bf-470e-bdc7-ca09b99c735b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}