Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Today at a glance

GET
/api/today
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.

What Today shows.

Media typeapplication/json

What Today shows at a glance. A part is null when an API key can’t read its area.

object
list
required

What’s left to buy, or null for a key that can’t read the list.

object
toBuy
required

How many things on the list aren’t checked off.

number
names
required

The first three of them, in the list’s order.

Array<string>
meals
required

The planned meals they’re for, by plan entry id, each once.

Array<string>
pantry
required

What’s at home, or null for a key that can’t read the pantry.

object
useSoon
required

What to use soon, most urgent first.

Array<object>
object
id
required
string
name
required
string
amount
required

How much, as it shows: “2 lb”, “half a bag”, or empty for just “have it”.

string
quantity
required
number | null
unit
required
string | null
amountText
required
string | null
storedIn
required

Where it’s kept.

string | null
Allowed values: fridge freezer cupboard
aisle
required
string | null
useBy
required
string | null
/^\d{4}-\d{2}-\d{2}$/
meals
required

The planned meals it’s set aside for.

Array<object>
object
id
required
string
name
required
string
date
required
string
/^\d{4}-\d{2}-\d{2}$/
status
required
string
Allowed values: planned cooked skipped
onList
required

The meal’s on the shopping list and still to come: using this up leaves it short.

boolean
amount
required

How much is set aside for it: “2 lb”, or empty.

string
short
required

How much of that isn’t there any more, for a meal on the list: what to put back on it.

string | null
useSoon
required

Why to use it soon: its use-by date has gone (past) or is close (soon), or it’s fresh food bought for meals that were skipped or went by uncooked (leftover).

One of:
object
kind
required
string
Allowed values: past
date
required
string
/^\d{4}-\d{2}-\d{2}$/
createdAt
required
string format: date-time
meals
required

The planned meals something at home is set aside for.

Array<object>
object
id
required

The plan entry’s id.

string
names
required

Up to four things set aside for it, in the pantry’s order.

Array<string>
recipes
required

The recipes, or null for a key that can’t read recipes.

object
total
required

How many recipes, in all.

number
recent
required

The six newest.

Array<object>
object
id
required
string
slug
required
string
name
required
string
description
required
string | null
servings
required
number | null
totalMinutes
required

As given, or prep and cook added up.

number | null
rating
required
number | null
tags
required
Array<string>
diets
required

Diet labels worked out from the ingredients, with the household’s corrections.

Array<string>
Allowed values: vegetarian vegan gluten-free dairy-free egg-free nut-free
photo
required

Where its photo is, in each size, or null. The links change with the photo, so they can be kept.

object
full
required

For the recipe page.

string
card
required

Cropped, for recipe cards.

string
thumb
required

A small square, for small tiles.

string
lastMadeAt
required
string | null format: date-time
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
cookAgain
required

Up to six favorites to cook again: rated four stars or more and not made in three weeks, from the 48 top rated.

Array<object>
object
id
required
string
slug
required
string
name
required
string
description
required
string | null
servings
required
number | null
totalMinutes
required

As given, or prep and cook added up.

number | null
rating
required
number | null
tags
required
Array<string>
diets
required

Diet labels worked out from the ingredients, with the household’s corrections.

Array<string>
Allowed values: vegetarian vegan gluten-free dairy-free egg-free nut-free
photo
required

Where its photo is, in each size, or null. The links change with the photo, so they can be kept.

object
full
required

For the recipe page.

string
card
required

Cropped, for recipe cards.

string
thumb
required

A small square, for small tiles.

string
lastMadeAt
required
string | null format: date-time
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

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.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

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.