This API provides recipes for building the forkify project in Jonas Schmedtmann's Complete JavaScript Course.
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
Parameter | Required | Description |
---|---|---|
search | Yes | Search text. For example search=pizza |
key | Yes (forPOST) | The ForkifyAPI key |
Example URL: https://forkify-api.herokuapp.com/api/v2/recipes?search=pizza&key=<insert your
key>
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
Parameter | Required | Description |
---|---|---|
id | Yes | The id of the recipe to be fetched or deleted (part of URL) |
key | Yes(forDELETE) | The ForkifyAPI key |
Example URL:https://forkify-api.herokuapp.com/api/v2/recipes/5ed6604591c37cdc054bc886?key=<insert your
key>