{
  "openapi": "3.0.1",
  "info": {
    "title": "Menu Translator + EU 14 Allergen Detector for Restaurants",
    "description": "Translate a restaurant menu into 10 languages and flag the 14 EU allergens (Regulation 1169/2011). Paste text or give a menu URL or PDF. Get structured dishes, prices, allergen codes, translations and a printable allergen matrix.",
    "version": "0.1",
    "x-build-id": "GQgMLEClrfFFnEcv7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nebulosa~menu-allergen-translator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nebulosa-menu-allergen-translator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nebulosa~menu-allergen-translator/runs": {
      "post": {
        "operationId": "runs-sync-nebulosa-menu-allergen-translator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nebulosa~menu-allergen-translator/run-sync": {
      "post": {
        "operationId": "run-sync-nebulosa-menu-allergen-translator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "menuText": {
            "title": "Menu text",
            "type": "string",
            "description": "Paste the menu. One dish per line works best; prices, section headings and description lines under a dish are recognised automatically."
          },
          "menuUrl": {
            "title": "Menu URL (web page or PDF)",
            "type": "string",
            "description": "Used when 'Menu text' is empty. A public menu page (schema.org Menu markup is read when present) or a text-based PDF. Scanned image PDFs are not supported yet. robots.txt is respected."
          },
          "languages": {
            "title": "Target languages",
            "type": "array",
            "description": "ISO 639-1 codes. Default: en, es, de, fr, it, pt, nl, pl, ru, zh. Up to 25 (e.g. uk, ca, sv, ja, ko, ar).",
            "default": [
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt",
              "nl",
              "pl",
              "ru",
              "zh"
            ],
            "items": {
              "type": "string"
            }
          },
          "sourceLanguage": {
            "title": "Menu language",
            "enum": [
              "auto",
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt",
              "nl",
              "pl"
            ],
            "type": "string",
            "description": "Language the menu is written in. Auto-detect works for en, es, de, fr, it, pt, nl, pl.",
            "default": "auto"
          },
          "translate": {
            "title": "Translate dishes",
            "type": "boolean",
            "description": "Turn off for allergen detection only (cheaper and fully rules-based).",
            "default": true
          },
          "displayLanguage": {
            "title": "Allergen names language (matrix and output)",
            "enum": [
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt",
              "nl",
              "pl",
              "ru",
              "zh"
            ],
            "type": "string",
            "description": "Language of allergen names in the output and in the printable allergen matrix.",
            "default": "en"
          },
          "maxDishes": {
            "title": "Max dishes",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety limit on dishes processed per run (you pay per dish).",
            "default": 200
          },
          "llmApiKey": {
            "title": "Your own AI API key (optional)",
            "type": "string",
            "description": "Optional OpenAI-compatible API key. If set, translations use your key and you are not charged the per-dish translation fee."
          },
          "llmBaseUrl": {
            "title": "AI API base URL",
            "type": "string",
            "description": "OpenAI-compatible base URL for your key, e.g. https://api.openai.com/v1 or https://api.deepseek.com"
          },
          "llmModel": {
            "title": "AI model",
            "type": "string",
            "description": "Model name for your key, e.g. gpt-4o-mini or deepseek-chat."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}