{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Reviews Scraper — Deep History & Sync",
    "description": "Trustpilot reviews scraper for deep reputation research. Go beyond the usual ~200-review anonymous window, filter by rating/language/date/verification/replies, discover brands, export business insights, and run incremental only-new review pulls with persistent monitoring.",
    "version": "0.1",
    "x-build-id": "LodGjfEz6ry68MZhu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenomastro~trustpilot-reviews-reliable/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenomastro-trustpilot-reviews-reliable",
        "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/zenomastro~trustpilot-reviews-reliable/runs": {
      "post": {
        "operationId": "runs-sync-zenomastro-trustpilot-reviews-reliable",
        "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/zenomastro~trustpilot-reviews-reliable/run-sync": {
      "post": {
        "operationId": "run-sync-zenomastro-trustpilot-reviews-reliable",
        "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": {
          "companies": {
            "title": "Companies or Trustpilot review URLs",
            "minItems": 0,
            "maxItems": 100,
            "type": "array",
            "description": "Direct company domains or Trustpilot review URLs. Can be combined with search/category discovery.",
            "default": [
              "booking.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerCompany": {
            "title": "Maximum reviews per company",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum matching review rows emitted for each unique company.",
            "default": 100
          },
          "maxTotalReviews": {
            "title": "Maximum total reviews",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap across all companies for predictable runtime and spend.",
            "default": 1000
          },
          "sortBy": {
            "title": "Review order",
            "enum": [
              "newest",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first or Trustpilot relevance order.",
            "default": "newest"
          },
          "starRatings": {
            "title": "Star ratings",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional star filters. Empty means all 1-5 star ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "languageCodes": {
            "title": "Review languages",
            "type": "array",
            "description": "Optional ISO language codes such as en, de, fr, it. Empty means all languages and enables automatic language slicing for very deep runs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "reviewedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Optional inclusive lower boundary: YYYY-MM-DD or ISO 8601.",
            "default": ""
          },
          "reviewedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Optional inclusive upper boundary: YYYY-MM-DD or ISO 8601.",
            "default": ""
          },
          "containsText": {
            "title": "Review text contains",
            "type": "string",
            "description": "Optional case-insensitive keyword across review title and text. Filtered rows are not billed.",
            "default": ""
          },
          "verifiedOnly": {
            "title": "Verified reviews only",
            "type": "boolean",
            "description": "Only emit reviews whose Trustpilot verification label reports isVerified=true.",
            "default": false
          },
          "companyReply": {
            "title": "Company reply",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Return any reviews, only reviews with a company reply, or only reviews without a reply.",
            "default": "any"
          },
          "minLikes": {
            "title": "Minimum useful/like count",
            "minimum": 0,
            "type": "integer",
            "description": "Only emit reviews with at least this many Trustpilot likes/useful votes.",
            "default": 0
          },
          "deepPagination": {
            "title": "Deep pagination beyond the first 200 reviews",
            "type": "boolean",
            "description": "Automatically segment by star rating and language to reach review history beyond Trustpilot's normal anonymous pagination window.",
            "default": false
          },
          "includeBusinessSummary": {
            "title": "Include business summary",
            "type": "boolean",
            "description": "Add one free company-summary row with TrustScore, total reviews, categories, contact/profile and review-language statistics.",
            "default": true
          },
          "maxPagesPerSlice": {
            "title": "Maximum pages per filter slice",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Trustpilot exposes 20 reviews per page and normally caps anonymous browsing at 10 pages per filter combination.",
            "default": 5
          },
          "maxAutoLanguages": {
            "title": "Maximum automatic language slices",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "For very deep runs, cap the number of automatically discovered languages used for star x language segmentation.",
            "default": 5
          },
          "browserTimeoutSecs": {
            "title": "Browser/session timeout",
            "minimum": 20,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum seconds to pass Trustpilot's browser challenge and initialize a company session.",
            "default": 45
          },
          "requestTimeoutSecs": {
            "title": "Review JSON request timeout",
            "minimum": 10,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum seconds for each paginated Trustpilot JSON request.",
            "default": 25
          },
          "retries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retries a company session after transient browser/WAF/network failures.",
            "default": 1
          },
          "autoProxyFallback": {
            "title": "Automatic Apify Proxy fallback",
            "type": "boolean",
            "description": "Try direct Chromium first; if Trustpilot blocks the session, retry through Apify Proxy when available.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional explicit proxy configuration. Leave disabled for direct-first mode.",
            "default": {
              "useApifyProxy": false
            }
          },
          "monitorKey": {
            "title": "Persistent review monitor key",
            "type": "string",
            "description": "Reuse the same key on scheduled runs to mark reviews already seen by this Actor.",
            "default": ""
          },
          "onlyNew": {
            "title": "Emit only new reviews",
            "type": "boolean",
            "description": "With monitorKey, output and bill only reviews that were not seen in prior runs.",
            "default": false
          },
          "includeReviewInsights": {
            "title": "Include review insights",
            "type": "boolean",
            "description": "Add a free per-source summary with average score, reply rate and score distribution for the matched review sample.",
            "default": true
          },
          "companySearchQueries": {
            "title": "Brand/company search queries",
            "maxItems": 25,
            "type": "array",
            "description": "Search Trustpilot for brands or companies, then scrape the discovered company review profiles.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Trustpilot category/listing URLs",
            "maxItems": 25,
            "type": "array",
            "description": "Optional public Trustpilot category or listing pages. Company profiles discovered on these pages become review targets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxDiscoveredCompanies": {
            "title": "Maximum discovered companies",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap across brand searches and category pages.",
            "default": 50
          },
          "maxRuntimeSecs": {
            "title": "Safe runtime budget",
            "minimum": 120,
            "maximum": 3300,
            "type": "integer",
            "description": "Soft runtime cap in seconds. The Actor stops cleanly with partial results before the platform hard timeout, protecting reliability and paid usage.",
            "default": 1200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}