Support
The API and site will always remain free to access at its basic level. If you love our service and want extra features you can sign up as a Patreon supporter for $2
You can cancel anytime. This allows us to pay for the servers and bandwidth and develop new features and content.

Test API Key
You can use the test API key "1" during development of your app or for educational use(see test links below)
However you must sign up to Patreon if you want a production API key if releasing publicly on an appstore.

API Production Key Upgrade
All Patreon supporters have access to the beta version of the API which allows mutiple ingredient filters.
Supporters also get special lookups for Popular and Recent Cocktails. You can also list the full database rather than limited to 100 items.
You also get access to the latest and multi random image API methods.
Finally you also get access to adding your own cocktails and images. Please sign up on Patreon then email us to get the upgraded.

Contact
Email: [email protected] (please state if you are a Patreon Supporter)

API Methods using the developer test key '1' as the API key

Search cocktail by name
https://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita

List all cocktails by first letter
https://www.thecocktaildb.com/api/json/v1/1/search.php?f=a

Search ingredient by name
https://www.thecocktaildb.com/api/json/v1/1/search.php?i=vodka

Lookup full cocktail details by id
https://www.thecocktaildb.com/api/json/v1/1/lookup.php?i=11007

Lookup ingredient by ID
https://www.thecocktaildb.com/api/json/v1/1/lookup.php?iid=552

Lookup a random cocktail
https://www.thecocktaildb.com/api/json/v1/1/random.php

Lookup a selection of 10 random cocktails (only available to $2+ Patreon supporters)
https://www.thecocktaildb.com/api/json/v1/1/randomselection.php

List Popular cocktails (only available to $2+ Patreon supporters)
https://www.thecocktaildb.com/api/json/v1/1/popular.php

List most latest cocktails (only available to $2+ Patreon supporters)
https://www.thecocktaildb.com/api/json/v1/1/latest.php

Search by ingredient
https://www.thecocktaildb.com/api/json/v1/1/filter.php?i=Gin
https://www.thecocktaildb.com/api/json/v1/1/filter.php?i=Vodka

Filter by multi-ingredient (only available to $2+ Patreon supporters)
https://www.thecocktaildb.com/api/json/v1/1/filter.php?i=Dry_Vermouth,Gin,Anis

Filter by alcoholic
https://www.thecocktaildb.com/api/json/v1/1/filter.php?a=Alcoholic
https://www.thecocktaildb.com/api/json/v1/1/filter.php?a=Non_Alcoholic

Filter by Category
https://www.thecocktaildb.com/api/json/v1/1/filter.php?c=Ordinary_Drink
https://www.thecocktaildb.com/api/json/v1/1/filter.php?c=Cocktail

Filter by Glass
https://www.thecocktaildb.com/api/json/v1/1/filter.php?g=Cocktail_glass
https://www.thecocktaildb.com/api/json/v1/1/filter.php?g=Champagne_flute

List the categories, glasses, ingredients or alcoholic filters
https://www.thecocktaildb.com/api/json/v1/1/list.php?c=list
https://www.thecocktaildb.com/api/json/v1/1/list.php?g=list
https://www.thecocktaildb.com/api/json/v1/1/list.php?i=list
https://www.thecocktaildb.com/api/json/v1/1/list.php?a=list


Images
Drink thumbnails
Add /preview to the end of the cocktail image URL
https://www.thecocktaildb.com/images/media/drink/vrwquq1478252802.jpg/preview (100x100 pixels)


Ingredient Thumbnails
https://www.thecocktaildb.com/images/ingredients/gin-Small.png (100x100 pixels)
https://www.thecocktaildb.com/images/ingredients/gin-Medium.png (350x350 pixels)
https://www.thecocktaildb.com/images/ingredients/gin.png (700x700 pixels)