TheCocktailDB Filter API

Filter cocktails by attributes

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/thecocktaildb-filter-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

thecocktaildb-filter-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: TheCocktailDB Filter API
  description: An open, crowd-sourced database of cocktails and drinks from around the world with a free API. Search cocktails by name, ingredient, category, glass type, or alcoholic content. Includes detailed recipes, measurements, and images.
  version: '1.0'
  contact:
    url: https://www.thecocktaildb.com/
  x-generated-from: documentation
servers:
- url: https://www.thecocktaildb.com/api/json/v1/1
  description: Production API server (free tier with API key 1)
security: []
tags:
- name: Filter
  description: Filter cocktails by attributes
paths:
  /filter.php:
    get:
      operationId: filterCocktails
      summary: TheCocktailDB Filter Cocktails by Attribute
      description: Filter cocktails by a single ingredient ('i'), alcoholic content ('a'), category ('c'), or glass type ('g'). Multi-ingredient filtering is available to premium subscribers.
      tags:
      - Filter
      parameters:
      - name: i
        in: query
        description: Filter by ingredient name (e.g. vodka)
        required: false
        schema:
          type: string
          example: vodka
      - name: a
        in: query
        description: Filter by alcoholic status
        required: false
        schema:
          type: string
          enum:
          - Alcoholic
          - Non_Alcoholic
          example: Alcoholic
      - name: c
        in: query
        description: Filter by category
        required: false
        schema:
          type: string
          example: Cocktail
      - name: g
        in: query
        description: Filter by glass type
        required: false
        schema:
          type: string
          example: Cocktail glass
      responses:
        '200':
          description: List of matching cocktails (summary view)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilterResponse'
              examples:
                FilterCocktails200Example:
                  summary: Default filterCocktails 200 response
                  x-microcks-default: true
                  value:
                    drinks:
                    - strDrink: Margarita
                      strDrinkThumb: https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg
                      idDrink: '11007'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    FilterResponse:
      type: object
      description: Filtered cocktail list with summary information only
      properties:
        drinks:
          type: array
          description: Array of cocktail summaries
          items:
            type: object
            properties:
              strDrink:
                type: string
                description: Cocktail name
                example: Margarita
              strDrinkThumb:
                type: string
                description: Thumbnail URL
              idDrink:
                type: string
                description: Cocktail ID
                example: '11007'