Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 9
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

php:
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.
Reply
#51
Thanks. 

One last thing I noticed was that all the objects for any JSON are wrapped around meals array. 

For e.g,

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

The response for Recipe Details is wrapped in an array, which can be avoided because, for one recipe, you can only have one recipe detail/instructions. But if you were thinking differently, please set me straight. Smile
Reply
#52
YoutubeUrl is missing in the search API,

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

Can we please have the YoutubeUrl added?

Thanks.
Reply
#53
That meal was just missing a video, not all meals have a video.

I have added it for now.
Reply
#54
Hi,

Trying to load Images through Picasso in my code for Android application. One thing I noticed was that all the images are missing "https://" prefix. I am adding "https://" prefix manually to each image. can we please add the right prefixes to the json?

@OtherDevs: Remember to add a prefix "https://" instead of "http://". 3rd party libs may not be able to handle the 301 redirects.

Thank you.
Reply
#55
Yes this was a recent change, that I meant to fix last week. I will fix on Monday.
Reply
#56
Filter recipe by name/id contains a strYoutube in JSON for videos link. Some of urls are non youtube Urls which can mislead allot of developers to think that its only youtube videos urls here. For the future reference if this can be changed to something different that would be great.
https://www.themealdb.com/api/json/v1/1/...hp?i=52772

For e.g:
Here is the URL for Recipe, "Bread and Butter Pudding",
https://cooking.nytimes.com/recipes/1018529-coq-au-vin
This is from NY Times. Would need an account to get a video. 

Another thing is Youtube Mobile APIs only needs the video Id. For example, This will reduce the work of extracting the ids for other developers. Not sure, how this will work for other video urls but I am just thinking out loud to perhaps divide and conquer. youtubeVideoId can contain videoIds for youtube and there can be a separate videoUrl which can contain video urls which are non youtube.
Reply
#57
Links should be all fixed now, I have added some new recipes as well.
Reply
#58
(2018-03-03, 14:51)docwra Wrote: Links should be all fixed now, I have added some new recipes as well.
 Please see the following Recipe,

https://www.themealdb.com/api/json/v1/1/...%20Pudding

This still contains NYtimes Url, i.e. https://cooking.nytimes.com/recipes/1018529-coq-au-vin
Reply
#59
Thanks, fixed. Hopefully there are not any more.

I will add some URL checking to the strYoutube field to prevent that kind of mistake.
Reply
#60
I also completed the recipes that were missing videos. All recipes should now have a youtube vid.

Thanks for the feedback.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 9

Logout Mark Read Team Forum Stats Members Help
TheMealDB.com - An Open Recipe Database with API3
This forum uses Lukasz Tkacz MyBB addons.