Free Cocktail API Lookup API

Look up full details by ID.

OpenAPI Specification

free-cocktail-api-lookup-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Free Cocktail Filter Lookup API
  description: TheCocktailDB Free API provides access to a vast database of cocktail recipes, ingredients, glassware, and images. Search by name, ingredient, category, glass, or alcohol content, look up details by ID, list available filters, or fetch a random cocktail.
  version: '1.0'
  contact:
    name: TheCocktailDB
    url: https://www.thecocktaildb.com/api.php
servers:
- url: https://www.thecocktaildb.com/api/json/v1/{apiKey}
  description: TheCocktailDB JSON API. Use API key "1" for development.
  variables:
    apiKey:
      default: '1'
      description: API key. "1" is the free test key; premium keys unlock additional endpoints.
tags:
- name: Lookup
  description: Look up full details by ID.
paths:
  /lookup.php:
    get:
      summary: Lookup cocktail or ingredient by ID
      description: Get full cocktail details by ID, or ingredient information by ID.
      operationId: lookupById
      tags:
      - Lookup
      parameters:
      - name: i
        in: query
        description: Cocktail ID.
        schema:
          type: string
      - name: iid
        in: query
        description: Ingredient ID.
        schema:
          type: string
      responses:
        '200':
          description: Lookup result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DrinkList'
components:
  schemas:
    Drink:
      type: object
      properties:
        idDrink:
          type: string
        strDrink:
          type: string
        strCategory:
          type: string
        strAlcoholic:
          type: string
        strGlass:
          type: string
        strInstructions:
          type: string
        strDrinkThumb:
          type: string
          format: uri
    DrinkList:
      type: object
      properties:
        drinks:
          type: array
          items:
            $ref: '#/components/schemas/Drink'