dummyapi
🍳

Recipes

9 endpoints

200 recipes with ingredients, step-by-step instructions, tags, cuisine types, and meal categories.

Base URLhttps://dummyapi.codesmash.in/api
GET

Get all recipes. Supports ?limit&skip.

🔗

GET https://dummyapi.codesmash.in/api/recipes

?limit?skip
fetch('https://dummyapi.codesmash.in/api/recipes')
.then(res => res.json())
.then(console.log);
ℹ️
Pagination — By default you will get 30 items. Use ?limit and ?skip to paginate through all items. Max limit is 200.
?limit=10Number of items to return (default: 30, max: 200)
?skip=10Number of items to skip (default: 0)
// By default you get 30 items
fetch('https://dummyapi.codesmash.in/api/recipes?limit=10&skip=0')
.then(res => res.json())
.then(console.log);
// Get next page (items 11–20)
fetch('https://dummyapi.codesmash.in/api/recipes?limit=10&skip=10')
.then(res => res.json())
.then(console.log);
// Get ALL 200 at once
fetch('https://dummyapi.codesmash.in/api/recipes?limit=200')
.then(res => res.json())
.then(console.log);
GET

Get a single recipe.

🔗

GET https://dummyapi.codesmash.in/api/recipes/:id

fetch('https://dummyapi.codesmash.in/api/recipes/:id')
.then(res => res.json())
.then(console.log);
GET

Get all unique recipe tags.

🔗

GET https://dummyapi.codesmash.in/api/recipes/tags

fetch('https://dummyapi.codesmash.in/api/recipes/tags')
.then(res => res.json())
.then(console.log);
GET

Get recipes by tag name.

🔗

GET https://dummyapi.codesmash.in/api/recipes/tag/:name

fetch('https://dummyapi.codesmash.in/api/recipes/tag/:name')
.then(res => res.json())
.then(console.log);
GET

Get recipes by meal type (breakfast, lunch, dinner, etc.).

🔗

GET https://dummyapi.codesmash.in/api/recipes/meal/:type

fetch('https://dummyapi.codesmash.in/api/recipes/meal/:type')
.then(res => res.json())
.then(console.log);
POST

Create a new recipe (demo).

🔗

POST https://dummyapi.codesmash.in/api/recipes

fetch('https://dummyapi.codesmash.in/api/recipes', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({})
})
.then(res => res.json())
.then(console.log);
PUT

Update a recipe.

🔗

PUT https://dummyapi.codesmash.in/api/recipes/:id

fetch('https://dummyapi.codesmash.in/api/recipes/:id', {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({})
})
.then(res => res.json())
.then(console.log);
DELETE

Delete a recipe.

🔗

DELETE https://dummyapi.codesmash.in/api/recipes/:id

fetch('https://dummyapi.codesmash.in/api/recipes/:id', {
method: 'DELETE',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({})
})
.then(res => res.json())
.then(console.log);
Buy me a coffee