Recipe - Food - Nutrition

FREEMIUM
Verified
By David | Updated 4 days ago | Food
Popularity

9.9 / 10

Latency

536ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Recipe object - complete response format?

Rapid account: Davemorro 80
davemorro80
7 years ago

Hi, do you have an example of all the potential attributes that may be returned as a recipe? I can’t seem to find a complete example.

Rapid account: Spoonacular
spoonacular Commented 7 years ago

Hi Dave,

got ya. I checked and while I don’t have a list like the one one stripe, the response for recipe 479101 (new example id) gives you all possible fields.

Possible dish types are:

  • “main dish”, “main course”, “lunch”, “dinner”
  • “side dish”
  • “dessert”
  • “appetizer”, “antipasto”, “antipasti”, “hor d’oeuvre”, “snack”, “starter”
  • “salad”
  • “bread”
  • “breakfast”, “brunch”, “morning meal”
  • “soup”
  • “sauce”
  • “spread”, “dip”, “condiment”
  • “batter”
  • “crust”
  • “seasoning”, “marinade”
  • “frosting”, “icing”
  • “drink”, “beverage”
  • “fingerfood”

Hope that helps?

Best,
David

Rapid account: Davemorro 80
davemorro80 Commented 7 years ago

Hi David,

Thanks for sharing that link. I’m familiar with the endpoint but would like to know all the possible attributes that comprise the recipe object.

If I compare a randomly chosen recipe (#479101) with the example (#156992), I see a number of attributes that don’t exist in the example including:

  • preparationMinutes
  • cookingMinutes
  • dishTypes
    … etc.

I’m imagining something akin to how Stripe shares their objects and attributes (https://stripe.com/docs/api#charge_object), or at the least a sample recipe ID that has data for every attribute.

best
dave

Rapid account: Spoonacular
spoonacular Commented 7 years ago

Hi, what attributes do you mean?

https://market.mashape.com/spoonacular/recipe-food-nutrition#get-recipe-information gives you a complete response json for a recipe, is that what you are looking for?

Best,
David

Join in the discussion - add comment below:

Login / Signup to post new comments