{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify App Store Scraper — Pricing, Churn & Merchant Leads",
    "description": "Zero-proxy 128MB Shopify App Store intelligence, churn reviews & unhappy merchant lead enricher: Turbo-Frame search, FX-normalized pricing tiers, Built for Shopify badge, 14-language churn NLP, veteran merchant tenure, dev reply SLA, weekly watch_diff & HTML dashboard.",
    "version": "0.1",
    "x-build-id": "zzciGqa73SdqNBrPq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maitreya_buddha~shopify-app-store-churn-intel-merchant-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maitreya_buddha-shopify-app-store-churn-intel-merchant-leads",
        "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/maitreya_buddha~shopify-app-store-churn-intel-merchant-leads/runs": {
      "post": {
        "operationId": "runs-sync-maitreya_buddha-shopify-app-store-churn-intel-merchant-leads",
        "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/maitreya_buddha~shopify-app-store-churn-intel-merchant-leads/run-sync": {
      "post": {
        "operationId": "run-sync-maitreya_buddha-shopify-app-store-churn-intel-merchant-leads",
        "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": {
          "mode": {
            "title": "Execution Mode",
            "enum": [
              "app_intelligence",
              "merchant_churn_leads",
              "partner_portfolio"
            ],
            "type": "string",
            "description": "app_intelligence ($0.005/app): full app metadata, FX-normalized pricing tiers, BFS badge, silent churn, dev contacts & watch_diff. merchant_churn_leads ($0.0003/review): 1 row per unhappy merchant review with tenure, country, pain buckets & switcher intent. partner_portfolio ($0.005/app): audit all apps owned by Shopify Partner studios.",
            "default": "app_intelligence"
          },
          "searchQueries": {
            "title": "Shopify App Store Search Keywords",
            "type": "array",
            "description": "Keywords searched directly via Shopify App Store Turbo-Frame search (24 cards/page, zero proxies). Example: ['product reviews', 'email marketing'].",
            "items": {
              "type": "string"
            }
          },
          "appHandlesOrUrls": {
            "title": "Direct Shopify App Handles or URLs (Optional)",
            "type": "array",
            "description": "Direct Shopify app handles or URLs (e.g., 'klaviyo-email-marketing', 'https://apps.shopify.com/judgeme').",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Shopify App Store Category URLs (Optional)",
            "type": "array",
            "description": "Category or leaf subcategory URLs on apps.shopify.com/categories/... (auto-stops on non-paginating parent carousels).",
            "items": {
              "type": "string"
            }
          },
          "partnerUrlsOrSlugs": {
            "title": "Shopify Partner Slugs or URLs (for partner_portfolio mode)",
            "type": "array",
            "description": "Partner slugs or URLs (e.g., 'klaviyo', 'https://apps.shopify.com/partners/judge-me').",
            "items": {
              "type": "string"
            }
          },
          "upstreamItems": {
            "title": "Upstream Pipeline Items (JSON Array, Optional)",
            "type": "array",
            "description": "Structured items from Clay, Make, n8n, MCP, or upstream Apify Actors ({ appHandle, appUrl, partnerSlug, query }). Works natively under Limited Permissions with zero 403 risk.",
            "items": {
              "type": "object"
            }
          },
          "maxApps": {
            "title": "Max Apps to Analyze",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum unique apps to analyze in app_intelligence / partner_portfolio mode (or max source apps in merchant_churn_leads mode).",
            "default": 15
          },
          "sampleReviewsPerApp": {
            "title": "Reviews to Sample per App (app_intelligence)",
            "minimum": 10,
            "maximum": 200,
            "type": "integer",
            "description": "Number of newest reviews fetched per app in app_intelligence mode to calculate silent churn divergence, veteran churn, and developer reply SLA (10 reviews/page).",
            "default": 30
          },
          "maxReviewsPerApp": {
            "title": "Max Reviews per App (merchant_churn_leads)",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum reviews to stream per app in merchant_churn_leads mode.",
            "default": 100
          },
          "starFilter": {
            "title": "Review Star Filter",
            "enum": [
              "all",
              "critical_1_2",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Filter reviews fetched from Shopify App Store (use 'critical_1_2' in merchant_churn_leads mode to pull only 1-2 star unhappy merchants).",
            "default": "all"
          },
          "includeDevWebsiteEnrich": {
            "title": "Verify Developer Website DNS (MX/SPF/DMARC & MarTech TXT)",
            "type": "boolean",
            "description": "Runs zero-cost out-of-band DNS MX/SPF/DMARC & TXT MarTech checks on the app developer's official domain (plus SSRF-guarded 1-hop fallback if support email is missing).",
            "default": true
          },
          "generateDashboardHtml": {
            "title": "Generate Interactive OUTPUT_DASHBOARD.html",
            "type": "boolean",
            "description": "Saves a self-contained, XSS-proof interactive HTML executive dashboard to Key-Value Store (OUTPUT_DASHBOARD.html).",
            "default": true
          },
          "watchDiff": {
            "title": "Enable Weekly Watch-Diff Mode ($0 Unchanged Skip)",
            "type": "boolean",
            "description": "Compares each app against its prior Key-Value Store snapshot to emit 8 weekly triggers (price hikes, free-plan removals, BFS badge loss, veteran churn, reply SLA decay) and skip unchanged apps at $0.",
            "default": false
          },
          "dedupStoreName": {
            "title": "Watch-Diff Key-Value Store Name (Optional)",
            "type": "string",
            "description": "Named Apify Key-Value Store for weekly watch_diff snapshots (defaults to 'shopify-app-churn-watch' when watchDiff is true; auto-suffixed '-lp' under Limited Permissions).",
            "default": ""
          },
          "onlyWithEmail": {
            "title": "Filter: Only Emit Apps with Verified Dev Email ($0 skip)",
            "type": "boolean",
            "description": "Opt-in zero-cost filter (default OFF). Skips apps with no verified developer support email before billing.",
            "default": false
          },
          "onlyBuiltForShopify": {
            "title": "Filter: Only Built for Shopify Apps ($0 skip)",
            "type": "boolean",
            "description": "Opt-in zero-cost filter (default OFF).",
            "default": false
          },
          "onlyVeteranChurn": {
            "title": "Filter: Only Veteran Merchant Churn >= 180d ($0 skip)",
            "type": "boolean",
            "description": "Opt-in zero-cost filter in merchant_churn_leads mode (default OFF). Keeps only unhappy merchants who used the app >= 6 months.",
            "default": false
          },
          "switchIntentOnly": {
            "title": "Filter: Only Switcher-Intent Reviews ($0 skip)",
            "type": "boolean",
            "description": "Opt-in zero-cost filter in merchant_churn_leads mode (default OFF).",
            "default": false
          },
          "minChurnRiskScore": {
            "title": "Filter: Minimum Churn Risk Score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Opt-in zero-cost minimum churnRiskScore filter (default 0 = disabled).",
            "default": 0
          },
          "crmPreset": {
            "title": "CRM Export Preset",
            "enum": [
              "default",
              "instantly",
              "smartlead",
              "hubspot",
              "lemlist"
            ],
            "type": "string",
            "description": "Format dataset rows for direct CSV/webhook import into Instantly, Smartlead, HubSpot, or Lemlist (with OWASP CSV formula protection).",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Alert Webhook URL (Slack / Make / n8n / Clay, Optional)",
            "type": "string",
            "description": "Optional SSRF-validated HTTPS webhook URL that receives high-priority churn or weekly watch_diff alerts.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}