RapidAPI logo

Sign Up

Log In

Recipes to grocery store

FREEMIUM
By tk76
Updated 3 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

Recipes to grocery store API Documentation

This API provides functionality to build a recipe site and meal planning system which can be connected to an online grocery store. For demonstration of a site implementing the API please visit https://madplan.nu. The API documentation is in progress, meaning more methods is being added during the next months.

View API Details
GETAddRecipeToMealPlan
GETGetRecipe
GETGetRecipesByFreeText
GETGetCollectedRecipes
GETRemoveRecipeFromMealPlan
GETGetTabRecipes
GETGetGroceryListByUserId
GETRemoveCollectedRecipes
GETSetMealDate
GETGetRecipesInCategory
GETGetCategories
GETSetRecipeCollectServings
GETGetOrderRecipesByPublicKey
GETSetConfirmOrderFromSupplier
GETSetConfirmItemsReceivedAtSupplier
GETGetMealBoxCategories
GETGetMealBoxesByCategoryId
GETGetMealBoxRecipes
GETGetWeeklyMealPlan
GETGetDefaultSupplierMappingByRecipe
GETGetListOfIngredientsUsedInRecipes
GETGetListsOfValues
POSTCreateRecipe
GETGetFavoriteRecipes
GETSetFavoriteRecipe
GETAddRecipeToMealPlan

Adds a recipe to the users meal plan.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
recipeidNUMBER
REQUIREDThe id of the recipe to add to the meal plan.
ServingsNUMBER
REQUIREDThe amount of servings to add.
MealDateSTRING
REQUIREDUse "0" to add to next free slot, or use format 2014-11-05T13:15:30.
methodSTRING
REQUIRED - CONSTANTThe name of the method to call.
Request Snippet
unirest.get("https://dp.p.rapidapi.com/?recipeid=10610&Servings=4&MealDate=0&method=AddRecipeToMealPlan")
.header("X-RapidAPI-Host", "dp.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://dp.p.rapidapi.com/?recipeid=10610&Servings=4&MealDate=0&method=AddRecipeToMealPlan")
.header("X-RapidAPI-Host", "dp.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication