Forkify API v2 Documentation

This API provides recipes for building the forkify project in Jonas Schmedtmann's Complete JavaScript Course.

Important details

Get all recipes/Create recipe

Allowed methods:GETPOST

GET: Returns a list of recipes for a specific search query

POST: Creates a new recipe

Path:https://forkify-api.herokuapp.com/api/v2/recipes

Parameters

ParameterRequiredDescription
searchYesSearch text. For example search=pizza
keyYes (forPOST)The ForkifyAPI key

Example URL: https://forkify-api.herokuapp.com/api/v2/recipes?search=pizza&key=<insert your key>

Get recipe/Delete recipe

Allowed methods:GETDELETE

GET: Returns a single recipe

DELETE: Deletes a single recipe associated with provided API key

Path:https://forkify-api.herokuapp.com/api/v2/recipes/:id

Parameters

ParameterRequiredDescription
idYesThe id of the recipe to be fetched or deleted (part of URL)
keyYes(forDELETE)The ForkifyAPI key

Example URL:https://forkify-api.herokuapp.com/api/v2/recipes/5ed6604591c37cdc054bc886?key=<insert your key>