TheMealDB Lookup API

Retrieve details by ID or random meal

Operations 2

GET /lookup.php TheMealDB Lookup Meal Details by ID #
GET /random.php TheMealDB Get a Random Meal #

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/themealdb-lookup-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 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.

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

OpenAPI Specification

themealdb-lookup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TheMealDB Filter Lookup API
  description: An open, crowd-sourced database of recipes from around the world with a free API. Search meals by name, first letter, ingredient, category, or area/region. Includes detailed recipes with ingredients, measurements, instructions, and images. The API and site will always remain free at point of access.
  version: '1.0'
  contact:
    url: https://www.themealdb.com/
  x-generated-from: documentation
servers:
- url: https://www.themealdb.com/api/json/v1/1
  description: Production API server (free tier with API key 1)
security: []
tags:
- name: Lookup
  description: Retrieve details by ID or random meal
paths:
  /lookup.php:
    get:
      operationId: lookupMealById
      summary: TheMealDB Lookup Meal Details by ID
      description: Look up the full details of a meal by its ID using the 'i' parameter.
      tags:
      - Lookup
      parameters:
      - name: i
        in: query
        description: Meal ID to look up
        required: true
        schema:
          type: string
          example: '52772'
      responses:
        '200':
          description: Full meal details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MealsResponse'
              examples:
                LookupMealById200Example:
                  summary: Default lookupMealById 200 response
                  x-microcks-default: true
                  value:
                    meals:
                    - idMeal: '52772'
                      strMeal: Teriyaki Chicken Casserole
                      strCategory: Chicken
                      strArea: Japanese
                      strInstructions: Preheat oven to 350 degrees.
                      strMealThumb: https://www.themealdb.com/images/media/meals/wvpsxx1468256321.jpg
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /random.php:
    get:
      operationId: getRandomMeal
      summary: TheMealDB Get a Random Meal
      description: Retrieve a single random meal with full recipe details.
      tags:
      - Lookup
      responses:
        '200':
          description: A random meal with complete recipe
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MealsResponse'
              examples:
                GetRandomMeal200Example:
                  summary: Default getRandomMeal 200 response
                  x-microcks-default: true
                  value:
                    meals:
                    - idMeal: '53049'
                      strMeal: Apam balik
                      strCategory: Dessert
                      strArea: Malaysian
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    Meal:
      type: object
      description: Full meal details including ingredients, instructions, and media
      properties:
        idMeal:
          type: string
          description: Unique meal identifier
          example: '52772'
        strMeal:
          type: string
          description: Meal name
          example: Teriyaki Chicken Casserole
        strCategory:
          type: string
          description: Meal category
          example: Chicken
        strArea:
          type: string
          description: Cuisine area/region of origin
          example: Japanese
        strInstructions:
          type: string
          description: Step-by-step preparation instructions
        strMealThumb:
          type: string
          description: Thumbnail image URL
          example: https://www.themealdb.com/images/media/meals/wvpsxx1468256321.jpg
        strTags:
          type:
          - string
          - 'null'
          description: Comma-separated tags
        strYoutube:
          type:
          - string
          - 'null'
          description: YouTube video URL for the recipe
        strIngredient1:
          type:
          - string
          - 'null'
          description: First ingredient
        strIngredient2:
          type:
          - string
          - 'null'
          description: Second ingredient
        strIngredient3:
          type:
          - string
          - 'null'
          description: Third ingredient
        strMeasure1:
          type:
          - string
          - 'null'
          description: Measure for first ingredient
        strMeasure2:
          type:
          - string
          - 'null'
          description: Measure for second ingredient
        strMeasure3:
          type:
          - string
          - 'null'
          description: Measure for third ingredient
        strSource:
          type:
          - string
          - 'null'
          description: Source URL for the recipe
        dateModified:
          type:
          - string
          - 'null'
          description: Date last modified
    MealsResponse:
      type: object
      description: Response containing a list of meals
      properties:
        meals:
          type:
          - array
          - 'null'
          description: Array of meal objects; null if no results found
          items:
            $ref: '#/components/schemas/Meal'