{
  "openapi": "3.0.1",
  "info": {
    "title": "TrustRadius Product Ratings & Feature Score Extractor",
    "description": "Extract TrustRadius product pages by direct URL, search term, or category: pricing, aggregate ratings, feature scorecards, award badges, and related products for B2B software comparison.",
    "version": "1.0",
    "x-build-id": "MOtSZIbzqqhW2xiv8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~trustradius-product-ratings-and-feature-score/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-trustradius-product-ratings-and-feature-score",
        "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/dataspryva~trustradius-product-ratings-and-feature-score/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-trustradius-product-ratings-and-feature-score",
        "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/dataspryva~trustradius-product-ratings-and-feature-score/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-trustradius-product-ratings-and-feature-score",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "product",
              "reviews",
              "discover",
              "compare"
            ],
            "type": "string",
            "description": "What to collect: product profiles, individual reviews, product discovery cards or a side-by-side comparison.",
            "default": "product"
          },
          "productUrls": {
            "title": "Product URLs or slugs",
            "type": "array",
            "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.",
            "default": [
              "https://www.trustradius.com/products/asana"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "(mode=discover) Keywords to search in the TrustRadius software directory.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs or slugs",
            "type": "array",
            "description": "(mode=discover) TrustRadius category URLs or slugs, such as https://www.trustradius.com/categories/crm or crm.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted products, reviews, discovery cards or comparisons.",
            "default": 25
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "(mode=reviews) Reviews to collect per product. Use 0 for the entire archive.",
            "default": 100
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "oldest",
              "highestRated",
              "lowestRated"
            ],
            "type": "string",
            "description": "(mode=reviews) Order in which reviews are collected.",
            "default": "newest"
          },
          "starRatings": {
            "title": "Star ratings",
            "type": "array",
            "description": "(mode=reviews) Only reviews with these ratings (1-5), for example [\"1\",\"2\"]. Leave empty for all ratings.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companySizes": {
            "title": "Company sizes",
            "type": "array",
            "description": "(mode=reviews) Reviewer company sizes: small, medium or large. Leave empty for all sizes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Reviewer countries",
            "type": "array",
            "description": "(mode=reviews) Reviewer country codes in ISO3 form, for example USA, CAN or GBR.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "reviewerRoles": {
            "title": "Reviewer roles",
            "type": "array",
            "description": "(mode=reviews) Roles reviewers played: user, manager, support, decisionMaker, consultant or implementer.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "jobTypes": {
            "title": "Reviewer job types",
            "type": "array",
            "description": "(mode=reviews) Job types such as Engineer, Manager, Director or Analyst.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Reviewer departments",
            "type": "array",
            "description": "(mode=reviews) Departments such as Marketing, Engineering or Information Technology.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minYearsExperience": {
            "title": "Minimum years of experience",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "(mode=reviews) Minimum reviewer experience in years. Use 0 for no minimum.",
            "default": 0
          },
          "lastUpdated": {
            "title": "Review recency",
            "enum": [
              "any",
              "month",
              "3months",
              "6months",
              "year"
            ],
            "type": "string",
            "description": "(mode=reviews) Only include reviews updated within this window.",
            "default": "any"
          },
          "publishedAfter": {
            "title": "Published after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "(mode=reviews) Keep reviews published on or after this date (YYYY-MM-DD). Leave empty for no cutoff.",
            "default": ""
          },
          "includeReviewDetails": {
            "title": "Include full review details",
            "type": "boolean",
            "description": "(mode=reviews) Open each review to collect ROI, alternatives and the full Q&A. Adds one request per review.",
            "default": false
          },
          "includeProductDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "(mode=product) Also collect feature scorecards, pricing plans, product details, FAQs and alternatives.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}