{
  "openapi": "3.0.1",
  "info": {
    "title": "Chowdeck Restaurant & Menu Scraper - Nigeria & Ghana",
    "description": "Scrape Chowdeck in Nigeria and Ghana: restaurants, supermarkets and pharmacies for any area (rating, delivery fee and time, minimum order, offers, hours, address), or full menus with one row per item, naira/cedi prices, discounts, stock and priced option groups.",
    "version": "0.1",
    "x-build-id": "53T2wtA0tk3N8o8yf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~chowdeck-restaurant-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-chowdeck-restaurant-menu-scraper",
        "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/teodor_banea~chowdeck-restaurant-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-chowdeck-restaurant-menu-scraper",
        "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/teodor_banea~chowdeck-restaurant-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-chowdeck-restaurant-menu-scraper",
        "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": {
          "mode": {
            "title": "What to extract",
            "enum": [
              "menus",
              "restaurants"
            ],
            "type": "string",
            "description": "\"Full menus with prices\" opens each vendor and returns one row per menu item (price, discount, stock, option groups with option prices) — a restaurant has 20–150 items, a supermarket up to ~4,000. \"Vendor list\" returns one row per vendor that delivers to your area (rating, delivery fee and time, minimum order, offers, opening hours, address).",
            "default": "menus"
          },
          "country": {
            "title": "Country",
            "enum": [
              "ng",
              "gh"
            ],
            "type": "string",
            "description": "Pick the country of your locations. Vendor URLs carry their own country.",
            "default": "ng"
          },
          "locations": {
            "title": "Locations (area name or latitude,longitude)",
            "type": "array",
            "description": "Enter delivery areas as \"area, city\" — e.g. \"Lekki, Lagos\", \"Ikeja, Lagos\", \"Wuse, Abuja\", \"Osu, Accra\", \"East Legon, Accra\" — or as \"latitude,longitude\" (e.g. \"6.4474,3.4729\"). Each location returns the vendors that deliver there, in Chowdeck's own order.",
            "items": {
              "type": "string"
            }
          },
          "restaurantUrls": {
            "title": "Vendor URLs",
            "type": "array",
            "description": "Enter Chowdeck vendor pages (https://chowdeck.com/store/<area>/<type>/<name>), their last part (the vendor's slug) or vendor ids. These are scraped directly, in addition to any locations.",
            "items": {
              "type": "string"
            }
          },
          "vendorTypes": {
            "title": "Vendor types",
            "uniqueItems": true,
            "type": "array",
            "description": "Pick the kinds of vendors to keep from your locations. Leave empty for every type.",
            "items": {
              "type": "string",
              "enum": [
                "restaurant",
                "supermarket",
                "pharmacy",
                "local-market",
                "herbal"
              ],
              "enumTitles": [
                "Restaurants",
                "Supermarkets and shops",
                "Pharmacies",
                "Local markets",
                "Herbal stores"
              ]
            },
            "default": [
              "restaurant"
            ]
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Keep only vendors whose name or tags contain this text, e.g. \"shawarma\" or \"chicken\". Case- and accent-insensitive."
          },
          "cuisines": {
            "title": "Cuisines or ranges",
            "type": "array",
            "description": "Keep only vendors tagged with one of these, e.g. \"Pizza\", \"Grills\", \"Native Soups\", \"Groceries\" (partial matches count).",
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only vendors open now",
            "type": "boolean",
            "description": "Keep only vendors that take orders at the time of the run.",
            "default": false
          },
          "onlyWithOffers": {
            "title": "Only vendors with offers",
            "type": "boolean",
            "description": "Keep only vendors that show a discount or offer (e.g. free delivery, % off).",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "pattern": "^\\s*$|^[0-5]([.,][0-9]+)?$",
            "type": "string",
            "description": "Keep only vendors rated at least this (1–5), e.g. \"4.2\". Unrated vendors are dropped when this is set."
          },
          "maxRestaurants": {
            "title": "Maximum vendors",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Limit the vendors scraped in the whole run (vendor rows, or menus opened). Set 0 for all vendors of your locations (up to 2,000 menus or 20,000 vendor rows). In menus mode, vendors with an empty menu are skipped and do not count.",
            "default": 50
          },
          "maxItemsPerRestaurant": {
            "title": "Maximum items per vendor",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Menus mode: keep the first N items of each menu (in menu order). Set 0 for whole menus.",
            "default": 0
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many rows in total. Set 0 for no ceiling (a safety cap of 50,000 rows per run applies).",
            "default": 0
          },
          "includeModifiers": {
            "title": "Include option groups",
            "type": "boolean",
            "description": "Menus mode: add each item's option groups (sizes, add-ons, choices) with their rules and option prices. Costs one extra request per distinct option group of a vendor.",
            "default": true
          },
          "includeDetails": {
            "title": "Include vendor details",
            "type": "boolean",
            "description": "Vendor list mode: open each vendor for its street address, coordinates, state and description (one extra request per vendor). A full list of a large area takes about ten times longer with this on (e.g. ~10 minutes instead of ~1 minute for 2,600 vendors). Turn off for a faster list.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}