TheCocktailDB
Free database of cocktail and mixed-drink recipes with ingredients, measures, glassware, IBA classification, and images.
Sister project to TheMealDB, TheCocktailDB is an open database of cocktails and mixed drinks. The JSON API supports search by drink name, lookup by id, random drink, filter by ingredient / category / glass / alcoholic vs non-alcoholic, and lists of all ingredients, categories, and glass types. Each drink returns measured ingredients (up to 15), instructions (with multi-language variants), glass type, IBA classification, tags, and a thumbnail. Use the public test key '1' in the path for development. Great for bartending assistants, 'mix what's in my bar' tools, and drink-pairing automations.
Free tier
Free with public test key '1' for development and education (verified live in 2026). A one-time $10 supporter fee unlocks a production key plus premium v2 endpoints (latest/popular drinks, multi-ingredient filter). Free at the point of access.Rate limits
Not published; no documented per-key limit on the free test key.Auth
API keyBase URL
https://www.thecocktaildb.com/api/json/v1/1What you'd build with it
- Bartending / cocktail-recommendation assistant
- 'What can I make with this bottle' tool via filter.php?i=
- Random drink-of-the-day content automation
- Alcoholic vs mocktail filtering for menu generation
Key endpoints
- GET
/search.php?s={name}Search cocktails by name - GET
/lookup.php?i={id}Full cocktail details by drink id - GET
/random.phpFetch a single random cocktail - GET
/filter.php?i={ingredient}Filter drinks by ingredient (e.g. Gin, Vodka) - GET
/filter.php?a=AlcoholicFilter by alcoholic / non-alcoholic - GET
/list.php?i=listList all ingredients; also ?c=list and ?g=list
Members get the runnable recipe
Sign in free to copy the example request, see a sample response, and read the gotchas.