TheCocktailAPI: A RESTful API for Cocktail Recipes

Find IBA official cocktail recipes and recipes contributed on TheCocktailApp. This is mostly a consumption-only API — only the HTTP GET method is available here. If you want to add your recipe, you're welcome to do so via TheCocktailApp.

Note that this API is no longer hosted. The data you see is coming from JSON files. You can read more about it on the API's about page.

API endpoints

Below are described the REST endpoints available that you can use to search for recipes. No authentication is required to access this API, and all resources are fully open and available.

  • List of All Recipes

    Get a list of all recipes available: /recipes

    NameDescriptionType
    idThe recipe identifier.integer
    nameThe recipe name.string
    imageThe link to the recipe image. If a contributed recipe does not have an image, there is a placeholder image from Unsplash.string
    ingredientsA comma-separated list of ingredients.string
  • List of IBA Cocktails

    Get a list of IBA Cocktail recipes only: /recipes/iba

    NameDescriptionType
    idThe recipe identifier.integer
    nameThe recipe name.string
    imageThe link to the recipe image.string
    ingredientsA comma-separated list of ingredients.string
  • Recipe by id

    Search recipe by id: /recipes/{id}

    NameDescriptionType
    idThe recipe identifier.integer
    nameThe recipe name.string
    imageAn object containing the image detailsobject
    image.urlThe link to the recipe image.string
    image.sourceThe link to the image source, e.g.: unsplash.com.string
    image.authorThe image author's name.string
    image.licenseThe license under which the image is distributed.string
    recipeCategoryThe IBA cocktails category (The unforgettables, Contemporary classics, New era drinks) or "other cocktails".string
    descriptionA brief description of the recipe.string
    recipeIngredientAnd array of objects containing ingredient details.list
    recipeIngredient.idThe ingredient identifier within this ingredient list.integer
    recipeIngredient.ingredientThe ingredient name.string
    recipeIngredient.quantityThe quantity and unit of measurement.string
    recipeGarnishA comma-seperated list of garnish.string
    recipeInstructionsAnd array of objects containing instruction details.list
    recipeInstructions.idThe instruction identifier.integer
    recipeInstructions.stepThe description of what to do.string