Skip to content
GET /v1/meta

Spec

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/foodcost-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "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
}