Recipe categories

GET
/v1beta/recipes/categories

This endpoint allows to get all available categories for a specific language.

Parameters

ATTRIBUTETYPEDESCRIPTION
countrystring

Country ISO code. If it is not specified will be gb.

limitinteger

Categories number.

labelsarray [string]

Sample Request

curl "https://graph.whisk.com/v1beta/recipes/categories?country=gb&limit=5" \ -H "Accept: application/json" \ -H "Authorization: Token <Access-Token>"

Response

The result is a list of all available categories corresponding to required region. You can use these categories for filtering recipes insearch.

ATTRIBUTETYPEDESCRIPTION
categories*array [RecipeCategory]
pagingPaging

RecipeCategory

ATTRIBUTETYPEDESCRIPTION
id*string
displayName*string
imageResponsiveImage

Paging

ATTRIBUTETYPEDESCRIPTION
cursors*Cursors

Cursors

ATTRIBUTETYPEDESCRIPTION
afterstring
beforestring

Sample Response

{ "categories": [ { "id": "quick-and-easy", "displayName": "Quick and easy", "image": { "url": "https://whisk-res.cloudinary.com/image/upload/v1523894700/custom_upload/ba4d7363cd46c736675d2cc08754f5bc.png", "width": 800, "height": 800 } }, { "id": "healthy-recipes", "displayName": "Healthy Recipes", "image": { "url": "https://whisk-res.cloudinary.com/image/upload/v1523894700/custom_upload/ba4d7363cd46c736675d2cc08754f5bc.png", "width": 800, "height": 800 } }, { "id": "holidays-and-events", "displayName": "Holidays and Events", "image": { "url": "https://whisk-res.cloudinary.com/image/upload/v1523894700/custom_upload/ba4d7363cd46c736675d2cc08754f5bc.png", "width": 800, "height": 800 } }, { "id": "baking", "displayName": "Baking", "image": { "url": "https://whisk-res.cloudinary.com/image/upload/v1523894700/custom_upload/ba4d7363cd46c736675d2cc08754f5bc.png", "width": 800, "height": 800 } }, { "id": "bbq-and-grilling", "displayName": "BBQ & Grilling", "image": { "url": "https://whisk-res.cloudinary.com/image/upload/v1523894700/custom_upload/ba4d7363cd46c736675d2cc08754f5bc.png", "width": 800, "height": 800 } } ], "paging": { "cursors": { "after": "eyJpZCI6ImRlc3NlcnRzIiwiaW5kZXgiOjR9" } } }