Yet another project I have been developing with the intent of seeing a Kodi Add-on one day...
Introducing
www.TheMealDB.com!
What is it?
Its an open online database of food meal recipes. There are many other sites online but none offered a nice API, so I wrote one myself
How to use it with Kodi?
You don't yet... but there is a very simple JSON API that any developer can use to write a simple add-on. The vision is to be able to use Kodi in my kitchen/bar area to look up recipes with the remote. Hopefully a developer will jump on board and write the add-on.
Why?
I basically want to bring Kodi into my kitchen. Recipe books are old school, there must be a better way!
Features
- High quality transparent PNG ingredients
- Meal image uploads
- Browse meals in sequence
- Area and Categories
Limitations
There are only a few recipes in there at the moment but I am working on a way for users to add them easily. PM me if you want beta access to this feature.
How can I help?
Test the site, see if you find any bugs.
Future
Food tags, categories, food areas, ingredient filters
Preview
API Instructions
These examples use the test Api key of "1". Please post if you want your own key for larger projects. The test key may be removed at any time if it's abused.
Code:
Search meal by name
http://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata
Lookup full meal details by id
http://www.themealdb.com/api/json/v1/1/lookup.php?i=52772
Lookup a random meal
http://www.themealdb.com/api/json/v1/1/random.php
Latest Meals
http://www.themealdb.com/api/json/v1/1/latest.php
List all Categories, Area, Ingredients
http://www.themealdb.com/api/json/v1/1/list.php?c=list
http://www.themealdb.com/api/json/v1/1/list.php?a=list
http://www.themealdb.com/api/json/v1/1/list.php?i=list
Filter by ingredient
http://www.themealdb.com/api/json/v1/1/filter.php?i=chicken%20breast
Filter by Category
http://www.themealdb.com/api/json/v1/1/filter.php?c=Seafood
NOTE: If you have a finished project, you will need an API key, please PM me or post in this thread.
I have been looking for a recipe site with a decent api, because I want it on kodi in my kitchen.
Suggestion: scaling recipe ingredients up/down for different numbers.
Hello zag, I am using your project, to make a mobile application of recipes. And I have several questions.
In the main activity I want to appear several random recipes as on your home page as I make the call?
Second question I want in recipe details to show me all the ingredients, but for this I need the ingredients to be the one array you have not thought to make an array in the json with all inside and a separate list as now, to perform the search For an ingredient.
I am using your project for an institute work and the truth that I find interesting your proposal for this I give you this idea, with the ingredients of having them separately and in an array will facilitate the use of your APPI.
Thank you very much for everything and forgive my bad English I do not speak very well.
Thanks for the interest, the site has been neglected for a while as I was hoping someone would take up the task of writing a Kodi Add-on then it becomes really useful
I added a random selection api method which should show 10 random recipes like the front page
Code:
http://www.themealdb.com/api/json/v1/1/randomselection.php
As for ingredients, you should be able to iterate over the ingredient fields as they are sequential like "ingredient1", "ingredient2" etc.
If you want a list of ALL ingredients then here it is so far, but bear in mind it may get bigger over time:
Code:
151 proof rum
7-up
Absinthe
Absolut citron
Absolut Kurant
Absolut Vodka
Advocaat
Aejo rum
Ale
Allspice
Almond Extract
Amaretto
Anchovies
Anchovy fillet
Angelica Root
Angostura Bitters
Anis
Anise
Anisette
Apple Brandy
Apple Cider
Apple Juice
Apple
Applejack
Apricot Brandy
Apricot
Aquavit
A¤ejo rum
Baby Plum Tomatoes
Bacardi Limon
Bacardi
Bacon
Bailey's irish cream
Baileys irish cream
Banana liqueur
Banana
Basil leaves
Basil
Basmati rice
Beef Stock
Beer
Benedictine
Bitter lemon
Bitters
Black Pepper
Blackberry Brandy
Blackberry schnapps
Blackcurrant cordial
Blackcurrant squash
Blended Whiskey
Blue Curacao
Blueberry schnapps
Bourbon
Bow Tie Pasta
Bramley Apples
Brandy
Brown Rice
Brown Sugar
Butter, softened
Butter
Butterscotch schnapps
Cachaca
Calvados
Campari
Carbonated water
Cardamom
Carrot
Carrots
Caster Sugar
Cayenne pepper
Celeriac
Celery salt
Chambord raspberry liqueur
Champagne
Charlotte potatoes
Cheese
Cherry Brandy
Cherry Grenadine
Cherry
Chicken Breasts
Chicken Stock
Chicken
Chilled Butter
Chinese Broccoli
Chocolate ice-cream
Chocolate syrup
Chocolate
Chopped Garlic
Chopped Onion
Chopped parsley
Chopped Tomatoes
Cider
Cinnamon
Citrus vodka
Clove
Cloves
Club Soda
Coca-Cola
Cocktail Olive
Cocoa Powder
Coconut liqueur
Coconut Milk
Coconut rum
Coffee brandy
Coffee liqueur
Coffee
Coffeemate
Cognac
Cointreau
Cold Water
Condensed milk
Coriander Leaves
Coriander
Corn Starch
Corn syrup
Corn Tortillas
Cornstarch
Corona
Courgette
Cranberries
Cranberry Juice
Cream of Coconut
Cream Sherry
Cream
Creme De Banane
Creme de Cacao
Creme de Cassis
Creme Fraiche
Crown Royal
Cubed Feta Cheese
Cucumber
Daiquiri mix
Dark Chocolate
Dark Creme de Cacao
Dark Rum
Dark Soy Sauce
Digestive Biscuits
Dijon Mustard
Doner Meat
Dried Oregano
Dry Vermouth
Dubonnet Rouge
Egg White
Egg Yolk
Egg
Eggs
Enchilada Sauce
Erin Cream
Espresso
Everclear
Extra Virgin Olive Oil
Fanta
Farfalle
Fennel bulb
Fennel Seeds
Feta Cheese
Flaked Almonds
Flour
Food coloring
Frangelico
Free-range Egg, Beaten
Free-range Eggs, Beaten
Fresh Basil
Fresh Thyme
Freshly Chopped Parsley
Fries
Fruit juice
Fruit punch
Fruit
Galliano
Garlic Sauce
Garlic
Gatorade
Gin
Ginger Ale
Ginger
Glycerine
Gold Tequila
Goldschlager
Gouda Cheese
Grain Alcohol
Grand Marnier
Granulated Sugar
Grapefruit Juice
Grated Cheese
Green Chartreuse
Green Creme de Menthe
Green Ginger Wine
Green Olives
Green Red Lentils
Grenadine
Ground Almonds
Ground Ginger
Guinness stout
Guinness
Half-and-half
Hazelnut liqueur
Heavy cream
Honey
Hot Beef Stock
Hot Chocolate
Hot Damn
Hot Sauce
Hotsauce
Ice-Cream
Ice
Irish cream
Irish Whiskey
Italian fennel sausages
Italian sausages
Italian Seasoning
Jack Daniels
Jgermeister
Johnnie Walker
J„germeister
Kahlua
Kirschwasser
Kiwi
Kool-Aid
Kummel
Lager
Lamb loin chops
Lamb mince
Lasagne Sheets
Lasagne
Lean Minced Beef
Lemon Juice
Lemon Peel
Lemon-lime soda
lemon
Lemonade
Lentils
Lettuce
Licorice Root
Light Cream
Light Rum
Lime Juice
Lime
Limeade
Malibu Rum
Malt Vinegar
Maple syrup
Maraschino Cherry
Maraschino Liqueur
Marshmallows
Melon liqueur
Melon vodka
Midori melon liqueur
Milk
Minced Beef
Minced Garlic
Mint
Mountain Dew
Mozzarella Balls
Mozzarella
Mushroom
Mushrooms
Mustard
Nutmeg
Nuts
Olive Oil
Olive
Onion
Onions
Orange Bitters
Orange Curacao
Orange Juice
Orange Peel
Orange
Oregano
Orgeat Syrup
Oyster Sauce
Papaya
Parmesan Cheese
Parmesan
Parmigiano-Reggiano
Parsley
Peach Nectar
Peach Schnapps
Peanut Oil
Peas
Pecorino
Penne Rigate
Pepper
Peppermint extract
Peppermint Schnapps
Pepsi Cola
Pernod
Peychaud bitters
Pina colada mix
Pineapple Juice
Pineapple
Pink lemonade
Pisang Ambon
Pisco
Pitted black olives
Plain Chocolate
Plain Flour
Plum Tomatoes
Port
Potato
Potatoes
Powdered Sugar
Prawns
Raisins
Raspberry Jam
Raspberry liqueur
Raspberry Vodka
Raw King Prawns
Red Chile Flakes
Red Chili Flakes
Red Hot Chili Flakes
Red Lentils
Red Wine
Rhubarb
Ricard
Rice Stick Noodles
Rigatoni
Rock Salt
Roses sweetened lime juice
Rum
Rumple Minze
Sake
Salmon
Salt
Sambuca
Sarsaparilla
Scotch
Sesame Seed
Shallot
Shallots
Sherry
Shredded Cheese
Shredded Monterey Jack Cheese
Sloe Gin
Small.png
Smoky paprika
Soda Water
Sour Apple Pucker
Sour Mix
Southern Comfort
Soy Sauce
Soya Milk
Soya Sauce
Spaghetti
Spiced Rum
Spinach
Sprite
Squeezed Orange
Stir-fry Vegetables
Strawberries
Strawberry liqueur
Strawberry Schnapps
Sugar Syrup
Sugar
Sweet and Sour
Sweet Cream
Sweet Vermouth
Tabasco Sauce
Tea
Tennessee whiskey
Tequila
Thyme
Tia Maria
Tinned Tuna
Tomato Juice
Tomato Puree
Tomato
Tomatoe
Tomatoes
Tonic Water
Triple Sec
Tuna
Turnip
Turnips
Vanilla extract
Vanilla Ice-Cream
Vanilla vodka
Vanilla
Vegan Butter
Vermouth
Vine leaves
Vinegar
Vodka
Water
Whipped Cream
Whipping Cream
Whiskey
White Creme de Menthe
White Rum
White Vinegar
White Wine
Whole wheat
Wild Turkey
Wine
Worcestershire Sauce
Wormwood
Yoghurt
Yukon Jack
Zucchini
Thanks a lot, for the help
your information has been very useful, I will do an array list I still do not know, but I will do XD
(2017-01-27, 11:11)dberov Wrote: [ -> ]Is the API down atm ?
Yep it was, I didn't know anyone was using it yet
I still need some time to populate the database properly with nice meals.
I've brought it back online.
Zag I am new here so I can't send you a private message .. will there be an api for this? I found it and it's really a cool idea!!
I'm building a module for this:
https://magicmirror.builders/
And have not been able to [until now] to find a decent recipe list!! This one is perfect!!
Was wondering if you didn't mind me using it for that? Thanks!
Sure go ahead! API instructions are in post 2 of this thread.
As I say, I'm going to import a lot more recipes at some point with nice graphics. Just need the time to trawl instagram properly
I appreciate that very much!! I do have it working already but I just thought I'd ask because I don't want to overstep here.
I'm using the example with the random item as it only calls 1 and I'm going to convert and call it recipe of the day....
It'll hit your server once, put the info in a file then read it.. after that it calls back once per day to get another recipe.
I really do like this... it's really awesome!!
Wow that magicmirrors thing is cool. Thanks @
cowboysdude