{
  "openapi": "3.0.1",
  "info": {
    "title": "Compare Reviews Across Trustpilot, Google and Tripadvisor",
    "description": "Compare 2-5 companies across Trustpilot, Google Maps and Tripadvisor: share of 1-2 star reviews in the last 30 days vs the prior 30, a getting-worse flag, reply rate, weekly velocity, snapshot date and sample size. Or get newest reviews in one clean format with an only-new monitor. Pay per review.",
    "version": "1.0",
    "x-build-id": "ojJtaHoStp2YID0Fz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vncntlabs~review-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vncntlabs-review-monitor",
        "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/vncntlabs~review-monitor/runs": {
      "post": {
        "operationId": "runs-sync-vncntlabs-review-monitor",
        "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/vncntlabs~review-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-vncntlabs-review-monitor",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "reviews",
              "compare"
            ],
            "type": "string",
            "description": "Reviews: the original monitor. Compare: 2-5 companies in, one row per company per platform (Trustpilot, Google Maps, Tripadvisor where present) plus a combined row, with 1-2 star trend, a getting-worse flag, reply rate, weekly velocity, snapshot date and sample size.",
            "default": "reviews"
          },
          "compareCompanies": {
            "title": "Companies to compare",
            "type": "array",
            "description": "Compare mode only. 2 to 5 companies. Each item is an object with a name and at least one of <code>googlePlace</code> (Maps link, place ID or name+city), <code>trustpilotDomain</code>, or <code>tripadvisorUrl</code>."
          },
          "googlePlaces": {
            "title": "Google Maps places",
            "type": "array",
            "description": "One per line: the business's Google Maps link (best: open it on Google Maps and copy the URL or the share link), a place ID (<code>ChIJ…</code>), or <code>Business name, City</code>. Names are matched by Google, so check businessName in the results.",
            "items": {
              "type": "string"
            }
          },
          "tripadvisorUrls": {
            "title": "Tripadvisor pages",
            "type": "array",
            "description": "One per line: the Tripadvisor page of a hotel, restaurant or attraction (contains <code>_Review-g…-d…</code>), any Tripadvisor country domain.",
            "items": {
              "type": "string"
            }
          },
          "tripadvisorSearch": {
            "title": "Tripadvisor search (find places by name)",
            "type": "array",
            "description": "Don't have the Tripadvisor link? One search per line: a place name with its city (<code>The Langham Chicago</code>) or a type of place (<code>pizza</code>). Each line returns matching places with their exact Tripadvisor path, rating and review count. To search a different city on one line, add it after a bar: <code>Le Comptoir du Relais | Paris, France</code>. Up to 10 searches per run. Sponsored results are left out.",
            "items": {
              "type": "string"
            }
          },
          "tripadvisorSearchLocation": {
            "title": "Tripadvisor search location",
            "type": "string",
            "description": "City, region or country for the searches above, e.g. <code>London, United Kingdom</code> or <code>Chicago, Illinois</code>. A name that fits several places (London, UK and London, Ontario) stops the run with the options listed, so nothing is guessed. Empty: the country selected below."
          },
          "maxPlacesPerSearch": {
            "title": "Places per search",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many places to list per search line (Tripadvisor's order).",
            "default": 10
          },
          "reviewsForTopPlaces": {
            "title": "Also get reviews for the top places",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "0 (default) lists places only, so you pick which ones matter and re-run with their tripadvisorPath. Set 1 when your search names one place (the top match gets its reviews in the same run), or N for the top N per line. Reviews are always fetched by the place's exact path.",
            "default": 0
          },
          "trustpilotDomains": {
            "title": "Trustpilot companies",
            "type": "array",
            "description": "One per line: the company's website domain (<code>zappos.com</code>) or its Trustpilot page (<code>trustpilot.com/review/zappos.com</code>).",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerBusiness": {
            "title": "Max reviews per business",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest first, up to 1000 (Trustpilot: up to 200). In only-new mode this is the most new reviews returned per business per run.",
            "default": 100
          },
          "minRating": {
            "title": "Minimum stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews with at least this many stars.",
            "default": 1
          },
          "maxRating": {
            "title": "Maximum stars",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews with at most this many stars, e.g. 2 for negative-review alerts.",
            "default": 5
          },
          "reviewsNewerThan": {
            "title": "Only reviews newer than",
            "type": "string",
            "description": "Optional: a date (<code>2026-10-01</code>) or a period (<code>7 days</code>, <code>24 hours</code>, <code>2 weeks</code>, <code>3 months</code>)."
          },
          "country": {
            "title": "Google country",
            "enum": [
              "Argentina",
              "Australia",
              "Austria",
              "Bangladesh",
              "Belgium",
              "Brazil",
              "Bulgaria",
              "Canada",
              "Chile",
              "Colombia",
              "Costa Rica",
              "Croatia",
              "Cyprus",
              "Czechia",
              "Denmark",
              "Dominican Republic",
              "Ecuador",
              "Egypt",
              "Estonia",
              "Finland",
              "France",
              "Germany",
              "Greece",
              "Hong Kong",
              "Hungary",
              "Iceland",
              "India",
              "Indonesia",
              "Ireland",
              "Israel",
              "Italy",
              "Japan",
              "Kenya",
              "Kuwait",
              "Latvia",
              "Lithuania",
              "Luxembourg",
              "Malaysia",
              "Malta",
              "Mexico",
              "Morocco",
              "Netherlands",
              "New Zealand",
              "Nigeria",
              "Norway",
              "Pakistan",
              "Peru",
              "Philippines",
              "Poland",
              "Portugal",
              "Puerto Rico",
              "Qatar",
              "Romania",
              "Saudi Arabia",
              "Serbia",
              "Singapore",
              "Slovakia",
              "Slovenia",
              "South Africa",
              "South Korea",
              "Spain",
              "Sweden",
              "Switzerland",
              "Taiwan",
              "Thailand",
              "Turkiye",
              "Ukraine",
              "United Arab Emirates",
              "United Kingdom",
              "United States",
              "Uruguay",
              "Vietnam"
            ],
            "type": "string",
            "description": "Google Maps: the Google edition used to look the place up. Also the Tripadvisor search location when that field is empty.",
            "default": "United States"
          },
          "language": {
            "title": "Google language",
            "type": "string",
            "description": "Google Maps only: language code (en, de, es, pt-BR...). Google may translate reviews into this language; the original text is kept in originalText when available.",
            "default": "en"
          },
          "onlyNewReviews": {
            "title": "Only new reviews (monitoring)",
            "type": "boolean",
            "description": "For scheduled runs: remembers the reviews delivered before and returns only new ones, plus each business's rating and review-count change since the last check. The first run returns the latest reviews as a baseline. History is kept in your Apify account (key-value store 'review-monitor').",
            "default": false
          },
          "monitorId": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Name the monitor to keep its history stable when you edit the list, e.g. <code>my-restaurants</code>."
          },
          "includeReviewerDetails": {
            "title": "Include reviewer names and profiles",
            "type": "boolean",
            "description": "Off by default: reviewer names, profile links and locations are personal data and are left out. Turn on only if you need them (for example to reply to reviewers) and have a lawful basis to process them.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}