Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

TheMealDB Lookup API

Retrieve details by ID or random meal

TheMealDB Lookup API is one of 4 APIs that TheMealDB publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Lookup. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 2 operations across 2 paths, and defines 2 schemas. It is described by OpenAPI 3.0.3, at version 1.0.

Requests are made against a single base URL, https://www.themealdb.com/api/json/v1/1.

2 operations 2 paths 2 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Base URL
https://www.themealdb.com/api/json/v1/1
Resource Areas
1

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Lookup 2

Retrieve details by ID or random meal

GET
/lookup.php
TheMealDB Lookup Meal Details by ID
lookupMealById 1 param → 200
GET
/random.php
TheMealDB Get a Random Meal
getRandomMeal → 200

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Meal (16 properties), MealsResponse (1 property). Each schema is shown below with its type and property counts.

Meal
object
Full meal details including ingredients, instructions, and media
16 properties
MealsResponse
object
Response containing a list of meals
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

themealdb-lookup-api-openapi.yml Raw ↑

Other APIs TheMealDB publishes across the network.

TheMealDB Filter API
TheMealDB List API
TheMealDB Search API