{
  "openapi": "3.0.1",
  "info": {
    "title": "Restaurant Leads from Google Maps",
    "description": "Find restaurant, cafe, brunch, bakery, bar, and coffee shop leads from Google Maps. Export business names, phones, websites, ratings, review counts, addresses, opening hours, price ranges, categories, and local demand signals for restaurant sales outreach, local SEO, and market research.",
    "version": "0.1",
    "x-build-id": "sdCPMg7ijIUwK6pLE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nezha~restaurant-google-maps-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nezha-restaurant-google-maps-leads",
        "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/nezha~restaurant-google-maps-leads/runs": {
      "post": {
        "operationId": "runs-sync-nezha-restaurant-google-maps-leads",
        "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/nezha~restaurant-google-maps-leads/run-sync": {
      "post": {
        "operationId": "run-sync-nezha-restaurant-google-maps-leads",
        "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": {
          "maxBusinesses": {
            "title": "Max Restaurant Leads",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of restaurant, cafe, bar, bakery, or coffee shop leads to save. Default is 1 so Apify automated quality tests and first previews finish quickly. For production exports, set this value explicitly.",
            "default": 1
          },
          "keywords": {
            "title": "Restaurant Keywords",
            "minItems": 1,
            "type": "array",
            "description": "Restaurant and food-service categories to search on Google Maps. The default prefill uses one keyword for a fast QA-safe preview. For production runs, add terms such as restaurant, brunch, bakery, bar, pizza restaurant, or sushi restaurant.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Target Location",
            "minLength": 1,
            "type": "string",
            "description": "City, region, or area to search in, for example New York, New York, Austin, Texas, or London, United Kingdom."
          },
          "includeDetails": {
            "title": "Include Restaurant Detail Fields",
            "type": "boolean",
            "description": "Enable this for richer restaurant lead fields such as opening hours, review signals, price range, service options, categories, plus codes, and local business attributes. Default is false for a fast QA-safe preview; turn it on for production exports.",
            "default": false
          },
          "batchDetailsPerQuery": {
            "title": "Concurrent Detail Tabs",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Number of restaurant detail pages to open simultaneously when detail fields are enabled. Default is 1 for stable previews; raise it cautiously for larger production runs.",
            "default": 1
          },
          "requestTimeoutSecs": {
            "title": "Request Timeout (Secs)",
            "minimum": 5,
            "type": "integer",
            "description": "Timeout in seconds for each geocoding request and geocoding browser fallback request.",
            "default": 20
          },
          "retryCount": {
            "title": "Retry Count",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Maximum retry attempts for geocoding requests.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Request Delay (Ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Delay between geocoding retries or endpoint fallback attempts.",
            "default": 1000
          },
          "nominatimBaseUrl": {
            "title": "Primary Geocoding Base URL",
            "type": "string",
            "description": "Optional primary Nominatim-compatible base URL, for example https://nominatim.openstreetmap.org or an internal mirror."
          },
          "nominatimFallbackBaseUrls": {
            "title": "Fallback Geocoding Base URLs",
            "type": "array",
            "description": "Optional fallback Nominatim-compatible base URLs tried in order when the primary endpoint fails.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}