Cooking recipe with instructions, ingredients, timing, nutritional information, difficulty level, and author details. Used for recipe websites, cooking apps, and meal planning platforms.
https://api.mockly.codes/recipes?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/recipesGet a collection of recipes
/food/recipes/recipes/:idGet a single recipe by ID
/food/recipes/:id/recipes/metaGet resource metadata and schema
/food/recipes/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/recipes?q=laptopGET https://api.mockly.codes/recipes?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 recipes
fetch('https://api.mockly.codes/recipes?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/recipes?count=10'
)
data = response.json()curl "https://api.mockly.codes/recipes?count=10"fetch('https://api.mockly.codes/recipes?nocache=true')idintegerUnique identifier for the recipe
random_inttitlestringRecipe title or name (e.g., Classic Chocolate Chip Cookies, Beef Stroganoff)
recipe_titledescriptionstringBrief description of the recipe, its origin, or what makes it special
paragraphcuisinestringCuisine type or origin (e.g., Italian, French, Asian, American)
cuisinecategorystringRecipe category (e.g., appetizer, main course, dessert, breakfast, snack)
recipe_categorydifficultystringDifficulty level (e.g., easy, medium, hard, expert)
difficultyprep_timeintegerPreparation time in minutes before cooking begins
prep_timecook_timeintegerCooking time in minutes
cook_timeservingsintegerNumber of servings the recipe yields
servingscaloriesintegerTotal calories per serving
caloriesratingnumberAverage user rating, typically on a scale of 1-5
ratingauthorstringFull name of the recipe author or creator
nameimagestringURL to the recipe image or photo
image_urluricreated_atstringTimestamp when the recipe was created or published
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request