{
  "openapi": "3.0.1",
  "info": {
    "title": "Competitor Churn Sniper: Unhappy G2, Capterra Reviewers",
    "description": "Turn a competitor's recent 1-3 star G2, Capterra and Trustpilot reviews into named prospects with title, company, LinkedIn URL and an opener about their exact complaint.",
    "version": "1.0",
    "x-build-id": "UqOIalQHeazrO28km"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/growth-installations~competitor-churn-sniper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-growth-installations-competitor-churn-sniper",
        "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/growth-installations~competitor-churn-sniper/runs": {
      "post": {
        "operationId": "runs-sync-growth-installations-competitor-churn-sniper",
        "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/growth-installations~competitor-churn-sniper/run-sync": {
      "post": {
        "operationId": "run-sync-growth-installations-competitor-churn-sniper",
        "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": [
          "competitor"
        ],
        "properties": {
          "competitor": {
            "title": "Competitor SaaS name",
            "type": "string",
            "description": "e.g. 'Pipedrive'."
          },
          "trustpilotDomain": {
            "title": "Trustpilot domain",
            "type": "string",
            "description": "Optional, e.g. 'pipedrive.com'. Found automatically if empty."
          },
          "capterraUrl": {
            "title": "Capterra reviews URL",
            "type": "string",
            "description": "Optional. Found automatically if empty."
          },
          "g2Product": {
            "title": "G2 product slug",
            "type": "string",
            "description": "Optional, e.g. 'pipedrive'. Defaults to the name."
          },
          "sources": {
            "title": "Review sources",
            "type": "array",
            "description": "Which review sites to pull from: trustpilot, capterra, g2. Fewer sources make a cheaper, faster run.",
            "default": [
              "trustpilot",
              "capterra",
              "g2"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerSource": {
            "title": "Max reviews per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Newest reviews to pull from each site before filtering to 1-3 stars. 25 per source is about $0.25 of scraping on your account.",
            "default": 25
          },
          "days": {
            "title": "Only reviews from the last N days",
            "minimum": 7,
            "type": "integer",
            "description": "Only keep reviews posted within this many days. 180 (about 6 months) keeps the leads fresh.",
            "default": 180
          },
          "minConfidence": {
            "title": "Minimum match confidence",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Lowest match score (0-1) for a reviewer to count as a matched prospect. Matches below this go to a human-check list and are charged only as an analyzed review.",
            "default": 0.6
          },
          "yourProduct": {
            "title": "Your product name",
            "type": "string",
            "description": "Your product name. Used in every opener and follow-up, e.g. 'switch to Acme CRM'."
          },
          "yourOffer": {
            "title": "Your switch offer",
            "type": "string",
            "description": "e.g. 'free data migration'."
          },
          "includeUnmatched": {
            "title": "Include reviews with no confident match",
            "type": "boolean",
            "description": "Also return unhappy reviews with no confident person match (themed, with an opener), charged $0.02 each. Turn off to get matched prospects only.",
            "default": true
          },
          "brandName": {
            "title": "Report brand line",
            "type": "string",
            "description": "Optional brand line printed on the theme report, e.g. your agency or product name. Leave empty to skip."
          },
          "maxUpstreamSpendUsd": {
            "title": "Max spend on scrapers (USD)",
            "minimum": 0.5,
            "type": "number",
            "description": "Hard spending cap across the review and LinkedIn search sub-runs on your Apify account. Scraping stops at this amount.",
            "default": 1.5
          },
          "reviewsDataset": {
            "title": "Bring your own review items",
            "type": "array",
            "description": "Optional: items from Trustpilot, Capterra or G2 scrapers. Skips the review scrapes."
          },
          "serpDataset": {
            "title": "Bring your own Google SERP items",
            "type": "array",
            "description": "Optional: apify/google-search-scraper items for the LinkedIn match queries."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}