Docs
You can use examples below to check how DummyJSON works.
Recipes
Get all recipes
Show outputfetch('https://dummyjson.com/recipes') .then(res => res.json()) .then(console.log);
Get a single recipe
Show outputfetch('https://dummyjson.com/recipes/1') .then(res => res.json()) .then(console.log);
Search recipes
Show outputfetch('https://dummyjson.com/recipes/search?q=Margherita') .then(res => res.json()) .then(console.log);
Limit and skip recipes
You can pass "limit" and "skip" params to limit and skip the
results for pagination, and use limit=0 to get all items.
You can pass "select" as query params with comma-separated values
to select specific data.
Show outputfetch('https://dummyjson.com/recipes?limit=10&skip=10&select=name,image') .then(res => res.json()) .then(console.log);
Get all recipes tags
Show outputfetch('https://dummyjson.com/recipes/tags') .then(res => res.json()) .then(console.log);
Get recipes by a tag
Show outputfetch('https://dummyjson.com/recipes/tag/Pakistani') .then(res => res.json()) .then(console.log);
Get recipes by meal type
Show outputfetch('https://dummyjson.com/recipes/meal-type/snack') .then(res => res.json()) .then(console.log);