{
  "openapi": "3.0.1",
  "info": {
    "title": "Reputation & Review Sentiment Monitor – Google + TripAdvisor",
    "description": "Multi-source review & reputation monitor: pulls Google Maps + TripAdvisor reviews, adds AI sentiment, negative-review alerts, date filtering and a unified schema. Built on best-in-class sources for reliability. n8n/Make webhook, JSON/CSV/API, incremental scheduled runs.",
    "version": "0.0",
    "x-build-id": "9S0yHPYcc2lJraLv2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/malikgen~google-and-tripadvisor-review-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-malikgen-google-and-tripadvisor-review-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/malikgen~google-and-tripadvisor-review-scraper/runs": {
      "post": {
        "operationId": "runs-sync-malikgen-google-and-tripadvisor-review-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/malikgen~google-and-tripadvisor-review-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-malikgen-google-and-tripadvisor-review-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": {
          "businessName": {
            "title": "Business Name",
            "type": "string",
            "description": "Name of the business you want to scrape reviews for (e.g., Yellowstone National Park)"
          },
          "businessLocation": {
            "title": "Business Location",
            "type": "string",
            "description": "City and country of the business (e.g., New York, USA)"
          },
          "googleMapsUrl": {
            "title": "Google Maps URL",
            "type": "string",
            "description": "Google Maps PLACE URL of the business (recommended for Google reviews). Open Google Maps, click the place, and copy the URL — a /maps/place/ URL works best. If left blank, we search by Business Name + Location (best-effort)."
          },
          "tripAdvisorUrl": {
            "title": "TripAdvisor URL",
            "type": "string",
            "description": "TripAdvisor URL of the business (optional — leave blank to skip TripAdvisor). Open TripAdvisor, find the place, and copy the URL. Example: https://www.tripadvisor.com/Hotel_Review-g60763-d208453-Reviews-Hilton_New_York_Times_Square-New_York_City_New_York.html"
          },
          "platforms": {
            "title": "Platforms to Scrape",
            "type": "array",
            "description": "Which review platforms to scrape. Google Maps works for any business. TripAdvisor is best for hotels, restaurants, and attractions.",
            "items": {
              "type": "string",
              "enum": [
                "google",
                "tripadvisor"
              ]
            },
            "default": [
              "google",
              "tripadvisor"
            ]
          },
          "dateFilter": {
            "title": "Date Filter",
            "enum": [
              "all",
              "last_24h",
              "last_48h",
              "last_week",
              "last_month",
              "last_3_months",
              "last_year",
              "custom"
            ],
            "type": "string",
            "description": "How far back to look for reviews. Use 'last_24h' for daily monitoring, 'last_week' for weekly reports.",
            "default": "last_month"
          },
          "dateFrom": {
            "title": "Start Date",
            "type": "string",
            "description": "Start date for custom range (YYYY-MM-DD format, e.g., 2025-01-01)"
          },
          "dateTo": {
            "title": "End Date",
            "type": "string",
            "description": "End date for custom range (YYYY-MM-DD format, e.g., 2025-12-31)"
          },
          "maxReviewsPerBusiness": {
            "title": "Max Reviews",
            "minimum": 10,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per platform. Lower = faster and cheaper.",
            "default": 50
          },
          "enableSentiment": {
            "title": "Enable Sentiment Analysis",
            "type": "boolean",
            "description": "Analyze each review to determine if it's positive, negative, or neutral. Adds a sentiment score to each review.",
            "default": true
          },
          "sentimentFilter": {
            "title": "Filter by Sentiment",
            "enum": [
              "all",
              "negative_only",
              "neutral_only",
              "positive_only"
            ],
            "type": "string",
            "description": "Only output reviews matching this sentiment. Use 'Negative Only' to focus on bad reviews that need attention.",
            "default": "all"
          },
          "minRating": {
            "title": "Minimum Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only include reviews with rating >= this value (1-5 stars). Leave empty for no minimum."
          },
          "maxRating": {
            "title": "Maximum Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only include reviews with rating <= this value (1-5 stars). Set to 2 or 3 to get only low-rated reviews."
          },
          "includeBusinessResponse": {
            "title": "Include Owner Responses",
            "type": "boolean",
            "description": "Include the business owner's response to each review (if any)",
            "default": true
          },
          "sortBy": {
            "title": "Sort Reviews By",
            "enum": [
              "newest",
              "oldest",
              "highest_rating",
              "lowest_rating",
              "most_relevant"
            ],
            "type": "string",
            "description": "How to sort the scraped reviews",
            "default": "newest"
          },
          "webhookUrl": {
            "title": "Webhook URL (Optional)",
            "type": "string",
            "description": "Receive instant alerts when negative reviews are found. Enter your n8n webhook URL or any HTTP endpoint."
          },
          "negativeThreshold": {
            "title": "Alert Threshold (Stars)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Send webhook alert for reviews with this rating or lower. Set to 2 to alert on 1-2 star reviews.",
            "default": 2
          },
          "onlyNewReviews": {
            "title": "Only New Reviews (Incremental)",
            "type": "boolean",
            "description": "Only scrape reviews newer than the last run. Useful for scheduled monitoring to avoid duplicates.",
            "default": false
          },
          "firstRunDateLimit": {
            "title": "First Run Lookback",
            "enum": [
              "last_week",
              "last_month",
              "last_3_months",
              "last_year"
            ],
            "type": "string",
            "description": "For the first run in incremental mode, how far back to look for reviews",
            "default": "last_month"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}