# TheMealDB API

> TheMealDB API on Apizie: 4 endpoints (Search, Lookup, Random, Categories) returned as clean JSON through one API key. 4 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/food:themealdb/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `food:themealdb`
- Category: Food & Drink
- Status: live
- Source: https://themealdb.com
- Page: https://zieapi.vercel.app/api/food/themealdb
- OpenAPI: https://zieapi.vercel.app/api/food/themealdb/openapi.json

Recipes with ingredients and instructions from TheMealDB (uses the public test key unless THEMEALDB_KEY is set).

## Endpoints

### Search
`GET https://zieapi.vercel.app/v1/food:themealdb/search`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes |  |

### Lookup
`GET https://zieapi.vercel.app/v1/food:themealdb/lookup`

| Parameter | Type | Required | Description |
|---|---|---|---|
| mealId | string | yes |  |

### Random
`GET https://zieapi.vercel.app/v1/food:themealdb/random`

### Categories
`GET https://zieapi.vercel.app/v1/food:themealdb/categories`

## Example
```
curl "https://zieapi.vercel.app/v1/food:themealdb/search" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the TheMealDB API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/food:themealdb/search with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the TheMealDB API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the TheMealDB API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key food:themealdb.

### What is the status of the TheMealDB API?
Live: works with just an Apizie key
