How to hit the TheMealDB API

TheMealDB serves recipes with ingredients, instructions, and photos. The 1 in the path is the public test key.

Authentication

The test key 1 in the URL works for development. Production use needs a paid key in its place.

Full reference: https://www.themealdb.com/api.php

Recipes from a cuisine

curl "https://www.themealdb.com/api/json/v1/1/filter.php?a=Mexican"
Run in PostTaco
Example response (trimmed)
{
  "meals": [
    {
      "strMeal": "Braised Beef Chilli",
      "strMealThumb": "https://www.themealdb.com/images/media/meals/uuqvwu1504629254.jpg",
      "idMeal": "52826",
      "strArea": "Mexican",
      "strCountry": "Mexico"
    },
    {
      "strMeal": "Cajun spiced fish tacos",
      "strMealThumb": "https://www.themealdb.com/images/media/meals/uvuyxu1503067369.jpg",
      "idMeal": "52819",
      "strArea": "Mexican",
      "strCountry": "Mexico"
    }
  ]
}

List categories

curl https://www.themealdb.com/api/json/v1/1/categories.php
Run in PostTaco
Example response (trimmed)
{
  "categories": [
    {
      "idCategory": "1",
      "strCategory": "Beef",
      "strCategoryThumb": "https://www.themealdb.com/images/category/beef.png",
      "strCategoryDescription": "Beef is the culinary name for meat from cattle, particularly skeletal muscle. Humans have been eating beef since prehistoric times.[1] Beef is a source of high-quality protein and essential nutrients.[2]"
    },
    {
      "idCategory": "2",
      "strCategory": "Chicken",
      "strCategoryThumb": "https://www.themealdb.com/images/category/chicken.png"
    }
  ]
}