{
  "openapi": "3.0.1",
  "info": {
    "title": "Reviews Analyzer for Trustpilot, Booking, G2 Data",
    "description": "One summary row per business from your own reviews dataset or CSV/JSON file (Trustpilot, Booking, G2 style): star distribution, monthly trend, reply rate and speed, top terms, rank across businesses. No scraping, no reviewer names. Empty input runs a free demo.",
    "version": "0.1",
    "x-build-id": "RETe2NYcyBp5ahT0y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ucchiii~review-dataset-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ucchiii-review-dataset-analyzer",
        "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/ucchiii~review-dataset-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-ucchiii-review-dataset-analyzer",
        "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/ucchiii~review-dataset-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-ucchiii-review-dataset-analyzer",
        "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": {
          "datasetIds": {
            "title": "Reviews datasets",
            "type": "array",
            "description": "Dataset IDs (the 'defaultDatasetId' of a finished run that collected reviews, e.g. 'WkzbQMuFYuamGv3YF'). Datasets from your own Trustpilot, Booking or G2 style reviews runs. Reviews are grouped by business. Leave this and File URLs empty to run a free demo on fictional sample data (not charged)."
          },
          "fileUrls": {
            "title": "File URLs",
            "type": "array",
            "description": "Public http(s) links to CSV, JSON or NDJSON files with reviews (up to 50 MB each). Links to internal networks are blocked. Use together with or instead of datasets. Leave empty to use only datasets.",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "title": "Source style",
            "enum": [
              "auto",
              "trustpilot",
              "booking",
              "g2",
              "custom"
            ],
            "type": "string",
            "description": "Which column names to expect. The Actor tries this style first, then the others. Booking style also reads liked and disliked text columns and treats scores as 0 to 10. Default: detect from the columns.",
            "default": "auto"
          },
          "ratingMax": {
            "title": "Rating scale",
            "enum": [
              "auto",
              "5",
              "10",
              "100"
            ],
            "type": "string",
            "description": "Highest value of your rating column. Scores are converted to a 5-star scale. Default: detect (a column named reviewScore or the Booking source style means 10).",
            "default": "auto"
          },
          "businessField": {
            "title": "Business column",
            "type": "string",
            "description": "Override: column that names the business, hotel or product (e.g. 'companyName' or 'hotel.title'; dots reach nested fields). Without it the usual names for the chosen style are tried. If none exists, each dataset or file counts as one business."
          },
          "ratingField": {
            "title": "Rating column",
            "type": "string",
            "description": "Override: column with the star rating or score (e.g. 'score'). Numbers or text like '4.5' or '8,3' are read."
          },
          "dateField": {
            "title": "Review date column",
            "type": "string",
            "description": "Override: column with the date the review was published (ISO dates, 'March 5, 2026' style dates and UNIX times are read)."
          },
          "textField": {
            "title": "Review text column",
            "type": "string",
            "description": "Override: column with the review text, used for the top terms. The text is never written to the output."
          },
          "positiveTextField": {
            "title": "Positive text column",
            "type": "string",
            "description": "Override: column with the 'liked' or 'pros' part of a review. Its words count as positive whatever the stars are. Booking and G2 style columns are found automatically."
          },
          "negativeTextField": {
            "title": "Negative text column",
            "type": "string",
            "description": "Override: column with the 'disliked' or 'cons' part of a review. Its words count as negative whatever the stars are."
          },
          "replyField": {
            "title": "Business reply column",
            "type": "string",
            "description": "Override: column with the business's reply to the review (text or an object with 'message'). A review counts as replied when this is not empty."
          },
          "replyDateField": {
            "title": "Reply date column",
            "type": "string",
            "description": "Override: column with the date of the reply, used for reply speed. Without it the date inside a reply object is used if there is one."
          },
          "periodMonths": {
            "title": "Trend period (months)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Length of each trend bucket in months. 1 = monthly count and average rating, 3 = quarterly. Allowed range 1 to 12 (default 1).",
            "default": 1
          },
          "topTerms": {
            "title": "Terms per list",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many top positive and top negative words or two-word phrases to return for each business. Allowed range 0 to 100 (default 20); 0 returns no term lists.",
            "default": 20
          },
          "stopwords": {
            "title": "Extra stop words",
            "type": "array",
            "description": "Additional words to ignore in term analysis, such as the business name (lowercase, e.g. ['acme', 'hotel']). Common English stop words are always ignored.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}