{
  "openapi": "3.0.1",
  "info": {
    "title": "App Store, Google Play, Shopify & WP Review Scraper (AI)",
    "description": "Turn 1-3 star reviews from Apple App Store, Google Play, Shopify App Store, and WordPress.org into battlecard & Clay-ready pain intelligence: auto-categorized complaints, competitor switch mentions, 0-100 painScore, delta mode, and aggregated PAIN_SUMMARY at zero proxy cost.",
    "version": "1.0",
    "x-build-id": "4LPCtFr5DwdRCL2CA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~saas-app-review-pain-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-saas-app-review-pain-intelligence",
        "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/vesper_studio~saas-app-review-pain-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-saas-app-review-pain-intelligence",
        "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/vesper_studio~saas-app-review-pain-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-saas-app-review-pain-intelligence",
        "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",
        "properties": {
          "targets": {
            "title": "App URLs or Prefixed IDs",
            "type": "array",
            "description": "List of app URLs or prefixed IDs across Apple App Store (https://apps.apple.com/us/app/slack/id618783545 or apple:618783545), Google Play (https://play.google.com/store/apps/details?id=com.Slack or google_play:com.Slack), Shopify App Store (https://apps.shopify.com/klaviyo-email-marketing or shopify:klaviyo-email-marketing), and WordPress.org Plugins (https://wordpress.org/plugins/elementor/ or wordpress:elementor).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "structuredTargets": {
            "title": "Structured App Targets (JSON)",
            "type": "array",
            "description": "Optional array of structured target objects: { \"platform\": \"apple_app_store\" | \"google_play\" | \"shopify_app_store\" | \"wordpress_org\", \"appIdOrSlug\": \"elementor\", \"country\": \"us\", \"language\": \"en\", \"appName\": \"Elementor\" }.",
            "default": []
          },
          "minRating": {
            "title": "Minimum Star Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep reviews with rating >= minRating (1-5). Use 1-3 to focus strictly on pain/churn intelligence.",
            "default": 1
          },
          "maxRating": {
            "title": "Maximum Star Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep reviews with rating <= maxRating (1-5). Defaults to 3 to capture critical/negative reviews for battlecards and product discovery.",
            "default": 3
          },
          "maxReviewsPerApp": {
            "title": "Max Reviews Per App",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of matching reviews to collect per target app.",
            "default": 50
          },
          "sinceDate": {
            "title": "Since Date (ISO YYYY-MM-DD)",
            "type": "string",
            "description": "Optional cutoff date (e.g. '2026-01-01'). Reviews older than this date are skipped and pagination stops early on chronological feeds.",
            "default": ""
          },
          "onlyWithPainSignals": {
            "title": "Only Emit Reviews With Pain Signals",
            "type": "boolean",
            "description": "When enabled, only reviews with at least one matched pain category or competitor mention are pushed to the dataset.",
            "default": false
          },
          "onlyNew": {
            "title": "Only New Reviews (Delta Mode)",
            "type": "boolean",
            "description": "Persist seen review IDs in a named Apify Key-Value Store across runs and skip reviews already processed.",
            "default": false
          },
          "stateStoreName": {
            "title": "Delta Named Key-Value Store",
            "type": "string",
            "description": "Named Key-Value Store used to persist seen review IDs across runs when onlyNew is enabled.",
            "default": "saas-review-pain-state"
          },
          "stateKey": {
            "title": "Delta State Key-Value Store Key",
            "type": "string",
            "description": "Record key inside the named Key-Value Store used when onlyNew is enabled.",
            "default": "SEEN_REVIEW_IDS"
          },
          "competitors": {
            "title": "Competitor Names to Track",
            "type": "array",
            "description": "Explicit competitor brand/product names to detect alongside automatic switching-pattern extraction ('switched to X', 'better than Y', 'alternative to Z').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "customTaxonomy": {
            "title": "Custom Pain Taxonomy Overrides (JSON)",
            "type": "object",
            "description": "Optional taxonomy map extending or overriding built-in categories (pricing_complaint, bug_crash, support_issue, missing_feature, ux_slow, churn_or_switching). Format: { \"category_key\": { \"keywords\": [\"...\"], \"patterns\": [\"...\"], \"weight\": 15 } }.",
            "default": {}
          },
          "country": {
            "title": "Default Store Country (ISO-2)",
            "type": "string",
            "description": "Default 2-letter country code for Apple App Store and Google Play (e.g. 'us', 'gb', 'fr', 'de').",
            "default": "us"
          },
          "language": {
            "title": "Default Store Language (ISO-2)",
            "type": "string",
            "description": "Default 2-letter language code for Google Play reviews (e.g. 'en', 'fr', 'de').",
            "default": "en"
          },
          "maxConcurrency": {
            "title": "Max Concurrent App Fetches",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of target apps processed concurrently.",
            "default": 4
          },
          "timeoutMs": {
            "title": "HTTP Request Timeout (ms)",
            "minimum": 3000,
            "maximum": 60000,
            "type": "integer",
            "description": "Per-request HTTP timeout in milliseconds.",
            "default": 15000
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "Leave disabled for zero proxy cost. All 4 platforms work via direct HTTP feeds/APIs/HTML by default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}