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/coffee-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/coffee-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coffee-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coffee-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/coffee-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": "Masses in grams (water ≈ ml). Golden ratio ≈ 1:16–1:17; espresso ≈ 1:2; SCA targets 18–22 % extraction at 1.15–1.35 % TDS.",
        "service": "coffee-api",
        "formulae": {
            "brew_ratio": "water = coffee × ratio",
            "espresso_ratio": "yield = dose × brew_ratio",
            "extraction_yield": "EY% = (beverage_mass × TDS%) / dose"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/ratio": "Brew ratio — any two of coffee, water and ratio give the third, plus cups.",
            "GET /v1/espresso": "Espresso ratio — any two of dose, yield and brew ratio.",
            "GET /v1/extraction": "Extraction yield % and strength from dose, beverage mass (or water) and TDS."
        },
        "description": "Coffee brewing calculator: brew ratio (coffee/water/ratio), espresso ratio (dose/yield/brew ratio), and extraction yield from dose, beverage mass and TDS."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:08.312Z",
        "request_id": "9d5a474e-9622-4d35-9c77-ff805c305cb0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}