{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Reviews Scraper",
    "description": "From $0.4/1k 💰 Scrape Trustpilot reviews at scale with 70+ data points (ratings, text, country, names, replies, full business profiles, reviews distributions and more). Bypass Trustpilot’s ~200 limit at lightning speed! Export to JSON/CSV/Excel/API. AI-agent ready - start now! 🚀",
    "version": "0.0",
    "x-build-id": "657rJ09UPxItiyWc4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/azzouzana~trustpilot-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-azzouzana-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/azzouzana~trustpilot-scraper/runs": {
      "post": {
        "operationId": "runs-sync-azzouzana-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/azzouzana~trustpilot-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-azzouzana-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",
        "required": [
          "company"
        ],
        "properties": {
          "company": {
            "title": "Company URL or slug",
            "type": "string",
            "description": "Trustpilot review page URL, domain, or slug (e.g. apify.com, https://www.trustpilot.com/review/www.nike.com)."
          },
          "maxItems": {
            "title": "Max reviews",
            "minimum": 10,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum unique reviews to collect this run.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recency",
              "relevance"
            ],
            "type": "string",
            "description": "Most recent (newest first) or most relevant reviews.",
            "default": "recency"
          },
          "filterStars": {
            "title": "Star ratings",
            "uniqueItems": true,
            "type": "array",
            "description": "Only these star ratings (1–5). Leave empty for all. Multiple values may be split on page cap for deeper coverage.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "filterLanguages": {
            "title": "Language",
            "enum": [
              "all",
              "en",
              "fr",
              "pt",
              "es",
              "nl",
              "it",
              "id",
              "de",
              "zh",
              "ru",
              "pl"
            ],
            "type": "string",
            "description": "Review language filter (matches Trustpilot UI). All languages = no language filter.",
            "default": "all"
          },
          "filterCountries": {
            "title": "Reviewer countries",
            "uniqueItems": true,
            "type": "array",
            "description": "Only keep reviews from these reviewer countries (client-side filter on reviewerCountryCode). Leave empty for all countries.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "CA",
                "AU",
                "NZ",
                "IE",
                "DE",
                "FR",
                "ES",
                "IT",
                "NL",
                "BE",
                "AT",
                "CH",
                "SE",
                "NO",
                "DK",
                "FI",
                "PL",
                "PT",
                "CZ",
                "HU",
                "RO",
                "GR",
                "BG",
                "HR",
                "SK",
                "SI",
                "LT",
                "LV",
                "EE",
                "LU",
                "MT",
                "CY",
                "IS",
                "BR",
                "MX",
                "IN",
                "JP",
                "KR",
                "SG",
                "AE",
                "ZA",
                "TR",
                "IL",
                "SA",
                "MY",
                "TH",
                "HK",
                "TW"
              ],
              "enumTitles": [
                "US — United States",
                "GB — United Kingdom",
                "CA — Canada",
                "AU — Australia",
                "NZ — New Zealand",
                "IE — Ireland",
                "DE — Germany",
                "FR — France",
                "ES — Spain",
                "IT — Italy",
                "NL — Netherlands",
                "BE — Belgium",
                "AT — Austria",
                "CH — Switzerland",
                "SE — Sweden",
                "NO — Norway",
                "DK — Denmark",
                "FI — Finland",
                "PL — Poland",
                "PT — Portugal",
                "CZ — Czech Republic",
                "HU — Hungary",
                "RO — Romania",
                "GR — Greece",
                "BG — Bulgaria",
                "HR — Croatia",
                "SK — Slovakia",
                "SI — Slovenia",
                "LT — Lithuania",
                "LV — Latvia",
                "EE — Estonia",
                "LU — Luxembourg",
                "MT — Malta",
                "CY — Cyprus",
                "IS — Iceland",
                "BR — Brazil",
                "MX — Mexico",
                "IN — India",
                "JP — Japan",
                "KR — South Korea",
                "SG — Singapore",
                "AE — United Arab Emirates",
                "ZA — South Africa",
                "TR — Turkey",
                "IL — Israel",
                "SA — Saudi Arabia",
                "MY — Malaysia",
                "TH — Thailand",
                "HK — Hong Kong",
                "TW — Taiwan"
              ]
            },
            "default": []
          },
          "filterDateRange": {
            "title": "Date posted",
            "enum": [
              "all",
              "last30days",
              "last3months",
              "last6months",
              "last12months"
            ],
            "type": "string",
            "description": "Only reviews from the selected time window. All reviews = no date filter.",
            "default": "all"
          },
          "filterVerifiedOnly": {
            "title": "Verified reviews only",
            "type": "boolean",
            "description": "Only include reviews marked as verified by Trustpilot.",
            "default": false
          },
          "filterRepliesOnly": {
            "title": "Reviews with company reply only",
            "type": "boolean",
            "description": "Only include reviews that have a company reply.",
            "default": false
          },
          "searchKeywords": {
            "title": "Search keywords",
            "maxLength": 100,
            "type": "string",
            "description": "Keyword filter in review text (max 100 characters)."
          },
          "includeBusinessDetails": {
            "title": "Include business unit details",
            "type": "boolean",
            "description": "Add the full Trustpilot businessUnit profile on each row: flattened business_* fields (id, categories, verification, activity, contactInfo, flags) plus businessName, businessWebsite, businessUrl, and contact aliases.",
            "default": false
          },
          "includeReviewsDistribution": {
            "title": "Include review distribution",
            "type": "boolean",
            "description": "Add trustScore, totalReviews, starsOne–starsFive on each review row.",
            "default": false
          },
          "includeTransparency": {
            "title": "Include transparency data",
            "type": "boolean",
            "description": "Fetch transparency page for basicLinkRate and consumer alerts.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}