TheCocktailDB serves cocktail recipes, ingredients, and photos. The 1 in the path is the public test key.
The test key 1 in the URL works for development. Production use needs a paid key in its place.
Full reference: https://www.thecocktaildb.com/api.php
Ingredients come as numbered fields, strIngredient1…
curl "https://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita"
{
"drinks": [
{
"idDrink": "11007",
"strDrink": "Margarita",
"strDrinkAlternate": null,
"strTags": "IBA,ContemporaryClassic",
"strVideo": null,
"strCategory": "Ordinary Drink",
"strIBA": "Contemporary Classics",
"strAlcoholic": "Alcoholic",
"strGlass": "Cocktail glass",
"strInstructionsZH-HANS": "用石灰片擦拭玻璃杯的边缘,使盐粘在玻璃杯上。注意仅润湿外缘并在其上撒盐。盐应该出现在饮用者的嘴唇上,并且不要混入鸡尾酒中。将其他成分与冰一起摇匀,然后小心地倒入玻璃杯中。",
"strInstructionsZH-HANT": "用石灰片擦拭玻璃杯的邊緣,使鹽黏在玻璃杯上。注意僅潤濕外緣並在其上撒鹽。鹽應該出現在飲用者的嘴唇上,並且不要混入雞尾酒中。將其他成分與冰一起搖勻,然後小心地倒入玻璃杯中。",
"strDrinkThumb": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
"strIngredient1": "Tequila",
"strIngredient2": "Triple sec",
"strIngredient3": "Lime juice"
},
{
"idDrink": "11118",
"strDrink": "Blue Margarita",
"strDrinkAlternate": null,
"strTags": null,
"strVideo": null,
"strCategory": "Ordinary Drink",
"strIBA": null,
"strAlcoholic": "Alcoholic",
"strGlass": "Cocktail glass",
"strInstructions": "Rub rim of cocktail glass with lime juice. Dip rim in coarse salt. Shake tequila, blue curacao, and lime juice with ice, strain into the salt-rimmed glass, and serve.",
"strInstructionsES": "Frote el borde de la copa de cóctel con zumo de lima. Sumerja el borde en sal gruesa. Agite el tequila, el curaçao azul y el zumo de lima con hielo, cuele en el vaso con el borde salado y sirva.",
"strInstructionsDE": "Den Rand des Cocktailglases mit Limettensaft einreiben. Den Rand in grobes Salz tauchen. Tequila, blauen Curacao und Limettensaft mit Eis schütteln, in das mit Salz umhüllte Glas abseihen und servieren.",
"strInstructionsFR": "Frotter le bord du verre à cocktail avec du jus de citron vert. Tremper le bord dans du gros sel. Agiter la tequila, le curaçao bleu et le jus de citron vert avec de la glace, filtrer dans le verre à bord salé et servir.",
"strInstructionsIT": "Strofinare il bordo del bicchiere da cocktail con succo di lime. Immergere il bordo nel sale grosso. Shakerare tequila, blue curacao e succo di lime con ghiaccio, filtrare nel bicchiere bordato di sale e servire.",
"strInstructionsZH-HANS": "用酸橙汁擦拭鸡尾酒杯的边缘。将边缘浸入粗盐中。将龙舌兰酒、蓝柑橘酒和酸橙汁加冰摇匀,滤入镶有盐的玻璃杯中即可享用。"
}
]
}
curl https://www.thecocktaildb.com/api/json/v1/1/random.php
{
"drinks": [
{
"idDrink": "11870",
"strDrink": "Orange Oasis",
"strDrinkAlternate": null,
"strTags": null,
"strVideo": null,
"strCategory": "Ordinary Drink",
"strIBA": null,
"strAlcoholic": "Alcoholic",
"strGlass": "Highball glass",
"strInstructions": "Shake brandy, gin, and orange juice with ice and strain into a highball glass over ice cubes. Fill with ginger ale, stir, and serve.",
"strInstructionsES": "Agitar el brandy, la ginebra y el zumo de naranja con hielo y colar en un vaso highball sobre cubitos de hielo. Rellenar con ginger ale, remover y servir.",
"strInstructionsDE": "Brandy, Gin und Orangensaft mit Eis schütteln und in ein Highball-Glas über Eiswürfel abseihen. Mit Ginger Ale füllen, umrühren und servieren.",
"strInstructionsFR": "Agiter le brandy, le gin et le jus d'orange avec de la glace et filtrer dans un verre highball sur des glaçons. Remplir de ginger ale, remuer et servir.",
"strInstructionsIT": "Shakerare brandy, gin e succo d'arancia con ghiaccio e filtrare in un bicchiere highball con cubetti di ghiaccio. Riempi con ginger ale, mescola e servi.",
"strInstructionsZH-HANS": "将白兰地、杜松子酒和橙汁加冰摇匀,滤入装有冰块的高球杯中。倒入姜汁汽水,搅拌,即可食用。"
}
]
}
curl "https://www.thecocktaildb.com/api/json/v1/1/filter.php?i=Gin"
{
"drinks": [
{
"strDrink": "3-Mile Long Island Iced Tea",
"strDrinkThumb": "https://www.thecocktaildb.com/images/media/drink/rrtssw1472668972.jpg",
"idDrink": "15300"
}
]
}