TheMealDB.com - An Open Recipe Database with API
#46
A good source for tested recipes is The Food Lab. Unraveling the mysteries of home cooking through science! But I'm not sure how the ins and outs of copyright apply to using their recipes.
Reply
#47
(2018-02-04, 19:26)docwra Wrote:
(2018-02-04, 16:49)ahmedhussain Wrote: Infact it would be great if the category api also returns the image urls.. That would be awesome! Big Grin
Ok good ideas, get good results Smile

http://www.themealdb.com/api/json/v1/1/categories.php
 
 Thank you Smile ... Works like a charm... Image sizes can be a bit big though.. Awesome work Sir! Smile Smile
Reply
#48
Hi @docwra,

I looked at the following service api,

http://www.themealdb.com/api/json/v1/1/s...=Arrabiata

And found that this has multiple recipe Ingredient fields in JSON. Smile
I think this can be changed; Return ingredients in a JSON Array. This strategy will reduce the amount of fields coming back in JSON. Each array element can have an ingredient along with its quantity as an object.

So instead of strIngredient1: "penne rigate", and strMeasure1: "1 pound"

I'll have something coming back like this,

Ingredients[
  Ingredient {
    strIngredient: "penne rigate"
    strMeasure: "1 pound"
    strThumb: "http://www.themealdb.com/api/..../ingredientImageThumb.png"
  }
]

Is there a possibility to change the API? 

Thanks.
Reply
#49
Hi,

I looked at the following service api,

http://www.themealdb.com/api/json/v1/1/s...=Arrabiata

And found that this has multiple recipe Ingredient fields in JSON. Smile
I think this can be changed; Return ingredients in a JSON Array. This strategy will reduce the amount of fields coming back in JSON. Each array element can have an ingredient along with its quantity as an object.

So instead of strIngredient1: "penne rigate", and strMeasure1: "1 pound"

I'll have something coming back like this,

Ingredients[
  Ingredient {
    strIngredient: "penne rigate"
    strMeasure: "1 pound"
    strThumb: "http://www.themealdb.com/api/..../ingredientImageThumb.png"
  }
]

Is there a possibility to change this API?
Reply
#50
Yep that is something I have considered but this feature may come to v2 of the API.

For now I cannot break the API for other users, but it will be upgraded in the future with v2.
Image Formally chef Zag
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
TheMealDB.com - An Open Recipe Database with API51