{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Reviews Pro - Sentiment, Topics, Competitor Delta",
    "description": "Google Maps reviews with built-in intelligence: per-review sentiment, topic clustering (food/service/wait/cleanliness/value), responder tracking, time-series trend, competitor delta, LLM-ready output. Multi-business batch input. For reputation managers, local SEO, chains.",
    "version": "0.1",
    "x-build-id": "VOcsSGzxvKd0xUK1I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seibs.co~google-maps-reviews-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seibs.co-google-maps-reviews-pro",
        "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/seibs.co~google-maps-reviews-pro/runs": {
      "post": {
        "operationId": "runs-sync-seibs.co-google-maps-reviews-pro",
        "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/seibs.co~google-maps-reviews-pro/run-sync": {
      "post": {
        "operationId": "run-sync-seibs.co-google-maps-reviews-pro",
        "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": [
          "mode",
          "business_inputs"
        ],
        "properties": {
          "mode": {
            "title": "Run mode",
            "enum": [
              "batch_analysis",
              "competitor_delta",
              "single_business_deep"
            ],
            "type": "string",
            "description": "batch_analysis = analyze N businesses independently. competitor_delta = pairwise side-by-side comparison of 2-5 businesses. single_business_deep = max-depth on one business (largest review pull, full per-review enrichment).",
            "default": "batch_analysis"
          },
          "business_inputs": {
            "title": "Businesses (URLs, place IDs, or names)",
            "type": "array",
            "description": "Up to 50 Google Maps URLs, place IDs (ChIJ...), or freeform business names. Mixed types accepted. Names are resolved by the upstream Maps actor.",
            "items": {
              "type": "string"
            }
          },
          "max_reviews_per_business": {
            "title": "Max reviews per business",
            "minimum": 10,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on how many reviews to pull per business from the upstream scraper. Higher = better stats but slower and more expensive upstream cost.",
            "default": 100
          },
          "review_sort": {
            "title": "Review sort order",
            "enum": [
              "newest",
              "highest_rated",
              "lowest_rated",
              "most_relevant"
            ],
            "type": "string",
            "description": "How Google Maps should sort reviews before we take the first N. 'newest' is best for trend analysis; 'lowest_rated' is best for surfacing complaints fast.",
            "default": "newest"
          },
          "language": {
            "title": "Review language",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "ja",
              "ko",
              "zh"
            ],
            "type": "string",
            "description": "Language code for reviews. Sentiment and topic lexicons currently work best for English; other languages still return raw reviews but may have lower analysis accuracy.",
            "default": "en"
          },
          "include_owner_responses": {
            "title": "Include owner responses",
            "type": "boolean",
            "description": "When true, captures owner replies on each review and computes responder metrics (response rate, time-to-response, owner reply sentiment). Strong reputation-management signal.",
            "default": true
          },
          "include_sentiment_analysis": {
            "title": "Per-review sentiment analysis",
            "type": "boolean",
            "description": "Lexicon-based sentiment scoring (positive / neutral / negative) with negation handling. No API key needed - runs entirely in-actor.",
            "default": true
          },
          "include_topic_clustering": {
            "title": "Topic clustering per review",
            "type": "boolean",
            "description": "Detects topics in each review using keyword sets: food_quality, service, wait_time, cleanliness, value_pricing, ambience, staff_friendliness, parking, accessibility.",
            "default": true
          },
          "include_time_series": {
            "title": "Time-series breakdown",
            "type": "boolean",
            "description": "Monthly review count + average rating for the last 12 months. Determines trend (improving / flat / declining).",
            "default": true
          },
          "include_reviewer_profiles": {
            "title": "Include reviewer profile signals",
            "type": "boolean",
            "description": "For each review, flag local guide status, # of reviews submitted, photo-uploader pattern. Slower (deeper scrape) but useful for spotting suspicious / shill reviews.",
            "default": false
          },
          "output_format": {
            "title": "Output format",
            "enum": [
              "json",
              "llm_ready",
              "csv_friendly"
            ],
            "type": "string",
            "description": "json = full structured business + reviews records. llm_ready = adds a markdown summary block per business optimized for LLM prompt injection. csv_friendly = flat one-row-per-review (no nested arrays).",
            "default": "json"
          },
          "competitor_delta_max_pairs": {
            "title": "Competitor delta max pairs",
            "minimum": 2,
            "maximum": 10,
            "type": "integer",
            "description": "Only used in competitor_delta mode. Caps the number of pairwise comparisons emitted. With 5 businesses there are 10 pairs; this caps that to the most-divergent N.",
            "default": 5
          },
          "apify_proxy_groups": {
            "title": "Proxy groups (forwarded to upstream)",
            "type": "array",
            "description": "Proxy groups passed through to the compass/Google-Maps-Reviews-Scraper upstream actor. RESIDENTIAL is most reliable for Google Maps.",
            "default": [
              "RESIDENTIAL"
            ],
            "items": {
              "type": "string"
            }
          },
          "concurrency": {
            "title": "Per-business concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of businesses processed in parallel. Each business triggers one upstream actor call; raise carefully.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}