TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Get a random recipe

GEThttps://api.testingapis.com/api/Recipes/randomSign in to see this endpoint's URL

Responses

200
A random recipe.
404
There are no recipes.
500
Unexpected server error.

Example

Request
curl -X GET "https://api.testingapis.com/api/Recipes/random" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "id": 1,
  "title": "Spicy Thai Basil Chicken",
  "cuisine": "Thai",
  "prepTime": 15,
  "cookTime": 10,
  "servings": 4,
  "difficulty": "medium",
  "ingredients": ["500g chicken breast", "1 cup thai basil leaves", "… 5 more items"],
  "instructions": ["Dice the chicken into small cubes.", "Mince garlic and slice chilies.", "… 5 more items"],
  "image": "https://picsum.photos/seed/recipe1/600/400",
  "rating": 4.7,
  "tags": ["spicy", "quick", "asian"]
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.