{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Scraper: Reviews + Company Data + Profiles",
    "description": "The most feature-rich Trustpilot scraper on Apify. 35+ data fields per review, 36 company profile fields, reviewer profile scraping. Filter by stars, date, language, verified. Runs on 256 MB (4x cheaper). Brand monitoring, lead gen, sentiment analysis.",
    "version": "1.0",
    "x-build-id": "XJY6elrQVcfjDctk4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scavenger.agent~trustpilot-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scavenger.agent-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/scavenger.agent~trustpilot-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scavenger.agent-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/scavenger.agent~trustpilot-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scavenger.agent-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": {
          "companyUrls": {
            "title": "Company URLs or domains",
            "type": "array",
            "description": "Trustpilot company page URLs (e.g. https://www.trustpilot.com/review/amazon.com) or just domain names (e.g. amazon.com). Leave empty if using Reviewer Profile URLs.",
            "default": [
              "amazon.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "Max reviews per company",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of reviews to scrape per company (or per reviewer profile). Set 0 for unlimited.",
            "default": 100
          },
          "filterByStars": {
            "title": "Filter by star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only scrape reviews with this star rating (1-5). Set 0 for all ratings.",
            "default": 0
          },
          "dateFilter": {
            "title": "Date filter",
            "enum": [
              "",
              "last7days",
              "last30days",
              "last3months",
              "last6months",
              "lastyear"
            ],
            "type": "string",
            "description": "Filter reviews by time period.",
            "default": ""
          },
          "dateFrom": {
            "title": "Date from (custom)",
            "type": "string",
            "description": "Custom start date in YYYY-MM-DD format (e.g. 2025-01-01). Reviews before this date are excluded. Works with any sort order. Can be combined with Date filter.",
            "default": ""
          },
          "dateTo": {
            "title": "Date to (custom)",
            "type": "string",
            "description": "Custom end date in YYYY-MM-DD format (e.g. 2025-12-31). Reviews after this date are excluded.",
            "default": ""
          },
          "onlyVerified": {
            "title": "Only verified reviews",
            "type": "boolean",
            "description": "Only scrape reviews from verified customers.",
            "default": false
          },
          "onlyWithReplies": {
            "title": "Only reviews with replies",
            "type": "boolean",
            "description": "Only scrape reviews that have a company reply.",
            "default": false
          },
          "includeCompanyInfo": {
            "title": "Include company info in each review",
            "type": "boolean",
            "description": "Add company details (name, domain, rating, total reviews) to each review row. Useful for multi-company scrapes.",
            "default": true
          },
          "sortBy": {
            "title": "Sort reviews by",
            "enum": [
              "recency",
              "relevance"
            ],
            "type": "string",
            "description": "How to sort reviews.",
            "default": "recency"
          },
          "language": {
            "title": "Review language",
            "type": "string",
            "description": "Filter reviews by language code (e.g. 'en', 'de', 'fr', 'es', 'nl'). Leave empty for all languages.",
            "default": ""
          },
          "autoBypassLimit": {
            "title": "Auto-bypass 1000 review limit",
            "type": "boolean",
            "description": "Trustpilot limits browsing to 1000 reviews (50 pages). When enabled, the scraper automatically splits by star rating (1-5) to get up to 5000 reviews per company. Disable if you only need the first 1000.",
            "default": true
          },
          "onlyCompanyInfo": {
            "title": "Only company info (no reviews)",
            "type": "boolean",
            "description": "Only scrape company profile data (rating, categories, contact info, reply rate, AI summary, topic insights) without individual reviews. Great for lead generation and competitive intelligence.",
            "default": false
          },
          "reviewerProfileUrls": {
            "title": "Reviewer profile URLs",
            "type": "array",
            "description": "Scrape all reviews by specific reviewers. Enter Trustpilot profile URLs (e.g. https://www.trustpilot.com/users/abc123) or user IDs. When set, companyUrls is ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Trustpilot may block requests without proxies on large runs (1000+ reviews).",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}