Recipe - Food - Nutrition

פרמיום
Verified
על ידי David | מְעוּדכָּן 17日前 | Food
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

517ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Recipe object - complete response format?

Rapid account: Davemorro 80
davemorro80
7年前

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年前

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年前

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年前

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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות