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/tnt-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/tnt-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tnt-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tnt-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/tnt-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": "Charge in kg TNT, distance in m, energy in J, overpressure in kPa/bar/psi. The cube-root law means equal Z gives equal overpressure. For education and first-order safety estimates.",
        "service": "tnt-api",
        "formulae": {
            "energy": "E = mass · 4.184 MJ/kg",
            "overpressure": "Brode (1955): ΔP(bar) from Z",
            "scaled_distance": "Z = R / W^(1/3)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/energy": "Energy from a TNT mass, or the TNT equivalent of an energy.",
            "GET /v1/overpressure": "Peak overpressure and damage assessment from scaled distance (or distance + charge).",
            "GET /v1/scaled-distance": "Hopkinson-Cranz scaled distance Z from standoff and charge (or the inverse)."
        },
        "description": "Blast-effects calculator (safety engineering): TNT-equivalent energy, Hopkinson-Cranz scaled distance and Brode peak overpressure with a damage assessment."
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:31.815Z",
        "request_id": "6c883074-1895-4a34-9a1f-66c9fe500c77"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}