TheCocktailDB API
thecocktaildb.com
Cocktail recipe database - search, browse by letter, ingredients, and instructions.
- Actions
- 4
- Category
- Food Dining
- Login
- Not required
- Output
- JSON
Call the TheCocktailDB API
Submit a task, then poll the job until it settles. This example runs act_thecocktaildb_cocktail_detail_ssr.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_thecocktaildb_cocktail_detail_ssr",
"params": {
"drink_slug": "11007-margarita"
}
}'4 actions on thecocktaildb.com
Read
Cocktail Details
act_thecocktaildb_cocktail_detail_ssrread1 credit / callReturns full cocktail detail with ingredients, measures, instructions, and glass.
- drink_slug
- string · required
Cocktail Homepage
act_thecocktaildb_cocktail_homepageread1 credit / callReturns popular and featured cocktails from the homepage with images and links.
Cocktails by Letter
act_thecocktaildb_cocktail_browse_by_letterread1 credit / callReturns cocktails whose names start with a given letter with images and links.
- letter
- string · required
Cocktail Search
act_thecocktaildb_cocktail_search_resultsread1 credit / callReturns cocktails matching a name with images and links.
- search_query
- string · required
TheCocktailDB API questions
- Is there an API for TheCocktailDB?
- TheCocktailDB does not offer a public data API for this, but Anakin Wire provides 4 maintained endpoints for thecocktaildb.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape TheCocktailDB data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when thecocktaildb.com changes its markup, Anakin updates the action.
- Do I need a TheCocktailDB account?
- No. Every TheCocktailDB action listed here runs anonymously — no account and no credentials required.
- What does the TheCocktailDB API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Food Dining APIs
101 Cookbooks
Whole-foods recipe blog - recipe categories, full recipes with ingredients, and article roundups.
Allmenus
Allmenus - restaurant search by city, menus with dish prices, and cuisine filters.
Allrecipes
Allrecipes - recipe search by keyword or ingredient, categories, and recipe details.
Ambitiouskitchen
Recipe site - categories, recipe details, ingredients, steps, and ratings.
Applebee's
Applebee's - menu, item prices, locations, and nutrition info.
Arbys
Arby's quick-service chain - menu categories, prices, nutrition facts, and store locations.