{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Reviews Scraper: All Reviews, TrustScore, Replies",
    "description": "Export Trustpilot reviews for any company, past the 200-review limit: stars, full text, dates, reviewer, country and replies, plus TrustScore, rating mix and contacts. Schedule for new reviews only.",
    "version": "0.1",
    "x-build-id": "OHtfZXQBJf3hOpFKI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~trustpilot-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-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/automatic~trustpilot-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-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/automatic~trustpilot-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-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",
        "properties": {
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "Company websites (amazon.com, www.zooplus.co.uk) or Trustpilot review links (trustpilot.com/review/...). Filters in a pasted link (stars, language, date, sort) are kept for that company. Leave the whole input empty for a small example; an empty list on its own is an input error.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "maxReviewsPerCompany": {
            "title": "Reviews per company",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "How many reviews to collect for each company, newest first. Set 0 for the company profile only. Above 200, the reviews are collected star rating by star rating (and language by language) to reach further back.",
            "default": 100
          },
          "stars": {
            "title": "Star ratings",
            "description": "Only reviews with these star ratings, for example [\"1\", \"2\"] or [4, 5]. Numbers, text such as \"5 stars\" and a single rating also work. Leave empty for all ratings.",
            "default": []
          },
          "language": {
            "title": "Review language",
            "type": "string",
            "description": "all, or a two-letter language code such as en, de or fr.",
            "default": "all"
          },
          "dateRange": {
            "title": "Posted within",
            "enum": [
              "",
              "last30days",
              "last3months",
              "last6months",
              "last12months"
            ],
            "type": "string",
            "description": "Only reviews posted in this period.",
            "default": ""
          },
          "sort": {
            "title": "Order",
            "enum": [
              "recency",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first, or Trustpilot's most relevant order.",
            "default": "recency"
          },
          "verifiedOnly": {
            "title": "Verified reviews only",
            "type": "boolean",
            "description": "Only reviews Trustpilot marks as verified.",
            "default": false
          },
          "withRepliesOnly": {
            "title": "Reviews with a company reply only",
            "type": "boolean",
            "description": "Only reviews the company has replied to.",
            "default": false
          },
          "keywords": {
            "title": "Keywords in review text",
            "type": "array",
            "description": "Only reviews whose title or text mentions at least one of these words or phrases, matched case-insensitively (\"refund\" also finds \"refunded\"). Reviews that do not match are skipped and not charged. Combine with star ratings and the monitoring options to alert on, for example, new 1-star reviews about refunds.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "includeCompanyInfo": {
            "title": "Company profile row",
            "type": "boolean",
            "description": "Add one row per company with its TrustScore, review count, star breakdown, categories, description and contact details.",
            "default": true
          },
          "searchQueries": {
            "title": "Find companies by search term",
            "type": "array",
            "description": "Optional. Search terms as you would type them on Trustpilot, for example pet food or bank. Each matching company comes back as a company row.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "categories": {
            "title": "Find companies by category",
            "type": "array",
            "description": "Optional. Trustpilot category names or links, for example bank, pet_store or trustpilot.com/categories/electronics_technology.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "categoryCountry": {
            "title": "Category country",
            "type": "string",
            "description": "Two-letter country code for category lists, for example US, GB or DE.",
            "default": "US"
          },
          "categorySort": {
            "title": "Category order",
            "enum": [
              "most_relevant",
              "reviews_count",
              "latest_review"
            ],
            "type": "string",
            "description": "Order of companies in a category list.",
            "default": "most_relevant"
          },
          "maxCompaniesPerSearch": {
            "title": "Companies per search or category",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many companies to return for each search term or category.",
            "default": 20
          },
          "reviewsForFoundCompanies": {
            "title": "Also collect reviews of found companies",
            "type": "boolean",
            "description": "Collect reviews (up to Reviews per company) for every company found by search term or category.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit on rows (company rows plus reviews) for the whole run.",
            "default": 1000
          },
          "publishedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only reviews posted on or after this date: a date such as 2026-10-01, or a period such as 7d, 24h or 2w back from the start of the run. Reading stops as soon as the reviews get older, so a short period is quick even for companies with millions of reviews. Leave empty for no date limit. Needs the Newest first order."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new reviews since the last run",
            "type": "boolean",
            "description": "Remember which reviews this feed already delivered and return (and charge) only new ones on later runs. The first run is the starting point: it returns up to Reviews per company and marks rows isBaseline. Each company and filter combination keeps its own history. Company profile rows come back on the first run and again only when the TrustScore or star rating changes. Run one schedule at a time per feed name.",
            "default": false
          },
          "feedName": {
            "title": "Feed name",
            "type": "string",
            "description": "Optional name for the feed history. Leave empty to keep one history per saved task (runs started without a task share one). Use a new name to start the feed over, or different names for schedules that must not share a history."
          },
          "includeUpdatedReviews": {
            "title": "Also return edited reviews and new company replies",
            "type": "boolean",
            "description": "With Only new reviews: also return a review delivered before when its stars, title, text or company reply changed, marked changed with changedFields. Covers reviews posted in the last few days before the previous run.",
            "default": false
          },
          "orderBy": {
            "title": "Result order",
            "enum": [
              "source",
              "date"
            ],
            "type": "string",
            "description": "As collected (default): newest first, except that more than 200 reviews come back grouped by star rating. Newest first: each company's reviews are sorted by posting date before they are saved.",
            "default": "source"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}