Merran documentation API & integrations
Add recipes from several links
const url = 'http://localhost:3000/api/recipes/import/links';const options = { method: 'POST', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"urls":["https://example.com/garlic-rice","https://example.com/lemon-chicken"],"tag":"to try"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/recipes/import/links \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "urls": [ "https://example.com/garlic-rice", "https://example.com/lemon-chicken" ], "tag": "to try" }'Up to 100 links, imported one at a time in the background: follow along at /imports/{importId}, which says how each link went. A link the library has already gives back that recipe rather than a new one. With an API key, it needs the imports: write permission.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Added to every recipe it makes, like “to try”.
Example
{ "urls": [ "https://example.com/garlic-rice", "https://example.com/lemon-chicken" ], "tag": "to try"}Responses
Section titled “Responses”Importing: follow it at /imports/{importId}.
object
What brought recipes in: one link or a video that went on in the background, several links, a starter collection, Mealie, Paprika or a Merran export.
What it was: the link, Mealie’s address or the collection’s name. None for several links or a file.
Added to every recipe it brought in, like “to try”.
Whether the Imports page lists it. A single link is listed only once it goes on in the background; one that came in while someone waited isn’t.
How it’s going or went. Undone once Undo moved what it brought in to Recently deleted.
How many links or recipes it has, once it knows.
How many it’s dealt with: “Importing 12 of 52”.
Already in the household’s recipes, so not added again.
Didn’t come in.
How many recipes Undo moved to Recently deleted: fewer than came in when some were kept or deleted already. 0 when it isn’t undone.
Never got to, once it was stopped or failed.
Why the whole import stopped, when it failed.
Who started it; none for Merran.
object
Example
{ "id": "01a1e0f0-e739-758e-85c2-c9e3cd06ff15", "kind": "links", "source": null, "tag": "to try", "listed": true, "status": "done", "total": 3, "done": 3, "added": 2, "already": 0, "failed": 1, "undone": 0, "stopped": 0, "error": null, "startedBy": { "id": "01a1e0f0-e730-7501-bbce-f5e6ead7106d", "name": "Kyle" }, "createdAt": "2026-11-15T18:02:11.000Z", "finishedAt": "2026-11-15T18:02:40.000Z", "undoneAt": null}None of them is a link Merran can fetch.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}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.