{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Reviews Scraper: Ratings, Replies & Company Info",
    "description": "Trustpilot reviews scraper by company website or Trustpilot link: stars, titles, text, dates, verified status, company replies and TrustScore. Free filters. No login.",
    "version": "0.1",
    "x-build-id": "NJAwdPqPCwLKIktP4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/techliondev~trustpilot-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-techliondev-trustpilot-reviews-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/techliondev~trustpilot-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-techliondev-trustpilot-reviews-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/techliondev~trustpilot-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-techliondev-trustpilot-reviews-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",
        "required": [
          "companies"
        ],
        "properties": {
          "companies": {
            "title": "🏢 Companies",
            "type": "array",
            "description": "One company per line. Use the company's website (for example amazon.com or www.zappos.com) or its Trustpilot link (https://www.trustpilot.com/review/www.amazon.com). Country Trustpilot sites such as uk.trustpilot.com work too.",
            "default": [
              "www.zappos.com",
              "https://www.trustpilot.com/review/www.chewy.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "💯 Maximum reviews per company",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after this many saved reviews for each company. Reviews removed by filters are not counted or charged. Trustpilot shows logged-out visitors 200 reviews per filter, so above 200 the Actor collects up to 200 for each star rating (up to 1,000 per company, or 200 per star value you pick).",
            "default": 50
          },
          "sort": {
            "title": "Sort reviews by",
            "enum": [
              "recency",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first is best for monitoring. Most relevant is Trustpilot's default order.",
            "default": "recency"
          },
          "stars": {
            "title": "Star ratings",
            "type": "array",
            "description": "Keep only these star ratings, one per line (1 to 5). For example 1 and 2 for complaints. Leave empty for all ratings.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Review language",
            "type": "string",
            "description": "\"all\" for every language, or a two-letter code such as en, de, fr, es.",
            "default": "all"
          },
          "datePeriod": {
            "title": "Posted in the last",
            "enum": [
              "all",
              "last30days",
              "last3months",
              "last6months",
              "last12months"
            ],
            "type": "string",
            "description": "Trustpilot's own date filter.",
            "default": "all"
          },
          "since": {
            "title": "Only reviews posted since",
            "type": "string",
            "description": "A date like 2026-01-31 or a period like \"7 days\". With Newest first, reading stops once reviews get older, so a daily monitor stays fast."
          },
          "verifiedOnly": {
            "title": "Only verified reviews",
            "type": "boolean",
            "description": "Keep only reviews Trustpilot marks as verified.",
            "default": false
          },
          "withRepliesOnly": {
            "title": "Only reviews the company replied to",
            "type": "boolean",
            "description": "Keep only reviews with a company reply.",
            "default": false
          },
          "includeKeywords": {
            "title": "Reviews must mention one of these words",
            "type": "array",
            "description": "Matched against the review title and text. Short words (3 letters or fewer) match whole words only.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Skip reviews mentioning",
            "type": "array",
            "description": "Reviews that mention any of these words are skipped.",
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new reviews",
            "type": "boolean",
            "description": "Remembers every review ID and, after the first run, saves only reviews that are new since last time. The first run saves everything and remembers it.",
            "default": false
          },
          "stateName": {
            "title": "Tracking name (optional)",
            "type": "string",
            "description": "Use a different name for each separate watch list. Leave empty to use a name based on your companies and filters."
          },
          "useProxyIfBlocked": {
            "title": "Use residential proxy if Trustpilot blocks",
            "type": "boolean",
            "description": "The Actor goes out directly first. If Trustpilot keeps blocking, it switches to Apify residential proxy for the rest of the run. Included in the review price; you are never charged extra for it.",
            "default": true
          },
          "maxProxyMegabytes": {
            "title": "Proxy traffic cap (megabytes)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Hard limit on residential proxy traffic for one run. The run stops cleanly when the cap is reached. Only used if Trustpilot blocks direct requests.",
            "default": 60
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}