{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Scraper — Emails, Reviews, Leads & Photos",
    "description": "Scrape Google Maps into clean datasets: business listings with emails, phone numbers and social links, plus reviews, photos, owner posts and AI review keywords. 12 operations — search, search-in-area, nearby, details, reviews, photos, posts, autocomplete. Pay per result.",
    "version": "1.0",
    "x-build-id": "QcKxiaUOOQpgnKWtJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~local-business-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-local-business-data-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/sian.agency~local-business-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-local-business-data-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/sian.agency~local-business-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-local-business-data-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": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "🎯 Operation — what do you want to scrape?",
            "enum": [
              "search",
              "searchInArea",
              "searchNearby",
              "businessDetails",
              "businessDetailsPlus",
              "businessReviews",
              "reviewDetails",
              "businessPhotos",
              "photoDetails",
              "businessPosts",
              "reverseGeocoding",
              "autocomplete"
            ],
            "type": "string",
            "description": "🎯 **PICK ONE OPERATION PER RUN.** Each run produces one clean dataset matching the chosen mode.\n\n**🔍 Find businesses**\n- **Search** — search Google Maps by keyword + location (emails & contacts on by default)\n- **Search In Area** — search inside a map viewport (center lat/lng + zoom)\n- **Search Nearby** — search around a specific coordinate point\n\n**🏢 Enrich a business** (Business ID from a search row)\n- **Business Details** — full details + emails & social contacts (batch up to 20 IDs)\n- **Business Details Plus** — details + AI keywords mentioned in reviews ✨\n- **Business Reviews** — paginate all reviews with ratings & owner replies\n- **Review Details** — one review by author ID\n- **Business Photos** — paginate the photo gallery\n- **Photo Details** — caption + uploader for a photo (batch up to 20)\n- **Business Posts** — owner posts (\"From the owner\")\n\n**🛠️ Utilities** (free)\n- **Reverse Geocoding** — \"What's here?\" by lat/lng\n- **Autocomplete** — place / query predictions\n\n💡 **TIP:** Run Search first to collect Business IDs, then drill into Details / Reviews / Photos.",
            "default": "search"
          },
          "query": {
            "title": "🔍 Search Query",
            "type": "string",
            "description": "🔍 **Required for Search / Search In Area / Search Nearby / Autocomplete.**\n\nWhat you would type into the Google Maps search box.\n- `restaurants in Austin`\n- `dentist`\n- `coffee shop near times square`\n\n💡 **TIP:** For Search In Area / Nearby, keep the keyword broad (e.g. `dentist`) and let the coordinates scope the area.\n\n⚠️ **Ignored** for the enrich / utility operations."
          },
          "extractEmailsAndContacts": {
            "title": "📧 Extract emails & contacts",
            "type": "boolean",
            "description": "📧 **The lead-gen wedge.** When enabled (default), Search and Business Details rows include `emails`, `phoneNumbers` and a full social graph (Facebook, Instagram, LinkedIn, Twitter, YouTube, TikTok, Snapchat, Pinterest, GitHub, Yelp) extracted from each business website.\n\n💡 Turn OFF for faster, listings-only runs when you don't need contacts.",
            "default": true
          },
          "limit": {
            "title": "🔢 Max businesses (Search)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "🔢 **Search / Search In Area / Search Nearby only.** How many businesses to return in one run (1–500). Each search is a single upstream request that returns up to this many rows.\n\n💡 **TIP:** Start with 20 to preview, then scale up to 500 for full sweeps.",
            "default": 20
          },
          "lat": {
            "title": "🧭 Latitude",
            "type": "string",
            "description": "🧭 **Required for Search In Area, Search Nearby and Reverse Geocoding.** Center latitude.\n- Example: `30.2672` (Austin)\n\nAlso used as a soft location bias for Search."
          },
          "lng": {
            "title": "🧭 Longitude",
            "type": "string",
            "description": "🧭 **Required for Search In Area, Search Nearby and Reverse Geocoding.** Center longitude.\n- Example: `-97.7431` (Austin)"
          },
          "zoom": {
            "title": "🔍 Zoom level (Search In Area)",
            "type": "string",
            "description": "🔍 **Required for Search In Area** (3–21). Higher = tighter area. Maps default ≈ `13`."
          },
          "businessId": {
            "title": "🏢 Business ID",
            "type": "string",
            "description": "🏢 **Required for Business Details, Business Details Plus, Business Reviews, Review Details, Business Photos, Photo Details, Business Posts.**\n\nThe `businessId` from a Search result row (e.g. `0x89b7c63b3f02adc5:0x3f...`).\n\n💡 **Batch:** Business Details, Business Details Plus and Photo Details accept up to 20 comma-separated IDs in one run.\n\n⚠️ **Ignored** for Search and Autocomplete."
          },
          "reviewAuthorId": {
            "title": "🔎 Review Author ID (Review Details)",
            "type": "string",
            "description": "🔎 **Required for Review Details.** The `authorId` from a Business Reviews row, combined with `businessId`, returns one review's full detail.\n\n⚠️ **Ignored** for all other operations."
          },
          "photoId": {
            "title": "🖼️ Photo ID (Photo Details)",
            "type": "string",
            "description": "🖼️ **Required for Photo Details.** The `photoId` from a Business Photos row. Accepts up to 20 comma-separated IDs.\n\n⚠️ **Ignored** for all other operations."
          },
          "sortBy": {
            "title": "↕️ Sort reviews by",
            "enum": [
              "most_relevant",
              "newest",
              "highest_ranking",
              "lowest_ranking"
            ],
            "type": "string",
            "description": "↕️ **Business Reviews only.** Order of returned reviews.",
            "default": "most_relevant"
          },
          "reviewsQuery": {
            "title": "🔤 Filter reviews by keyword (Business Reviews)",
            "type": "string",
            "description": "🔤 **Business Reviews only.** Optional keyword to filter reviews (e.g. `parking`, `staff`). Leave blank to return all reviews."
          },
          "translateReviews": {
            "title": "🌐 Translate reviews (Business Reviews)",
            "type": "boolean",
            "description": "🌐 **Business Reviews only.** Translate non-English review text into the requested language.",
            "default": false
          },
          "isVideo": {
            "title": "🎬 Videos only (Business Photos)",
            "type": "boolean",
            "description": "🎬 **Business Photos only.** Return only video media instead of photos.",
            "default": false
          },
          "region": {
            "title": "🌍 Region",
            "type": "string",
            "description": "🌍 ISO 3166-1 alpha-2 region code (e.g. `us`, `gb`, `ca`, `de`, `au`). Default `us`."
          },
          "language": {
            "title": "🗣️ Language",
            "type": "string",
            "description": "🗣️ ISO 639-1 language code for results (e.g. `en`, `es`, `de`, `fr`). Default `en`."
          },
          "maxPages": {
            "title": "📄 Max pages to fetch",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "📄 **Applies to Business Reviews, Business Photos and Business Posts** (the paginated enrich ops). Reviews ~10/page, photos ~20/page.\n\n💡 **TIP:** Start small (1–3) to preview. Pagination stops automatically when Google Maps reports no more results.\n\n⚠️ Hard cap: 20 pages to prevent runaway runs. Ignored for Search (use `limit`) and single-record operations.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}