Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Read a shared recipe

GET
/api/shared/{token}
curl --request GET \
--url http://localhost:3000/api/shared/example

No sign-in: the link’s token alone grants read access to this one recipe, and only the fields in the answer. Every way a link can fail, from never made to stopped, gets the same 404.

token
required
string

The recipe.

Media typeapplication/json

A shared recipe as anyone with its link sees it: no notes, ratings, tags, history or ids.

object
name
required
string
description
required
string | null
servings
required
number | null
yieldText
required
string | null
prepMinutes
required
number | null
cookMinutes
required
number | null
totalMinutes
required

As given, or prep and cook added up.

number | null
diets
required
Array<string>
Allowed values: vegetarian vegan gluten-free dairy-free egg-free nut-free
nutrition
required
object
source
required

From the recipe’s site, worked out from USDA’s data, or estimated by AI.

string
Allowed values: site calculated estimate
calories

Kcal.

number
protein

Grams.

number
carbs

Grams.

number
fat

Grams.

number
fiber

Grams.

number
sugar

Grams.

number
sodium

Milligrams.

number
missing

Ingredient lines that couldn’t be counted.

Array<string>
servings

The servings it’s for; it rescales when they change.

number
sourceUrl
required
string | null
photo
required

Where its photo is, in each size, or null. The links need no sign-in.

object
full
required

For the recipe page.

string
card
required

Cropped, for previews.

string
thumb
required

A small square, for small tiles.

string
ingredients
required
Array<object>
object
id
required

Its place in the list.

string
section
required
string | null
text
required

The line as written.

string
quantity
required
number | null
quantityMax
required
number | null
unit
required
string | null
food
required
string | null
note
required
string | null
steps
required
Array<object>
object
id
required

Its place in the list.

string
section
required
string | null
text
required
string
household
required

The household that shared it.

object
name
required
string

Example

{
"name": "Lemon Chicken",
"description": "Crisp-skinned chicken in a bright pan sauce.",
"servings": 4,
"yieldText": null,
"prepMinutes": 15,
"cookMinutes": 35,
"totalMinutes": 50,
"diets": [
"gluten-free"
],
"nutrition": null,
"sourceUrl": null,
"photo": {
"full": "/api/shared/q1w2e3r4t5y6u7i8o9p0a1s2d3f4g5h6j7k8l9z0x1c/photo?size=full&v=0199e8b0",
"card": "/api/shared/q1w2e3r4t5y6u7i8o9p0a1s2d3f4g5h6j7k8l9z0x1c/photo?size=card&v=0199e8b0",
"thumb": "/api/shared/q1w2e3r4t5y6u7i8o9p0a1s2d3f4g5h6j7k8l9z0x1c/photo?size=thumb&v=0199e8b0"
},
"ingredients": [
{
"id": "i1",
"section": null,
"text": "2 lemons, juiced",
"quantity": 2,
"quantityMax": null,
"unit": null,
"food": "lemon",
"note": "juiced"
}
],
"steps": [
{
"id": "s1",
"section": null,
"text": "Sear the chicken, skin side down."
}
],
"household": {
"name": "The Riveras"
}
}

This recipe isn’t shared.

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

Too many reads of this link.

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.