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/propane-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/propane-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/propane-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/propane-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/propane-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": "US units. unit=lb treats tank_size as a cylinder's propane weight (20/30/40 lb); unit=gal treats it as a bulk tank's water capacity, filled to 80 %. 4.24 lb/gal, 91,452 BTU/gal. For vehicle fuel economy or the ideal gas law use a different API.",
        "service": "propane-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/tank": "Usable propane (lb & gal) and total BTU for a cylinder or bulk tank.",
            "GET /v1/refill": "Fill cost and operating cost per hour from a price per gallon.",
            "GET /v1/burntime": "How long a tank runs an appliance of a given BTU/hr rating."
        },
        "description": "Propane / LPG tank maths: usable fill, BTU energy content, appliance burn time, and refill economics."
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:06.387Z",
        "request_id": "73f3eeff-b49e-4443-82fb-99e42b652933"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}