{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Chain Restaurant Nutrition & Allergen Data (Tabecal)",
    "description": "Official nutrition facts (kcal, protein, fat, carbs, salt), prices, allergens, menu-change history and store locations for ~78 Japanese restaurant / fast-food / convenience-store chains and ~19,000 menu items. Updated daily from official sources. Works with AI agents via Apify MCP.",
    "version": "1.1",
    "x-build-id": "jTY3x3qFjFJMxCt6i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tabecal~tabecal-japan-restaurant-nutrition/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tabecal-tabecal-japan-restaurant-nutrition",
        "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/tabecal~tabecal-japan-restaurant-nutrition/runs": {
      "post": {
        "operationId": "runs-sync-tabecal-tabecal-japan-restaurant-nutrition",
        "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/tabecal~tabecal-japan-restaurant-nutrition/run-sync": {
      "post": {
        "operationId": "run-sync-tabecal-tabecal-japan-restaurant-nutrition",
        "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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search_items",
              "item_detail",
              "chain_items",
              "list_chains",
              "chain_overview",
              "recent_changes",
              "allergen_lookup",
              "stores_nearby"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search_items"
          },
          "query": {
            "title": "Search words",
            "type": "string",
            "description": "Japanese words matched against item name / category (space = AND). e.g. 牛丼"
          },
          "chain": {
            "title": "Chain",
            "type": "string",
            "description": "Chain slug (yoshinoya, mcdonalds, starbucks …) or Japanese name. Run list_chains to see all 78."
          },
          "genre": {
            "title": "Genre",
            "type": "string",
            "description": "burger, cafe, conveni, curry, family, gyudon, health, izakaya, noodle, pizza, sushi, sweets, teishoku, yakiniku"
          },
          "category": {
            "title": "Menu category",
            "type": "string",
            "description": "Official menu category (partial match), e.g. 定食"
          },
          "kcalMin": {
            "title": "kcal ≥",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum calories (kcal) per serving."
          },
          "kcalMax": {
            "title": "kcal ≤",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum calories (kcal) per serving."
          },
          "proteinMin": {
            "title": "Protein g ≥",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum protein (g) per serving."
          },
          "fatMax": {
            "title": "Fat g ≤",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum fat (g) per serving."
          },
          "carbMax": {
            "title": "Carbohydrate g ≤",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum carbohydrate (g) per serving."
          },
          "sugarMax": {
            "title": "Sugar (糖質) g ≤",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum sugar / available carbohydrate (g) per serving (only chains that publish it)."
          },
          "saltMax": {
            "title": "Salt equivalent g ≤",
            "minimum": 0,
            "type": "number",
            "description": "Maximum salt equivalent (g) per serving."
          },
          "priceMax": {
            "title": "Price JPY ≤",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in JPY (only chains that publish prices)."
          },
          "allergenFree": {
            "title": "Exclude allergens",
            "type": "array",
            "description": "Items published as containing / possibly containing these are excluded. Use Japanese labels: 卵 乳 小麦 そば 落花生 えび かに くるみ あわび いか いくら オレンジ カシューナッツ キウイフルーツ 牛肉 ごま さけ さば 大豆 鶏肉 バナナ 豚肉 マカダミアナッツ もも やまいも りんご ゼラチン アーモンド 魚介類",
            "items": {
              "type": "string"
            }
          },
          "knownAllergensOnly": {
            "title": "Only items with published allergen data",
            "type": "boolean",
            "description": "With 'Exclude allergens': keep only items whose chain publishes allergen tables and lists the allergen as 'none'.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "name",
              "kcal",
              "kcal_desc",
              "protein",
              "protein_asc",
              "salt",
              "salt_desc",
              "price",
              "price_desc",
              "updated",
              "protein_per_kcal"
            ],
            "type": "string",
            "description": "Sort order of results (e.g. kcal, -kcal, protein, -protein, salt, price).",
            "default": "name"
          },
          "itemKey": {
            "title": "Item key",
            "type": "string",
            "description": "For item_detail / allergen_lookup: 16-hex key from search results"
          },
          "itemName": {
            "title": "Item name",
            "type": "string",
            "description": "For allergen_lookup when the key is unknown (with Chain)"
          },
          "since": {
            "title": "Since (YYYY-MM-DD)",
            "type": "string",
            "description": "For recent_changes. Default: 30 days ago"
          },
          "event": {
            "title": "Change type",
            "enum": [
              "added",
              "changed",
              "removed"
            ],
            "type": "string",
            "description": "Change event type filter: added, removed or changed."
          },
          "lat": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "For stores_nearby"
          },
          "lon": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude for nearby store search (use with lat)."
          },
          "radiusKm": {
            "title": "Radius km",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Search radius in km for nearby store search (default 2).",
            "default": 3
          },
          "pref": {
            "title": "Prefecture",
            "type": "string",
            "description": "For stores_nearby without coordinates, e.g. 東京都"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Up to 1000 (pages automatically).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}