...

/

Request and Response Structure

Request and Response Structure

Learn the request and response structure of TheMealDB API.

Request structure

The request for TheMealDB API contains the endpoint the user wants to call. Each endpoint serves a different function. Here is the list of the base URLs which can be used:

Function

Base URL

List all categories, cuisines or ingredients

www.themealdb.com/api/json/v1/1/list.php

Filter meals by categories, cuisines, or ingredients

www.themealldb.com/api/json/v1/1/filter.php

Lookup meal details or ingredient by ID

www.themealldb.com/api/json/v1/1/lookup.php

Search meals by first letter or name

www.themealldb.com/api/json/v1/1/search.php

Lookup a random meal

www.themealldb.com/api/json/v1/1/random.php

...