# AI Restaurant Menu Parser — Dishes, Prices & Allergens (`nomad-agent/ai-menu-parser`) Actor

Parse restaurant menu photos into structured data: every dish with translated name, price, atomic ingredients, EU-14 allergens with confidence, dietary type (vegan/vegetarian/pescetarian), nutrition estimates and origin story — 15 output languages. BYO Gemini key; no browser, no proxies.

- **URL**: https://apify.com/nomad-agent/ai-menu-parser.md
- **Developed by:** [Nomad.Dev](https://apify.com/nomad-agent) (community)
- **Categories:** AI, Automation
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 dish extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AI Restaurant Menu Parser — Photos → Dishes, Prices & Allergens

Send menu photo URLs, get back the menu as **structured JSON** — one record
per dish. Richer than generic menu-OCR actors:

- `name` (translated to your language) + `originalName` (as printed)
- `category`, `price` (with currency, as shown)
- `ingredients` — atomic base ingredients (composite preparations like
  pesto or hummus are decomposed), each with an English database name,
  translated display name, and **EU-14 allergens with confidence levels**
- `dietaryType` — Vegan / Vegetarian / Pescetarian / Other, with explanation
- `nutritionInfo` — estimated serving size, calories, protein, fat, carbs
- `story` — origin story / cultural significance
- `isAlcoholic` for beverages

15 output languages. The prompt is the production pipeline of a
dietary-restrictions travel app — battle-tested on real menus worldwide.

### Bring your own Gemini key

Parsing runs on **your** Google AI Studio key
([get one free](https://aistudio.google.com/apikey)) — you control the AI
cost and quota. A typical menu runs a few cents on Gemini 2.5 Flash, or a
fraction of that on Flash-Lite.

### Input example

```json
{
  "imageUrls": ["https://example.com/menu-page-1.jpg", "https://example.com/menu-page-2.jpg"],
  "geminiApiKey": "AIza…",
  "language": "en"
}
```

### Notes

- **First run free-tier**: your first run waives charges on up to 10 dishes — try it on the prefilled sample menu at no cost.
- Up to 20 images per run, parsed together as one menu.
- Unreadable items are skipped rather than guessed; empty results produce a
  non-billed diagnostic row explaining why.
- Don't have menu photos yet? The companion **Google Maps Menu Scraper**
  actor finds them from a Google Maps place URL and parses them in one run.

# Actor input Schema

## `imageUrls` (type: `array`):

Direct, publicly reachable URLs of menu photos (JPEG/PNG/WebP). All images are parsed as one menu — up to 20 per run. Prefilled with a sample menu photo (Wikimedia Commons) so you can try the actor immediately.

## `geminiApiKey` (type: `string`):

Your Google AI Studio API key — get a free one at <a href='https://aistudio.google.com/apikey'>aistudio.google.com/apikey</a>. Parsing runs on YOUR key, so you control the AI cost (a menu typically costs well under $0.01 on Gemini Flash).

## `geminiModel` (type: `string`):

Model used to read the menu photos.

## `language` (type: `string`):

Language for dish names, descriptions, stories and allergen summaries (ingredient database names stay English).

## Actor input object example

```json
{
  "imageUrls": [
    "https://raw.githubusercontent.com/Exdenta/nomads-eat-support/main/docs/assets/menu-demo-small.jpg"
  ],
  "geminiModel": "gemini-2.5-flash",
  "language": "en"
}
```

# Actor output Schema

## `items` (type: `string`):

The run's dataset items (see the dataset schema for the field-by-field structure).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://raw.githubusercontent.com/Exdenta/nomads-eat-support/main/docs/assets/menu-demo-small.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nomad-agent/ai-menu-parser").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "imageUrls": ["https://raw.githubusercontent.com/Exdenta/nomads-eat-support/main/docs/assets/menu-demo-small.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("nomad-agent/ai-menu-parser").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://raw.githubusercontent.com/Exdenta/nomads-eat-support/main/docs/assets/menu-demo-small.jpg"
  ]
}' |
apify call nomad-agent/ai-menu-parser --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=nomad-agent/ai-menu-parser",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/71WySDIdIJed34QxE/builds/0K15nYupme4PIf8ha/openapi.json
