{
  "openapi": "3.0.1",
  "info": {
    "title": "Salesforce AppExchange Intelligence & Pricing Analytics",
    "description": "Analyze Salesforce AppExchange markets, pricing models, ecosystem trends, competitive positioning, and app intelligence. Generate structured datasets, executive reports, pricing analytics, and market research outputs automatically.",
    "version": "1.4",
    "x-build-id": "9ApVvZ2J2K0DArH0U"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adinfosys-labs~salesforce-appexchange-discovery-engine---apps-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adinfosys-labs-salesforce-appexchange-discovery-engine---apps-reviews",
        "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/adinfosys-labs~salesforce-appexchange-discovery-engine---apps-reviews/runs": {
      "post": {
        "operationId": "runs-sync-adinfosys-labs-salesforce-appexchange-discovery-engine---apps-reviews",
        "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/adinfosys-labs~salesforce-appexchange-discovery-engine---apps-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-adinfosys-labs-salesforce-appexchange-discovery-engine---apps-reviews",
        "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",
          "categoryGroup"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "apps",
              "reviews",
              "apps+reviews"
            ],
            "type": "string",
            "description": "Choose what to run.",
            "default": "apps"
          },
          "categoryGroup": {
            "title": "Category Group",
            "enum": [
              "business-needs",
              "industries",
              "products"
            ],
            "type": "string",
            "description": "Top-level AppExchange group.",
            "default": "business-needs"
          },
          "sphere": {
            "title": "Sphere (label)",
            "type": "string",
            "description": "Label stored in output for grouping. If empty, Actor will default it to categoryGroup.",
            "default": ""
          },
          "categoryPreset": {
            "title": "Category preset (label)",
            "type": "array",
            "description": "Preset labels to run. The Actor resolves crawl targets from taxonomy.json (recommended). Example: [\"sales\"] or [\"automotive\"] or [\"b2b-commerce\"].",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "appGroup": {
            "title": "App group(s) to crawl (optional override)",
            "type": "array",
            "description": "Optional override. If provided, the Actor crawls exactly these Explore filter values.\nExamples: business-needs → [\"contract management\"]; industries → [\"agriculture & mining\"]; products → [\"B2B Commerce\"].",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxPages": {
            "title": "Max scroll passes per app group",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many scroll/scan passes to perform when collecting listing links.",
            "default": 2
          },
          "maxApps": {
            "title": "Maximum apps to analyze",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard safety cap for total apps processed during the run.",
            "default": 200
          },
          "maxReviewsPerApp": {
            "title": "Maximum reviews per app",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limit reviews processed per app to control runtime and storage.",
            "default": 100
          },
          "saveReviewsDataset": {
            "title": "Save reviews dataset",
            "type": "boolean",
            "description": "If disabled, only app intelligence outputs are generated.",
            "default": true
          },
          "saveExcelExports": {
            "title": "Save Excel exports",
            "type": "boolean",
            "description": "Generate APPS.xlsx and REVIEWS.xlsx exports.",
            "default": true
          },
          "pricingFilter": {
            "title": "Pricing filter (optional)",
            "enum": [
              "",
              "free",
              "freemium",
              "paid",
              "unknown"
            ],
            "type": "string",
            "description": "Optional. Filter by inferred price bucket. Empty disables filtering.",
            "default": ""
          },
          "minRating": {
            "title": "Minimum rating (optional)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Filter out apps below this rating. 0 disables rating filter.",
            "default": 0
          },
          "headless": {
            "title": "Headless browser",
            "type": "boolean",
            "description": "Run browser headless (recommended true on Apify). For debugging, set false.",
            "default": true
          },
          "proxySettings": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings (recommended for AppExchange reliability).",
            "default": {}
          },
          "analysisOptions": {
            "title": "Market intelligence outputs",
            "type": "object",
            "description": "Control MARKET_INTELLIGENCE.json, EXECUTIVE_SUMMARY.txt and MARKET_REPORT.pdf creation.",
            "properties": {
              "enableCompetitiveAnalysis": {
                "title": "Competitive analysis",
                "type": "boolean",
                "description": "Include competitive analysis section in MARKET_INTELLIGENCE.json.",
                "default": true,
                "editor": "checkbox"
              },
              "enableCustomerAnalysis": {
                "title": "Customer analysis",
                "type": "boolean",
                "description": "Include customer signals analysis section in MARKET_INTELLIGENCE.json.",
                "default": true,
                "editor": "checkbox"
              },
              "enableMarketTrends": {
                "title": "Market trends",
                "type": "boolean",
                "description": "Include market trends section in MARKET_INTELLIGENCE.json.",
                "default": true,
                "editor": "checkbox"
              },
              "enableExecutiveSummary": {
                "title": "Executive summary",
                "type": "boolean",
                "description": "Generate EXECUTIVE_SUMMARY.txt based on the market intelligence output.",
                "default": true,
                "editor": "checkbox"
              },
              "enableSWOT": {
                "title": "SWOT",
                "type": "boolean",
                "description": "Include SWOT-style signals in MARKET_INTELLIGENCE.json.",
                "default": true,
                "editor": "checkbox"
              },
              "outputJsonReport": {
                "title": "Write JSON report",
                "type": "boolean",
                "description": "If enabled, save MARKET_INTELLIGENCE.json to the Key-Value store.",
                "default": true,
                "editor": "checkbox"
              },
              "outputPdfReport": {
                "title": "Write PDF report",
                "type": "boolean",
                "description": "If enabled, save MARKET_REPORT.pdf to the Key-Value store.",
                "default": true,
                "editor": "checkbox"
              },
              "reportKvKeyPrefix": {
                "title": "KV key prefix (optional)",
                "type": "string",
                "description": "Optional prefix for KV output keys (e.g. 'ERP_' → ERP_MARKET_REPORT.pdf).",
                "default": "",
                "editor": "textfield"
              }
            },
            "default": {
              "enableCompetitiveAnalysis": true,
              "enableCustomerAnalysis": true,
              "enableMarketTrends": true,
              "enableExecutiveSummary": true,
              "enableSWOT": true,
              "outputJsonReport": true,
              "outputPdfReport": true,
              "reportKvKeyPrefix": ""
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}