Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/cooking-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/cooking-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cooking-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cooking-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/cooking-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "name": "Cooking API",
        "notes": "Volume units are US customary (1 cup = 236.59 ml). Volume<->mass requires an ingredient (defaults to water). Densities are typical values; brands vary. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/convert",
                "params": {
                    "to": "unit (required)",
                    "from": "unit (required)",
                    "amount": "required",
                    "ingredient": "needed for volume<->mass, e.g. all-purpose-flour"
                },
                "returns": "the converted amount"
            },
            {
                "path": "/v1/ingredients",
                "params": [],
                "returns": "supported ingredients (with grams per cup) and units"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Recipe and kitchen conversions: between volume units (teaspoon, tablespoon, cup, ml, fl-oz, pint…), between mass units (g, kg, oz, lb), and — crucially — between volume and mass for a specific ingredient using its density (1 cup of all-purpose flour ≈ 125 g, 1 cup of sugar ≈ 200 g). Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:44.451Z",
        "request_id": "2d6259b2-ae04-45d6-8284-772eb12fba4c"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}