{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot API Full — Reviews, Company Data & TrustScore API",
    "description": "Scrape Trustpilot reviews, company profiles, TrustScores & ratings analytics, plus search & browse businesses by category. Export clean JSON, CSV or Excel — no login, no API key. Pay only for the data you pull. Ideal for review monitoring, lead generation & competitor research.",
    "version": "1.0",
    "x-build-id": "MYD93c05wlhb8sU3Y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pro100chok~trustpilot-all-in-one-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pro100chok-trustpilot-all-in-one-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/pro100chok~trustpilot-all-in-one-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pro100chok-trustpilot-all-in-one-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/pro100chok~trustpilot-all-in-one-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pro100chok-trustpilot-all-in-one-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": [
          "scrapeType"
        ],
        "properties": {
          "scrapeType": {
            "title": "🧭 What to scrape",
            "enum": [
              "reviews",
              "company",
              "transparency",
              "search",
              "category",
              "userReviews"
            ],
            "type": "string",
            "description": "Pick the kind of data you want. Each type bills at its own price.",
            "default": "reviews"
          },
          "companyUrls": {
            "title": "🏢 Company URLs or domains",
            "type": "array",
            "description": "For Reviews / Company profile / Transparency. Paste Trustpilot review URLs (https://www.trustpilot.com/review/www.amazon.com) or bare domains (www.amazon.com).",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "For Search companies. Brand names or keywords, e.g. \"nike\", \"online bank\".",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "🗂️ Categories",
            "type": "array",
            "description": "For Category listing. Trustpilot category ids or URLs, e.g. \"bank\" or https://www.trustpilot.com/categories/bank.",
            "items": {
              "type": "string"
            }
          },
          "userUrls": {
            "title": "👤 Reviewer profile URLs or IDs",
            "type": "array",
            "description": "For User reviews. Trustpilot profile URLs (https://www.trustpilot.com/users/{id}) or bare profile ids.",
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerCompany": {
            "title": "🔢 Max reviews per company",
            "minimum": 1,
            "type": "integer",
            "description": "Reviews mode. Trustpilot shows up to 200 reviews per filter; set above 200 to automatically sweep each star rating and collect up to ~1000.",
            "default": 200
          },
          "sort": {
            "title": "↕️ Sort reviews by",
            "enum": [
              "recency",
              "relevancy"
            ],
            "type": "string",
            "description": "Order in which reviews are collected: newest first or most relevant first.",
            "default": "recency"
          },
          "stars": {
            "title": "⭐ Star ratings",
            "uniqueItems": true,
            "type": "array",
            "description": "Only collect reviews with these star ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "⭐ 1 star",
                "⭐⭐ 2 stars",
                "⭐⭐⭐ 3 stars",
                "⭐⭐⭐⭐ 4 stars",
                "⭐⭐⭐⭐⭐ 5 stars"
              ]
            }
          },
          "language": {
            "title": "🌐 Review language",
            "type": "string",
            "description": "ISO code to filter reviews by language (e.g. en, de, it). Leave empty for all languages."
          },
          "date": {
            "title": "📅 Date range",
            "enum": [
              "all",
              "last30days",
              "last3months",
              "last6months",
              "last12months"
            ],
            "type": "string",
            "description": "Only collect reviews published within this time window.",
            "default": "all"
          },
          "verifiedOnly": {
            "title": "✅ Verified reviews only",
            "type": "boolean",
            "description": "When enabled, only verified reviews are collected.",
            "default": false
          },
          "repliesOnly": {
            "title": "💬 Only reviews with a company reply",
            "type": "boolean",
            "description": "When enabled, only reviews that have a reply from the company are collected.",
            "default": false
          },
          "reviewSearchQuery": {
            "title": "🔑 Keyword inside reviews",
            "type": "string",
            "description": "Only collect reviews whose text contains this keyword."
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Search / Category mode. Maximum companies to return per search term or category.",
            "default": 100
          },
          "country": {
            "title": "🌍 Country",
            "type": "string",
            "description": "Two-letter country code used to localise search and category results.",
            "default": "US"
          },
          "enrichWith": {
            "title": "➕ Also fetch for each found company",
            "uniqueItems": true,
            "type": "array",
            "description": "Search / Category / Company mode. For every company, additionally scrape this deeper data and nest it inside the same company object (one row per company) — chains discovery straight into profiles, analytics and reviews. Each nested item still bills at its own price.",
            "items": {
              "type": "string",
              "enum": [
                "company",
                "transparency",
                "reviews"
              ],
              "enumTitles": [
                "🏢 Company profile",
                "📊 Transparency & analytics",
                "⭐ Reviews"
              ]
            }
          },
          "maxConcurrency": {
            "title": "⚡ Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many companies to scrape in parallel.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "Proxy used to reach Trustpilot. Residential proxies are recommended; you can also plug in your own custom proxies here.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}