{
  "openapi": "3.0.1",
  "info": {
    "title": "Zomato Reviews Scraper",
    "description": "Collects public restaurant reviews from Zomato, including review text, ratings, reviewer details, engagement, and available photos.",
    "version": "1.5",
    "x-build-id": "1sbbSax8cWWPhhPBs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~zomato-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-zomato-reviews-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/codingfrontend~zomato-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-zomato-reviews-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/codingfrontend~zomato-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-zomato-reviews-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",
        "required": [
          "restaurantUrls"
        ],
        "properties": {
          "restaurantUrls": {
            "title": "Restaurant URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "One to 20 public Zomato restaurant page URLs. Use the restaurant page or its reviews, menu, photos, or info section.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[hH][tT][tT][pP][sS]://(?:[wW][wW][wW]\\.)?[zZ][oO][mM][aA][tT][oO]\\.[cC][oO][mM]/(?!(?:[aA][cC][cC][oO][uU][nN][tT]|[aA][cC][cC][oO][uU][nN][tT][sS]|[aA][dD][mM][iI][nN]|[aA][pP][iI]|[aA][uU][tT][hH]|[cC][aA][rR][tT]|[lL][oO][gG][iI][nN]|[lL][oO][gG][oO][uU][tT]|[oO][rR][dD][eE][rR]|[oO][rR][dD][eE][rR][sS]|[pP][rR][oO][fF][iI][lL][eE]|[pP][rR][oO][fF][iI][lL][eE][sS]|[rR][eE][gG][iI][sS][tT][eE][rR]|[sS][eE][aA][rR][cC][hH]|[sS][eE][tT][tT][iI][nN][gG][sS]|[sS][iI][gG][nN][iI][nN]|[sS][iI][gG][nN][uU][pP]|[uU][sS][eE][rR]|[uU][sS][eE][rR][sS])(?:/|\\?|#|$))[^/?#]+/(?!(?:[aA][cC][cC][oO][uU][nN][tT]|[aA][cC][cC][oO][uU][nN][tT][sS]|[aA][dD][mM][iI][nN]|[aA][pP][iI]|[aA][uU][tT][hH]|[cC][aA][rR][tT]|[lL][oO][gG][iI][nN]|[lL][oO][gG][oO][uU][tT]|[oO][rR][dD][eE][rR]|[oO][rR][dD][eE][rR][sS]|[pP][rR][oO][fF][iI][lL][eE]|[pP][rR][oO][fF][iI][lL][eE][sS]|[rR][eE][gG][iI][sS][tT][eE][rR]|[sS][eE][aA][rR][cC][hH]|[sS][eE][tT][tT][iI][nN][gG][sS]|[sS][iI][gG][nN][iI][nN]|[sS][iI][gG][nN][uU][pP]|[uU][sS][eE][rR]|[uU][sS][eE][rR][sS])(?:/|\\?|#|$))[^/?#]+(?:/(?:[iI][nN][fF][oO]|[mM][eE][nN][uU]|[pP][hH][oO][tT][oO][sS]|[rR][eE][vV][iI][eE][wW][sS]))?(?:/+(?=[?#]|$))?(?:\\?[^#]*)?(?:#.*)?$"
            }
          },
          "maxReviewsPerRestaurant": {
            "title": "Maximum reviews per restaurant",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of complete public reviews to save for each restaurant.",
            "default": 20
          },
          "timeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time to wait for each restaurant or review-page request before it fails.",
            "default": 30
          },
          "requestDelayMs": {
            "title": "Delay between requests",
            "minimum": 250,
            "maximum": 5000,
            "type": "integer",
            "description": "Wait this long between requests to public Zomato pages to pace traffic.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Choose the network route for public Zomato pages. Custom HTTP or HTTPS proxy URLs must be origins without paths, queries, or fragments and cannot be combined with Apify Proxy.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "type": "boolean",
                "description": "Use Apify Proxy for the request."
              },
              "apifyProxyGroups": {
                "title": "Apify Proxy groups",
                "type": "array",
                "description": "Optional Apify Proxy groups, such as RESIDENTIAL.",
                "items": {
                  "type": "string"
                }
              },
              "apifyProxyCountry": {
                "title": "Apify Proxy country",
                "type": "string",
                "description": "Optional two-letter country code, such as IN. An empty value leaves the country unrestricted.",
                "pattern": "^(?:[A-Z]{2})?$"
              },
              "proxyUrls": {
                "title": "Custom proxy URLs",
                "type": "array",
                "description": "Optional HTTP or HTTPS proxy origin URLs with no path, query, or fragment. Credentials are allowed; do not combine custom URLs with Apify Proxy.",
                "items": {
                  "type": "string"
                }
              }
            },
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            },
            "additionalProperties": false
          },
          "cookies": {
            "title": "Zomato cookies",
            "maxItems": 100,
            "type": "array",
            "description": "Optional Zomato cookies for public pages that are available to your account. Cookies do not bypass access controls. Values are encrypted in the input form and are never written to the results.",
            "items": {
              "type": "object",
              "required": [
                "name",
                "value",
                "domain"
              ],
              "additionalProperties": false,
              "properties": {
                "name": {
                  "title": "Cookie name",
                  "type": "string",
                  "description": "Cookie name.",
                  "minLength": 1
                },
                "value": {
                  "title": "Cookie value",
                  "type": "string",
                  "description": "Private cookie value. Do not include this value in a README example or support request."
                },
                "domain": {
                  "title": "Cookie domain",
                  "type": "string",
                  "description": "Zomato domain, optionally prefixed with a dot.",
                  "pattern": "^(?:\\.)?(?:[a-zA-Z0-9-]+\\.)*zomato\\.com$"
                },
                "path": {
                  "title": "Cookie path",
                  "type": "string",
                  "description": "Cookie path beginning with /.",
                  "pattern": "^/",
                  "default": "/"
                },
                "httpOnly": {
                  "title": "HTTP only",
                  "type": "boolean",
                  "description": "Whether the cookie is HTTP only.",
                  "default": false
                },
                "secure": {
                  "title": "Secure",
                  "type": "boolean",
                  "description": "Whether the cookie is limited to HTTPS.",
                  "default": false
                },
                "sameSite": {
                  "title": "SameSite policy",
                  "type": "string",
                  "description": "Cookie SameSite policy.",
                  "enum": [
                    "Strict",
                    "Lax",
                    "None",
                    "strict",
                    "lax",
                    "none",
                    "no_restriction",
                    "unspecified"
                  ],
                  "default": "Lax"
                },
                "expirationDate": {
                  "title": "Expiration date",
                  "type": "number",
                  "description": "Expiration time as Unix seconds. Use -1 for a session cookie."
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}