{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Workspace Marketplace Scraper: Apps, OAuth & Reviews",
    "description": "Extract B2B apps, exact install counts, ratings, pricing, OAuth scopes, developer contacts, and user reviews from Google Workspace Marketplace in clean JSON & Markdown. MCP & n8n ready.",
    "version": "0.1",
    "x-build-id": "mb9BxeKxHVjh1LPzp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jvccvctus~google-workspace-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jvccvctus-google-workspace-marketplace-scraper",
        "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/jvccvctus~google-workspace-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jvccvctus-google-workspace-marketplace-scraper",
        "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/jvccvctus~google-workspace-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jvccvctus-google-workspace-marketplace-scraper",
        "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": {
          "categories": {
            "title": "Marketplace Categories",
            "type": "array",
            "description": "Category slugs to crawl from Google Workspace Marketplace. Leave empty when using searchQueries or startUrls. If all three inputs are empty, defaults to ['business-tools'].",
            "items": {
              "type": "string",
              "enum": [
                "business-tools",
                "featured-partner-apps",
                "recommended",
                "connectors",
                "work-from-everywhere",
                "business-essentials",
                "apps-to-discover",
                "google-apps",
                "popular-apps",
                "top-rated",
                "productivity",
                "education",
                "communication",
                "utilities",
                "enterprise-apps"
              ]
            }
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Keywords to search on Google Workspace Marketplace (e.g. 'crm', 'mail merge', 'invoice'). Each query returns up to 100 matching apps.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Direct Start URLs",
            "type": "array",
            "description": "Direct Google Workspace Marketplace URLs (category, search, or /marketplace/app/<slug>/<id>). Each item must be a Request object with a 'url' field, e.g. {\"url\": \"https://workspace.google.com/marketplace/app/bettercloud/800521135851\"}.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxApps": {
            "title": "Maximum Apps to Extract",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on the total number of unique apps saved and charged per run.",
            "default": 50
          },
          "includeOAuthScopes": {
            "title": "Include OAuth Scopes & Permissions",
            "type": "boolean",
            "description": "Fetch each app's detail page to extract full OAuth permission scopes, human-readable descriptions, and official Google risk tiers (restricted / sensitive / non-sensitive).",
            "default": true
          },
          "includeReviews": {
            "title": "Include User Reviews",
            "type": "boolean",
            "description": "Fetch each app's detail page to extract recent SSR user reviews (ratings, text, date, helpful count — strictly excluding personal reviewer PII).",
            "default": true
          },
          "maxReviewsPerApp": {
            "title": "Max Reviews per App",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of SSR reviews to attach per app when includeReviews is enabled (up to 10 available directly in SSR).",
            "default": 5
          },
          "worksWithFilter": {
            "title": "Filter by Google Workspace Product",
            "type": "array",
            "description": "Only keep apps compatible with at least one of the specified Workspace products (e.g. 'Gmail', 'Google Sheets', 'Google Drive', 'Google Docs', 'Google Calendar', 'Google Meet').",
            "items": {
              "type": "string",
              "enum": [
                "Gmail",
                "Google Drive",
                "Google Docs",
                "Google Sheets",
                "Google Slides",
                "Google Forms",
                "Google Calendar",
                "Google Chat",
                "Google Meet",
                "Google Classroom",
                "Google Workspace"
              ]
            }
          },
          "pricingFilter": {
            "title": "Filter by Pricing Model",
            "type": "array",
            "description": "Only keep apps matching one of these pricing models: 'Free', 'Free trial', 'Freemium', 'Paid', or 'Not available'.",
            "items": {
              "type": "string",
              "enum": [
                "Free",
                "Free trial",
                "Freemium",
                "Paid",
                "Not available"
              ]
            }
          },
          "minRating": {
            "title": "Minimum Star Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only keep apps with an average rating greater than or equal to this value (0 to 5).",
            "default": 0
          },
          "minInstalls": {
            "title": "Minimum Exact Installs",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep apps with at least this many exact installs (e.g. 10000 for established B2B tools).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy configuration. Disabled by default because Google Workspace Marketplace serves clean SSR HTML directly over HTTP (zero proxy cost).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}