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/mulch-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/mulch-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mulch-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mulch-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/mulch-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": "Set unit=m (default) or unit=ft for lengths; depth may also be given as depth_cm or depth_inches. Volume is reported in m³, cubic yards, cubic feet and litres. For structural concrete mixes use a concrete API.",
        "service": "mulch-api",
        "endpoints": {
            "GET /v1/bags": "Number of bags to supply a required volume.",
            "GET /v1/meta": "This document.",
            "GET /v1/volume": "Material volume from a bed's area (or dimensions) and depth.",
            "GET /v1/coverage": "Area a given volume covers at a depth."
        },
        "description": "Landscape material volume — mulch, topsoil, compost or gravel for a bed: volume from area and depth, coverage, and bag counts."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:21.555Z",
        "request_id": "c37a8599-140b-4646-a8cc-9d3e2bb906e4"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}