Merran documentation API & integrations
Today at a glance
const url = 'http://localhost:3000/api/today';const options = { method: 'GET', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/today \ --cookie merran.session_token=<merran.session_token>What’s left to buy, what to use soon, and recipes to cook again, in one request. An API key gets the parts it can read, and the others are null; a key that can read none of the list, the pantry or the recipes is refused with 403. With an API key, it needs the any: read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”What Today shows.
What Today shows at a glance. A part is null when an API key can’t read its area.
object
What’s left to buy, or null for a key that can’t read the list.
object
How many things on the list aren’t checked off.
The first three of them, in the list’s order.
The planned meals they’re for, by plan entry id, each once.
What’s at home, or null for a key that can’t read the pantry.
object
What to use soon, most urgent first.
object
How much, as it shows: “2 lb”, “half a bag”, or empty for just “have it”.
Where it’s kept.
The planned meals it’s set aside for.
object
The meal’s on the shopping list and still to come: using this up leaves it short.
How much is set aside for it: “2 lb”, or empty.
How much of that isn’t there any more, for a meal on the list: what to put back on it.
The planned meals something at home is set aside for.
object
The plan entry’s id.
Up to four things set aside for it, in the pantry’s order.
The recipes, or null for a key that can’t read recipes.
object
How many recipes, in all.
The six newest.
object
As given, or prep and cook added up.
Diet labels worked out from the ingredients, with the household’s corrections.
Where its photo is, in each size, or null. The links change with the photo, so they can be kept.
object
For the recipe page.
Cropped, for recipe cards.
A small square, for small tiles.
Up to six favorites to cook again: rated four stars or more and not made in three weeks, from the 48 top rated.
object
As given, or prep and cook added up.
Diet labels worked out from the ingredients, with the household’s corrections.
Where its photo is, in each size, or null. The links change with the photo, so they can be kept.
object
For the recipe page.
Cropped, for recipe cards.
A small square, for small tiles.
Example
{ "list": { "toBuy": 7, "names": [ "milk", "eggs", "lemons" ], "meals": [ "0199e8b0-5a10-7a01-8b00-00000000001b" ] }, "pantry": { "useSoon": [ { "id": "0199e8b0-5a10-7a01-8b00-000000000026", "name": "chicken thighs", "amount": "2 lb", "quantity": 2, "unit": "pound", "amountText": null, "storedIn": "fridge", "aisle": "0199e8b0-5a10-7a01-8b00-000000000021", "useBy": "2026-10-18", "meals": [ { "id": "0199e8b0-5a10-7a01-8b00-00000000001b", "name": "Lemon Chicken", "date": "2026-10-17", "status": "planned", "onList": true, "amount": "2 lb", "short": null } ], "useSoon": { "kind": "soon", "date": "2026-10-18" }, "createdAt": "2026-10-15T18:30:00.000Z" } ], "meals": [ { "id": "0199e8b0-5a10-7a01-8b00-00000000001b", "names": [ "chicken thighs" ] } ] }, "recipes": { "total": 1, "recent": [ { "id": "0199e8b0-5a10-7a01-8b00-000000000006", "slug": "lemon-chicken", "name": "Lemon Chicken", "description": "Crisp chicken thighs roasted with lemon, garlic and thyme.", "servings": 4, "totalMinutes": 50, "rating": 5, "tags": [ "chicken", "dinner" ], "diets": [ "gluten-free", "dairy-free", "egg-free", "nut-free" ], "photo": { "full": "/api/recipes/0199e8b0-5a10-7a01-8b00-000000000006/photo?size=full&v=4b1c2d3e", "card": "/api/recipes/0199e8b0-5a10-7a01-8b00-000000000006/photo?size=card&v=4b1c2d3e", "thumb": "/api/recipes/0199e8b0-5a10-7a01-8b00-000000000006/photo?size=thumb&v=4b1c2d3e" }, "lastMadeAt": "2026-10-09T01:15:00.000Z", "createdAt": "2026-10-01T17:30:00.000Z", "updatedAt": "2026-10-15T18:30:00.000Z" } ], "cookAgain": [ { "id": "0199e8b0-5a10-7a01-8b00-000000000006", "slug": "lemon-chicken", "name": "Lemon Chicken", "description": "Crisp chicken thighs roasted with lemon, garlic and thyme.", "servings": 4, "totalMinutes": 50, "rating": 5, "tags": [ "chicken", "dinner" ], "diets": [ "gluten-free", "dairy-free", "egg-free", "nut-free" ], "photo": { "full": "/api/recipes/0199e8b0-5a10-7a01-8b00-000000000006/photo?size=full&v=4b1c2d3e", "card": "/api/recipes/0199e8b0-5a10-7a01-8b00-000000000006/photo?size=card&v=4b1c2d3e", "thumb": "/api/recipes/0199e8b0-5a10-7a01-8b00-000000000006/photo?size=thumb&v=4b1c2d3e" }, "lastMadeAt": "2026-10-09T01:15:00.000Z", "createdAt": "2026-10-01T17:30:00.000Z", "updatedAt": "2026-10-15T18:30:00.000Z" } ] }}Not signed in.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.