{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Reviews Scraper: Ratings & TrustScore",
    "description": "Trustpilot reviews for any company: each review's rating, title, text, dates, reviewer and the company's reply, newest first, plus the company's TrustScore, review count and star distribution. Read many companies in one run, or monitor them: only new reviews and replies.",
    "version": "0.1",
    "x-build-id": "p2e0H2jBigVkEeTDD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kaleidoscopelabs~trustpilot-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kaleidoscopelabs-trustpilot-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/kaleidoscopelabs~trustpilot-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kaleidoscopelabs-trustpilot-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/kaleidoscopelabs~trustpilot-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kaleidoscopelabs-trustpilot-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": {
          "companies": {
            "title": "Companies",
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "description": "One company a line: its domain as Trustpilot lists it (example.com), or the address of its Trustpilot page (https://www.trustpilot.com/review/example.com). A company given twice is read once.",
            "default": [
              "clockify.me"
            ],
            "items": {
              "type": "string"
            }
          },
          "reviewsPerCompany": {
            "title": "Reviews per company",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "How many reviews to store for each company, newest first; 0 stores as many as Trustpilot shows. Trustpilot shows a visitor the newest 200 reviews of a list without sign-in. Up to 200, the run reads the company's newest reviews. Above 200, it reads the company's lists by star rating, each newest first: up to 200 for each rating. Above 1,000 (200 for each rating read), it also reads a rating with more than 200 reviews by language: up to 200 for each rating and language.",
            "default": 100
          },
          "since": {
            "title": "Since",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2}|\\d{1,4}\\s*(d|day|days))?\\s*$",
            "type": "string",
            "description": "Keep only reviews published on or after a day (2026-10-01) or in the last days (30 days). Leave empty for every review up to Reviews per company. A company's reading stops at its first older review."
          },
          "stars": {
            "title": "Stars",
            "maxItems": 5,
            "type": "array",
            "description": "Keep only reviews with these ratings, one a line, from 1 to 5: for example 1 and 2 for the unhappy ones. Leave empty for every rating.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Languages",
            "maxItems": 50,
            "type": "array",
            "description": "Keep only reviews written in these languages, one two-letter code a line, such as en or de. Leave empty for every language.",
            "items": {
              "type": "string"
            }
          },
          "verified": {
            "title": "Verified reviews only",
            "type": "boolean",
            "description": "Keep only the reviews Trustpilot labels as verified.",
            "default": false
          },
          "withReplies": {
            "title": "Reviews with a reply only",
            "type": "boolean",
            "description": "Keep only the reviews the company has replied to.",
            "default": false
          },
          "includeCompanyInfo": {
            "title": "Company profile",
            "type": "boolean",
            "description": "Store one record for each company with its TrustScore, review count, star distribution, categories, contact details as its page shows them, and how often it replies.",
            "default": true
          },
          "mode": {
            "title": "What to store",
            "enum": [
              "all",
              "new"
            ],
            "type": "string",
            "description": "All reviews stores each company's newest reviews on every run. New and changed reviews turns the run into a monitor: it remembers the reviews it stored and, on later runs, stores only the reviews new since then, the ones their author edited, and the ones with a new or edited company reply; each record says which in its change field. A monitor's first run stores each company's newest reviews up to Reviews per company; its later runs store every new review Trustpilot shows, up to 200 for a company. Run it on a schedule.",
            "default": "all"
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^\\s*([A-Za-z0-9]([A-Za-z0-9 -]{0,38}[A-Za-z0-9])?)?\\s*$",
            "type": "string",
            "description": "Keeps this monitor's memory apart from another's on the same company: two schedules on one company with different names (such as weekly-report) each receive every new review. Letters, digits and hyphens. Leave empty if one monitor watches each company; do not run one monitor twice at the same time."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}