{
  "openapi": "3.0.1",
  "info": {
    "title": "😡 Trustpilot Negative Review & Competitor Churn Lead Generator",
    "description": "Monitor competitor Trustpilot profiles for 1-star and 2-star reviews. Automatically categorizes complaints (price hikes, support ghosting, outages, frozen accounts), flags unresponded reviews, and generates competitive conquesting sales pitches.",
    "version": "0.0",
    "x-build-id": "k9affTfO5YzXyYOMW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_studio~trustpilot-churn-lead-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_studio-trustpilot-churn-lead-generator",
        "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/automation_studio~trustpilot-churn-lead-generator/runs": {
      "post": {
        "operationId": "runs-sync-automation_studio-trustpilot-churn-lead-generator",
        "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/automation_studio~trustpilot-churn-lead-generator/run-sync": {
      "post": {
        "operationId": "run-sync-automation_studio-trustpilot-churn-lead-generator",
        "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": [
          "companyDomains"
        ],
        "properties": {
          "companyDomains": {
            "title": "🏢 Competitor Domains / Trustpilot URLs",
            "type": "array",
            "description": "Enter the base domains (e.g. 'godaddy.com', 'bluehost.com') or full Trustpilot profile URLs (e.g. 'https://www.trustpilot.com/review/godaddy.com') of competitors to monitor.",
            "default": [
              "godaddy.com"
            ],
            "items": {
              "type": "string"
            }
          },
          "starRatings": {
            "title": "⭐ Star Ratings to Monitor",
            "type": "array",
            "description": "Select review ratings to extract. For customer defection and sales conquesting, 1-star and 2-star reviews represent customers actively seeking alternatives.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3"
              ],
              "enumTitles": [
                "1 Star (Severe Defection Risk - Ready to Switch)",
                "2 Stars (Disappointed Customers - Vulnerable to Conquesting)",
                "3 Stars (Neutral / Mixed Feedback)"
              ]
            },
            "default": [
              "1",
              "2"
            ]
          },
          "maxReviewsPerCompany": {
            "title": "📊 Max Reviews Per Competitor",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of negative reviews to extract per competitor profile.",
            "default": 20
          },
          "onlyUnansweredReviews": {
            "title": "🚫 Only Ignored Complaints (Company Never Replied)",
            "type": "boolean",
            "description": "When enabled, only extracts reviews where the competitor company has NOT responded. Dissatisfied customers who are ignored by support have a 3x-5x higher conquesting conversion rate.",
            "default": false
          },
          "churnCategoriesFilter": {
            "title": "🎯 Churn Driver Filter",
            "type": "array",
            "description": "Filter leads by specific complaint drivers. Select 'ALL' to capture all complaint types.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "BILLING_AND_PRICE_HIKES",
                "SUPPORT_AND_REFUND_REFUSAL",
                "TECHNICAL_OUTAGE_AND_BUGS",
                "ACCOUNT_SUSPENSION_AND_LOCKOUT",
                "FALSE_ADVERTISING_AND_BAIT_SWITCH"
              ],
              "enumTitles": [
                "All Churn Drivers",
                "💰 Billing, Price Hikes & Unexpected Charges",
                "🎧 Support Ghosting & Refused Refunds",
                "⚡ Technical Outages, Server Downtime & Bugs",
                "🔒 Account Suspensions, Lockouts & Frozen Funds",
                "⚠️ Misleading Marketing & Bait-and-Switch"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "includeSummaryInDataset": {
            "title": "📋 Include Summary Card in Dataset (Item #1)",
            "type": "boolean",
            "description": "By default (false), dataset items consist solely of clean tabular customer review leads. Turn ON to prepend an executive vulnerability summary card as dataset item #1.",
            "default": false
          },
          "webhookUrl": {
            "title": "🔔 Webhook Alert URL (Discord / Slack)",
            "type": "string",
            "description": "Optional: Receive instant notifications with competitor vulnerability scores, customer complaint quotes, and conquesting sales pitches."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}