/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/foodcost-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/foodcost-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/foodcost-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/foodcost-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"notes": "One consistent currency in, costs and percentages out. Ingredient costs can be line costs or quantities × unit prices. For generic margin maths use a margin API and for unit conversion a cooking API.",
"service": "foodcost-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/plate": "Menu price ↔ food-cost %, gross profit, markup and prime cost.",
"GET /v1/period": "Period COGS and food/pour cost % from inventory and sales.",
"GET /v1/recipe": "Recipe cost and cost per portion from ingredient costs and yield loss."
},
"description": "Restaurant food-costing maths: recipe/plate costing with yield loss, menu pricing to a target food-cost %, and period cost of goods (food & pour cost)."
},
"meta": {
"timestamp": "2026-06-05T21:48:48.098Z",
"request_id": "dabc119c-a8b4-4124-9d45-f33c63faad7a"
},
"status": "ok",
"message": "Meta",
"success": true
}