Get Similar Recipes

GET

/v1/feed?type=related&itemId=:recipeId

Find recipes that are similar to the given one. Fetching similar recipes implemented on top of Feed API where the client requests related type

By default only Recipe content type is returned, however, in the future, the support will be added to other returned types, such as Products, Featured groups of recipes, etc. This will be controlled by allowedTypes parameter

Parameters

ATTRIBUTE

TYPE

DESCRIPTION

limit

integer

This is the maximum number of objects that may be returned

Default value: 16

before

string

This is the cursor to return data on a page before it.

after

string

This is the cursor to return data from a next page.

id

string

Feed identifier

country

string

Country in ISO 3166-1 alpha-2 format e.g. GB, US, ...

Default value: GB

language

string

Language in ISO 639-1 format e.g. en, it, de ...

Default value: en

allowedContent

array

List of feed types

Possible values: recipe, link, group.

Default value: recipe

labels

array [string]

excludeIngredients

array [string]

recipes should not have any of these ingredients

filterKey

string

Filter by a group allows to get items related to specific group. Example: category::quick-and-easy

tags

array

List of feed recommendation tags

Possible values: easyDinners, dinners, trending, healthy.

fields

array [string]

Extra fields to return on recipe

Sample Request

curl "https://graph.whisk.com/v1/feed?type=related&itemId=9773cb7eca5d11e7ae7e42010a9a0035&limit=3" \
    -H "Accept: application/json" \
    -H "Authorization: Token <Access-Token>"

Response

See Recipe Feed response documentation

Last updated