/v1/meta
Spec
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}