{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Scraper",
    "description": "Trustpilot scraper API to export Trustpilot reviews: rating, title, text, date, language, reviewer country and the company's reply. Filter by stars, language, date, verified or a keyword, up to 50,000 a company. Also finds companies by search or category with their TrustScore. $0.037 per 1,000 rows.",
    "version": "0.2",
    "x-build-id": "XQXRXb8PbWq18OYEE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~trustpilot-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~trustpilot-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~trustpilot-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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",
            "type": "array",
            "description": "The companies whose reviews you want, one per line: their website (www.etsy.com) or their Trustpilot page (https://www.trustpilot.com/review/www.etsy.com). Up to 100 a run.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerCompany": {
            "title": "Reviews per company",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The most reviews to return for each company, up to 50,000.",
            "default": 100
          },
          "searchQueries": {
            "title": "Find companies",
            "type": "array",
            "description": "Company names or words to search Trustpilot for, one per line. Each company found comes back as a company row with its TrustScore, review count, website and contact details.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Trustpilot category pages, one per line: a link (https://www.trustpilot.com/categories/electronics_technology) or the id at its end (electronics_technology). Each company listed comes back as a company row.",
            "items": {
              "type": "string"
            }
          },
          "maxCompaniesPerSearch": {
            "title": "Companies per search or category",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most company rows to return for each search and each category, up to 10,000.",
            "default": 50
          },
          "stars": {
            "title": "Star ratings",
            "type": "array",
            "description": "Only reviews with these ratings. Leave empty for every rating.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            }
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only reviews written in these languages. Leave empty for reviews in every language.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "de",
                "fr",
                "es",
                "it",
                "nl",
                "da",
                "sv",
                "no",
                "fi",
                "pl",
                "pt",
                "cs",
                "sk",
                "hu",
                "ro",
                "bg",
                "el",
                "tr",
                "ru",
                "uk",
                "ar",
                "he",
                "ja",
                "ko",
                "zh",
                "th",
                "vi",
                "id",
                "ms",
                "hr",
                "sl",
                "sr",
                "lt",
                "lv",
                "et",
                "is",
                "ca"
              ],
              "enumTitles": [
                "English",
                "German",
                "French",
                "Spanish",
                "Italian",
                "Dutch",
                "Danish",
                "Swedish",
                "Norwegian",
                "Finnish",
                "Polish",
                "Portuguese",
                "Czech",
                "Slovak",
                "Hungarian",
                "Romanian",
                "Bulgarian",
                "Greek",
                "Turkish",
                "Russian",
                "Ukrainian",
                "Arabic",
                "Hebrew",
                "Japanese",
                "Korean",
                "Chinese",
                "Thai",
                "Vietnamese",
                "Indonesian",
                "Malay",
                "Croatian",
                "Slovenian",
                "Serbian",
                "Lithuanian",
                "Latvian",
                "Estonian",
                "Icelandic",
                "Catalan"
              ]
            }
          },
          "date": {
            "title": "Published in",
            "enum": [
              "all",
              "last30days",
              "last3months",
              "last6months",
              "last12months"
            ],
            "type": "string",
            "description": "Only reviews published in this period, as Trustpilot's own date filter counts it.",
            "default": "all"
          },
          "reviewsSince": {
            "title": "Published since",
            "type": "string",
            "description": "Only reviews published on or after this date, written 2026-01-31, or a span back from today such as 30 days, 6 months or 1 year."
          },
          "verifiedOnly": {
            "title": "Verified reviews only",
            "type": "boolean",
            "description": "Only reviews Trustpilot marks as verified.",
            "default": false
          },
          "withRepliesOnly": {
            "title": "Only reviews the company answered",
            "type": "boolean",
            "description": "Only reviews that carry a reply from the company.",
            "default": false
          },
          "reviewKeyword": {
            "title": "Reviews mentioning",
            "type": "string",
            "description": "Only reviews that mention this word or phrase, as Trustpilot's own review search finds them. Up to 100 characters."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "recency",
              "relevance"
            ],
            "type": "string",
            "description": "The order Trustpilot lists the reviews in. Past the first few hundred reviews of a company, they come one star rating at a time.",
            "default": "recency"
          },
          "country": {
            "title": "Country of the category list",
            "type": "string",
            "description": "Which country's companies a category lists, as a two-letter code such as US, GB or DE.",
            "default": "US"
          },
          "minTrustScore": {
            "title": "Lowest TrustScore",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only company rows with at least this TrustScore, from 0 to 5."
          },
          "minReviewCount": {
            "title": "Fewest reviews",
            "minimum": 0,
            "type": "integer",
            "description": "Only company rows with at least this many reviews on Trustpilot."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}