TheMealDB API Guide

An Easy to use Meal Recipe API for Developers and Food Lovers. Explore our comprehensive guide to TheMealDB API, including free and premium access, authentication, and detailed endpoint references to help you get the most out of our meal database.

Free test key: 1 Premium unlocks v2 Browser-friendly examples

Getting Started

TheMealDB API is designed to be simple to test in a browser while still supporting production use with a supporter key. The free tier is ideal for development and educational use, while premium access expands the API with the beta V2 endpoints and additional limits.

Free API

Free access

The site and API remain free at point of access for testing and personal projects.

Test key

Developer key

Use API key 1 while developing or learning the API.

Premium upgrade

Supporter access

Premium users receive the beta V2 API, multi-ingredient filters, larger limits, and upload features.

Contact

Need premium help?

Email: thedatadb (at) gmail.com

Authentication

V1 uses the API key directly in the URL path, which makes it easy to test in a browser. V2 uses the same format just with an updated v2 base URL. For premium access, replace the test key with your supporter key.

V1 base URL
https://www.themealdb.com/api/json/v1/
Premium V2 base URL
https://www.themealdb.com/api/json/v2/
Free key
/1/
Premium key
/YOUR_API_KEY/
Production note If you are shipping an app publicly, you should become a supporter to get a production API key and access the unlimited V2 endpoints.

V1 API Reference

These are the core meal endpoints available in V1. The examples below use the free test key 1.

Lookup endpoints

Free

Lookup full meal details by ID

Lookup the full recipe payload for a meal.

Free

Lookup a single random meal

Return one random meal.

Premium only

Random 10 meals

Return a larger random meal selection for supporters.

£10 lifetime upgrade
Premium only

Latest 10 meals

Return recently added meals from the premium V2 API.

£10 lifetime upgrade

List and filter endpoints

Free

List categories

Return all meal categories.

Free

List all Categories, Areas, Ingredients

Get browseable lists for categories, areas, and ingredients.

Free

Filter by main ingredient

Filter meals that include a single ingredient.

Premium only

Filter by multiple ingredients

Multi-ingredient filtering is available on the beta V2 API for supporters.

£10 lifetime upgrade
Free

Filter by category

Browse meals by category name.

Free

Filter by area

Browse meals by cuisine or region.

Images

TheMealDB includes meal and ingredient artwork. Meal images support preview variants, and ingredient artwork uses the ingredient name in the filename.