Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: TheCocktailDB Lists API
version: '2.0'
description: Search and browse TheCocktailDB's crowd-sourced cocktail, drink, and ingredient data through the V2 API. V2 access and result limits depend on the supplied API key. Obtain access and review current terms on the official documentation page. API keys are deliberately not included in this specification.
termsOfService: https://www.thecocktaildb.com/terms_of_use.php
contact:
name: TheCocktailDB
url: https://www.thecocktaildb.com/contact.php
email: thedatadb@gmail.com
license:
name: TheCocktailDB Terms of Use
url: https://www.thecocktaildb.com/terms_of_use.php
servers:
- url: https://www.thecocktaildb.com/api/json/v2
description: Production API
tags:
- name: Lists
paths:
/{apiKey}/list.php:
get:
tags:
- Lists
summary: List filter values
description: 'Supply exactly one parameter with the literal value `list`: `c` for categories, `g` for glasses, `i` for ingredients, or `a` for alcoholic classifications.'
operationId: listFiltersV2
parameters:
- $ref: '#/components/parameters/ApiKey'
- $ref: '#/components/parameters/ListCategories'
- $ref: '#/components/parameters/ListGlasses'
- $ref: '#/components/parameters/ListIngredients'
- $ref: '#/components/parameters/ListAlcoholic'
responses:
'200':
description: Available filter values
content:
application/json:
schema:
$ref: '#/components/schemas/ListResponse'
components:
parameters:
ListIngredients:
name: i
in: query
required: false
schema:
type: string
const: list
ListCategories:
name: c
in: query
required: false
schema:
type: string
const: list
ListGlasses:
name: g
in: query
required: false
schema:
type: string
const: list
ListAlcoholic:
name: a
in: query
required: false
schema:
type: string
const: list
ApiKey:
name: apiKey
in: path
required: true
description: Your TheCocktailDB API key. No key value is stored in this specification.
schema:
type: string
minLength: 1
schemas:
ListValue:
type: object
description: Contains one of `strCategory`, `strGlass`, `strIngredient1`, or `strAlcoholic`, according to the requested list.
additionalProperties:
type:
- string
- 'null'
ListResponse:
type: object
required:
- drinks
properties:
drinks:
oneOf:
- type: array
items:
$ref: '#/components/schemas/ListValue'
- type: 'null'
externalDocs:
description: Official API documentation
url: https://www.thecocktaildb.com/documentation
x-provenance:
method: harvested
publisher: Free Cocktail API
source: https://www.thecocktaildb.com/api/spec/openapi-v2.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)