{
  "description": "Collect TrustRadius product profiles, review archives, product discovery cards or side-by-side comparisons.",
  "properties": {
    "categoryUrls": {
      "default": [],
      "description": "(mode=discover) TrustRadius category URLs or slugs, such as https://www.trustradius.com/categories/crm or crm.",
      "editor": "stringList",
      "prefill": [],
      "title": "Category URLs or slugs",
      "type": "array"
    },
    "companySizes": {
      "default": [],
      "description": "(mode=reviews) Reviewer company sizes: small, medium or large. Leave empty for all sizes.",
      "editor": "stringList",
      "prefill": [],
      "title": "Company sizes",
      "type": "array"
    },
    "countries": {
      "default": [],
      "description": "(mode=reviews) Reviewer country codes in ISO3 form, for example USA, CAN or GBR.",
      "editor": "stringList",
      "prefill": [],
      "title": "Reviewer countries",
      "type": "array"
    },
    "departments": {
      "default": [],
      "description": "(mode=reviews) Departments such as Marketing, Engineering or Information Technology.",
      "editor": "stringList",
      "prefill": [],
      "title": "Reviewer departments",
      "type": "array"
    },
    "includeProductDetails": {
      "default": true,
      "description": "(mode=product) Also collect feature scorecards, pricing plans, product details, FAQs and alternatives.",
      "prefill": false,
      "title": "Include product details",
      "type": "boolean"
    },
    "includeReviewDetails": {
      "default": false,
      "description": "(mode=reviews) Open each review to collect ROI, alternatives and the full Q&A. Adds one request per review.",
      "prefill": false,
      "title": "Include full review details",
      "type": "boolean"
    },
    "jobTypes": {
      "default": [],
      "description": "(mode=reviews) Job types such as Engineer, Manager, Director or Analyst.",
      "editor": "stringList",
      "prefill": [],
      "title": "Reviewer job types",
      "type": "array"
    },
    "lastUpdated": {
      "default": "any",
      "description": "(mode=reviews) Only include reviews updated within this window.",
      "editor": "select",
      "enum": [
        "any",
        "month",
        "3months",
        "6months",
        "year"
      ],
      "enumTitles": [
        "Any time",
        "Past month",
        "Past 3 months",
        "Past 6 months",
        "Past year"
      ],
      "prefill": "any",
      "title": "Review recency",
      "type": "string"
    },
    "maxItems": {
      "default": 25,
      "description": "Hard cap on emitted products, reviews, discovery cards or comparisons.",
      "maximum": 5000,
      "minimum": 1,
      "prefill": 1,
      "title": "Max records",
      "type": "integer"
    },
    "maxReviewsPerProduct": {
      "default": 100,
      "description": "(mode=reviews) Reviews to collect per product. Use 0 for the entire archive.",
      "maximum": 10000,
      "minimum": 0,
      "prefill": 3,
      "title": "Max reviews per product",
      "type": "integer"
    },
    "minYearsExperience": {
      "default": 0,
      "description": "(mode=reviews) Minimum reviewer experience in years. Use 0 for no minimum.",
      "maximum": 20,
      "minimum": 0,
      "prefill": 0,
      "title": "Minimum years of experience",
      "type": "integer"
    },
    "mode": {
      "default": "product",
      "description": "What to collect: product profiles, individual reviews, product discovery cards or a side-by-side comparison.",
      "editor": "select",
      "enum": [
        "product",
        "reviews",
        "discover",
        "compare"
      ],
      "enumTitles": [
        "Product profiles",
        "Reviews",
        "Find products",
        "Compare products"
      ],
      "prefill": "product",
      "title": "Mode",
      "type": "string"
    },
    "productUrls": {
      "default": [
        "https://www.trustradius.com/products/asana"
      ],
      "description": "TrustRadius product URLs, review URLs or bare slugs. Used by product and reviews modes; compare mode accepts a /compare-products/a-vs-b URL or two products.",
      "editor": "stringList",
      "prefill": [
        "https://www.trustradius.com/products/asana"
      ],
      "title": "Product URLs or slugs",
      "type": "array"
    },
    "publishedAfter": {
      "default": "",
      "description": "(mode=reviews) Keep reviews published on or after this date (YYYY-MM-DD). Leave empty for no cutoff.",
      "editor": "textfield",
      "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
      "prefill": "",
      "title": "Published after",
      "type": "string"
    },
    "reviewSort": {
      "default": "newest",
      "description": "(mode=reviews) Order in which reviews are collected.",
      "editor": "select",
      "enum": [
        "newest",
        "oldest",
        "highestRated",
        "lowestRated"
      ],
      "enumTitles": [
        "Newest first",
        "Oldest first",
        "Highest rated first",
        "Lowest rated first"
      ],
      "prefill": "newest",
      "title": "Review order",
      "type": "string"
    },
    "reviewerRoles": {
      "default": [],
      "description": "(mode=reviews) Roles reviewers played: user, manager, support, decisionMaker, consultant or implementer.",
      "editor": "stringList",
      "prefill": [],
      "title": "Reviewer roles",
      "type": "array"
    },
    "searchQueries": {
      "default": [],
      "description": "(mode=discover) Keywords to search in the TrustRadius software directory.",
      "editor": "stringList",
      "prefill": [],
      "title": "Search queries",
      "type": "array"
    },
    "starRatings": {
      "default": [],
      "description": "(mode=reviews) Only reviews with these ratings (1-5), for example [\"1\",\"2\"]. Leave empty for all ratings.",
      "editor": "stringList",
      "prefill": [],
      "title": "Star ratings",
      "type": "array"
    }
  },
  "required": [
    "mode"
  ],
  "schemaVersion": 1,
  "title": "TrustRadius Scraper Input",
  "type": "object"
}
