{
  "openapi": "3.0.1",
  "info": {
    "title": "Trustpilot Company Scraper — Profiles, Search & Categories",
    "description": "Scrape Trustpilot company profiles, search results and category leaderboards from domains, Trustpilot URLs, search terms or category URLs. Returns TrustScore, review count, claimed status, website, country, contacts and categories.",
    "version": "2.0",
    "x-build-id": "aYlQdoqcbYWZ9kVLz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~trustpilot-company-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-trustpilot-company-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/khadinakbar~trustpilot-company-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-trustpilot-company-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/khadinakbar~trustpilot-company-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-trustpilot-company-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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Company targets",
            "type": "array",
            "description": "Use this when you need Trustpilot company data from domains, company URLs, search terms, or category pages. One item per line: 'apple.com' or a Trustpilot review URL returns one company profile; '/categories/bank' returns a category leaderboard; 'online banks' runs a company search. For review text from these companies, switch on 'Include reviews' below.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "profile",
              "search",
              "category"
            ],
            "type": "string",
            "description": "Use this when you want to force how every company target is interpreted. 'auto' detects profile, search, or category per item; 'profile' treats each item as a company domain or Trustpilot review URL; 'search' runs Trustpilot company search; 'category' treats each item as a category slug or URL. Defaults to auto and is NOT a review filter.",
            "default": "auto"
          },
          "country": {
            "title": "Country (for search & category)",
            "type": "string",
            "description": "Use this when search or category results should be scoped to a Trustpilot market. Enter a two-letter ISO country code such as 'US', 'GB', 'DE', 'FR', or 'AU'; leave empty for global trustpilot.com. Ignored for profile mode because company profiles resolve to canonical pages. NOT a language or review-country filter.",
            "default": ""
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Use this to cap how many company rows each search or category target returns. A profile target always returns 1 company. Default 50, maximum 1000 per target. Trustpilot only serves its first pages publicly, so very large listings may end earlier; the run summary says when that happens. NOT a review-count limit.",
            "default": 50
          },
          "minTrustScore": {
            "title": "Minimum TrustScore",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Use this to keep only companies at or above this TrustScore (0 to 5). Rows below it are dropped before billing, so you pay only for companies you keep. Leave empty for no filter."
          },
          "minReviews": {
            "title": "Minimum review count",
            "minimum": 0,
            "type": "integer",
            "description": "Use this to keep only companies with at least this many reviews. Leave empty for no filter."
          },
          "claimedOnly": {
            "title": "Claimed profiles only",
            "type": "boolean",
            "description": "Use this to keep only companies that have claimed their Trustpilot profile (an active, reachable business).",
            "default": false
          },
          "hasEmail": {
            "title": "Has a public email",
            "type": "boolean",
            "description": "Use this to keep only companies that show a public contact email on their Trustpilot profile.",
            "default": false
          },
          "hasWebsite": {
            "title": "Has a website",
            "type": "boolean",
            "description": "Use this to keep only companies that list a website. Applies to company profile inputs (domains or review URLs) only; search and category rows do not carry this data.",
            "default": false
          },
          "filterCategory": {
            "title": "Category contains",
            "type": "string",
            "description": "Use this to keep only companies whose category name contains this text, for example 'bank' or 'software'. Leave empty for no filter."
          },
          "filterCountry": {
            "title": "Company country",
            "type": "string",
            "description": "Use this to keep only companies located in one country. Enter a two-letter code such as 'US' or a country name. Leave empty for no filter. This is different from the market selector above."
          },
          "includeTransparency": {
            "title": "Include transparency report",
            "type": "boolean",
            "description": "Use this to add one extra row per company profile with Trustpilot's own transparency numbers: reports received, reports under investigation, reviews taken offline, reviews reactivated, reply rate, how reviews are collected, how long the profile has been claimed and how often it was merged. Billed per report. Company profile targets only. This add-on switches on automatically when the new price list takes effect (see the Pricing tab); until then it is skipped and the run notes say so.",
            "default": false
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Use this to also collect public review text for each company: rating, title, text, language, dates, verified flag, reviewer name/country/review count, and the company reply. Billed per review. For review-only jobs at very large volume, the trustpilot-reviews-scraper Actor is built for that. This add-on switches on automatically when the new price list takes effect (see the Pricing tab); until then it is skipped and the run notes say so.",
            "default": false
          },
          "maxReviewsPerCompany": {
            "title": "Max reviews per company",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Use this to cap reviews collected for each company. Trustpilot serves at most 200 reviews per filter combination, so larger caps are filled by automatically splitting by star rating (and by language above 1000). Default 100, maximum 5000.",
            "default": 100
          },
          "reviewStars": {
            "title": "Star ratings to collect",
            "type": "array",
            "description": "Use this to collect only some star ratings, for example [1,2] for unhappy customers. Leave empty for all ratings.",
            "items": {
              "type": "string"
            }
          },
          "reviewLanguages": {
            "title": "Review languages",
            "type": "array",
            "description": "Use this to collect reviews in specific languages, using two-letter codes such as 'en' or 'de'. Leave empty for all languages in one pass.",
            "items": {
              "type": "string"
            }
          },
          "sweepReviewLanguages": {
            "title": "Sweep every language",
            "type": "boolean",
            "description": "Use this to collect reviews language by language (up to 12 most common) so large profiles are covered more deeply. Slower and more rows.",
            "default": false
          },
          "reviewDatePeriod": {
            "title": "Review date window",
            "enum": [
              "",
              "last30days",
              "last3months",
              "last6months",
              "last12months"
            ],
            "type": "string",
            "description": "Use this to limit reviews to a recent period. Leave on 'Any time' for no limit.",
            "default": ""
          },
          "reviewsSince": {
            "title": "Reviews since (date)",
            "type": "string",
            "description": "Use this to keep only reviews published after this date, in YYYY-MM-DD format. Leave empty for no limit."
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "recency",
              "relevance"
            ],
            "type": "string",
            "description": "Use this to choose newest-first or Trustpilot's relevance order.",
            "default": "recency"
          },
          "reviewVerifiedOnly": {
            "title": "Verified reviews only",
            "type": "boolean",
            "description": "Use this to collect only reviews Trustpilot marks as verified.",
            "default": false
          },
          "reviewRepliedOnly": {
            "title": "Reviews with a company reply only",
            "type": "boolean",
            "description": "Use this to collect only reviews the company has replied to.",
            "default": false
          },
          "onlyNewReviews": {
            "title": "Only reviews new since the last run",
            "type": "boolean",
            "description": "Use this for monitoring. The Actor remembers the newest review it delivered per company in a saved store and returns only newer reviews next time. If a company gets more new reviews than your cap between runs, raise the cap so none are missed.",
            "default": false
          },
          "watermarkStoreName": {
            "title": "Monitoring store name",
            "type": "string",
            "description": "Use this to keep separate monitoring histories. Leave the default unless you run several independent monitors.",
            "default": "trustpilot-reviews-watermarks"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional outbound proxy for the browser backup route. Most pages are fetched through the Actor's built-in managed access first and need no proxy. Leave the default unless you have a specific need. No login is required.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}