API Documentation

Version 1.4

Available API methods


Resources

GET /api/v1.4/resources

Returns list of resources. This is used in recipe app. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh

Response

ParameterTypeDescription
recipe_liststringLatest URL for recipe_list method
recipe_category_liststringLatest URL for recipe_category_list method
special_offer_liststringLatest URL for special_offer_list method
store_location_liststringLatest URL for store_location_list method
recipe_ratingstringLatest URL for recipe_rating method
cssstringLatest URL for CSS file used in recipe app web view.
iphone_download_urlstringLink to published app in Apple App Store
android_download_urlstringLink to published app on Google Play
landing_pagestringLatest URL for css file used in recipe app.
theme_versionintTheme for Recipe App
data_versionintHelps to utilise cache
background_imagesstringTheme for Recipe App
background_mainstringTheme for Recipe App
background_invisible_headerstringTheme for Recipe App
background_empty_shopping_liststringTheme for Recipe App
mail_template_imagesstringTheme for Recipe App.

Recipe List

GET /api/v1.4/recipe_list

Returns list of recipes. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh
thumbnail_sizeintoptional parameter, requested thumbnail size in pixels, has to be a multiple of 5, e.g. 645, not 639

Response

Array where each item is recipe_detail


Recipe Detail

GET /api/v1.4/recipe_detail

Returns detail of single recipe. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh
recipe_idintrecipe ID, e.g. 1
thumbnail_sizeintoptional parameter, requested thumbnail size in pixels, has to be a multiple of 5, e.g. 645, not 639

Response

ParameterTypeDescription
idintrecipe ID
titlestringrecipe title
descriptionstringrecipe description
instructionsstringhow to cook as rich text HTML
urlurlrecipe location on website
priorityintcan be used for sorting
createddatetimex
modifieddatetimex
ingredientsarray
ParameterTypeDescription
quantityfloathow many units
unitsstringe.g. kg, tbsp, piece
titlestringingredient name
notesstringe.g. peeled, diced
product_idstringproduct unique identifier (e.g. stock keeping unit)
group_titlestringshould be grouped by this and used as a block title
categoriesarray
ParameterTypeDescription
idintcategory id (category title can change, but category id will stay the same)
parentintparent category ID
priorityintcan be used for sorting
publishintis visible to public?
titlestringcategory title, e.g. Chrismas Recipe
descriptionstringlarge description
imagesarrayURLs
thumbnailsarrayURLs
videostringvideo URL e.g. http://vimeo.com/32329926
commentsarray list
ParameterTypeDescription
contentstringactuall comment
datedatetimetime at creation
authorstringauthor name
ratingarray
ParameterTypeDescription
valuefloatrating value
votes_sumintsum of ratings
voters_sumintsum of voters (number of people voted)
serving_peopleinthow many people this recipe can serve with current ingrediants quantity/units
preparation_timeintpreparation time in minutes
cook_timeintcooking time in minutes
recommended_winesarray
ParameterTypeDescription
idintx
titlestingx
descriptionstringx
wine_typestringe.g. Red
grape_varietystringe.g. Merlot
countrystringCountry of origin, e.g. Italy
image_urlstringURL of image location
price_rangestringe.g. €6-€8
product_idstringproduct unique identifier (e.g. stock keeping unit)
related_offersarray list
ParameterTypeDescription
idintrelated offer id

Recipe Search

GET /api/v1.4/recipe_search

Search for recipes. We'll return list of recipe IDs. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh
meal_type_idintDEPRECATED, course, e.g. 903 for Desserts
category_idintcategory id, e.g. 2110 for Weekday Dinners
product_idstringwill return recipes with ingredients having product_id
keywordstringwill look into ingredients, recipe title and description
ready_timeintpreparation_time + cook_time in minutes
thumbnail_sizeintoptional parameter, requested thumbnail size in pixels, has to be a multiple of 5, e.g. 645, not 639

Response

ParameterTypeDescription
idintrecipe ID
titlestringrecipe title
descriptionstringrecipe description (excerpt)
imagesarrayURLs
thumbnailsarrayURLs
videostringvideo URL e.g. http://vimeo.com/32329926
ready_timeintpreparation_time + cook_time in minutes
categoriesarray
ParameterTypeDescription
idintcategory id (category title can change, but category id will stay the same)
parentintparent category ID
priorityintcan be used for sorting
publishintis visible to public?
titlestringcategory title, e.g. Chrismas Recipe
descriptionstringlarge description
urlurlrecipe location on website

Recipe Category List

GET /api/v1.4/recipe_category_list

Returns list of recipe categories. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh

Response

ParameterTypeDescription
idintcategory id (category title can change, but category id will stay the same)
parentintparent category ID
titlestringcategory name
descriptionstringcategory description excerpt
priorityintcan be used for sorting
publishintis visible to public?
image_thumbnailstringcategory thumbnail URL

Special Offer List

GET /api/v1.4/special_offer_list

Returns list of active and scheduled special offers. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh
filter_group_idintoptional parameter, show only offers from this group_id (e.g. filter_group_id=1491 will show "This week offers")
thumbnail_sizeintoptional parameter, requested thumbnail size in pixels, has to be a multiple of 5, e.g. 645, not 639

Response

ParameterTypeDescription
idintx
titlestringoffer name
contentstringoffer description
urlstringlink to offer details on website
priorityintcan be used for sorting
createddatetimex
modifieddatetimex
imagesarraylist of URLs
thumbnailsarrayURLs
rondelstringe.g. e10, can be empty
rondel_image_urlstringURL of rondel image, can be empty
pricestringe.g. Now "€3.14" or "Details Instore"
start_datedatetimeExact time when the offer starts to be valid
expiry_datedatetimeExact time when the offer expires
categoriesarray
ParameterTypeDescription
idintcategory id (category title can change, but category id will stay the same)
parentintparent category ID
priorityintcan be used for sorting
publishintis visible to public?
titlestringcategory title, e.g. Off-License
descriptionstringlarge description
product_idstringproduct unique identifier (e.g. stock keeping unit)
group_idintoffers should be grouped by this. Returns NULL if the offer is not groupped.
group_titlestringtitle for the group

Store Location List

GET /api/v1.4/store_location_list

Returns list of stores address. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh

Response

ParameterTypeDescription
idintinternal store ID
titlestringstore name
addressstringstreet address
citystringstore city
countystringstore county
countrystringcountry
latitudefloate.g. 52.3872369
longitudefloate.g. -9.2994745
opening_hoursstringpreformated text
phonestringcontact telephone number
faxstringcontact fax number
managerstringMr FirstName LastName
modifieddatetimelast update
categoriesarray
ParameterTypeDescription
idintcategory id (category title can change, but category id will stay the same)
parentintparent category ID
priorityintcan be used for sorting
publishintis visible to public?
titlestringcategory title, e.g. Off-License
descriptionstringlarge description

Recipe Rating

GET /api/v1.4/recipe_rating

Allow to pass rating to recipe. Make Example Call

Request

ParameterTypeDescription
formatstringAvailable values: json or xml
api_keystringidentify API consumer, testing with: abcdefgh
recipe_idintValide recipe_id from recipe_list
ratingintrating value, valid values are: 1, 2, 3, 4 or 5

Response

parametertypedescription
rating_submittedintOnly on success, otherwise now included.
rating_submittedarray Only on success, otherwise now included.
parametertypedescription
valueintnew rating value
votes_sumintdeprecated
voters_sumintcount of number of entries
messagestringDetail about result
statusint200 for success, 400 for error