Merran documentation API & integrations
A found recipe's photo
GET
/api/discover/{discoveryId}/photos/{photo}
const url = 'http://localhost:3000/api/discover/0199e8b0-5a10-7a01-8b00-00000000002d/photos/a1b2c3d4e5f60718293a4b5c';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/discover/0199e8b0-5a10-7a01-8b00-00000000002d/photos/a1b2c3d4e5f60718293a4b5c \ --cookie merran.session_token=<merran.session_token>A small copy, as WebP, kept by Merran when the search found the recipe, so Discover doesn’t load photos from other sites. With an API key, it needs the recipes: read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”discoveryId
required
string
Example
0199e8b0-5a10-7a01-8b00-00000000002dphoto
required
string
Example
a1b2c3d4e5f60718293a4b5cResponses
Section titled “Responses”The photo.
Media typeimage/webp
string format: binary
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." } }}No such search, or it has no such photo.
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.