{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Review Analyzer: Service Gaps",
    "description": "Analyze exported Google Maps review datasets or inline records for service-gap themes, recurring complaints and operational review evidence; this actor does not directly scrape Google Maps. Includes structured JSON and Markdown.",
    "version": "1.1",
    "x-build-id": "kUSo3a0QjicAzzQZc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/technicaldost~google-maps-service-gap-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-technicaldost-google-maps-service-gap-audit",
        "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/technicaldost~google-maps-service-gap-audit/runs": {
      "post": {
        "operationId": "runs-sync-technicaldost-google-maps-service-gap-audit",
        "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/technicaldost~google-maps-service-gap-audit/run-sync": {
      "post": {
        "operationId": "run-sync-technicaldost-google-maps-service-gap-audit",
        "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": {
          "demoMode": {
            "title": "Preview with synthetic data when inputs are empty",
            "type": "boolean",
            "description": "With records, datasetIds and appIds empty, use labeled synthetic records with no report-event fee. Any supplied source overrides this preview and uses the normal report price.",
            "default": true
          },
          "records": {
            "title": "Inline comments or reviews",
            "type": "array",
            "description": "Import Google Maps reviews with text, sourceUrl, brand and location. Include a consistent brand and location on each record to keep locations separate; unlabeled records are grouped under unspecified business or location. This actor does not scrape Google Maps. Supported optional fields include id, date, rating and likes.",
            "items": {
              "type": "object"
            }
          },
          "datasetIds": {
            "title": "Existing Apify datasets",
            "maxItems": 10,
            "type": "array",
            "description": "Select your existing source dataset from the picker. It is read with READ permission; its collector is not rerun. Location audits need brand and location labels on records."
          },
          "sourceType": {
            "title": "Input source",
            "enum": [
              "dataset",
              "app-store"
            ],
            "type": "string",
            "description": "Use imported datasets or inline records for this workflow. Native Apple review feeds are an optional shared input adapter; they do not collect Google Maps reviews.",
            "default": "dataset"
          },
          "appIds": {
            "title": "Apple App Store IDs",
            "maxItems": 10,
            "type": "array",
            "description": "Optional Apple feed adapter only; not needed for this workflow’s imported data. Numeric Apple App Store app IDs, as strings. Uses public customer-review feeds; feed availability and historical coverage vary by app and storefront.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Apple storefront country",
            "pattern": "^[a-zA-Z]{2}$",
            "type": "string",
            "description": "Optional Apple feed adapter only; not needed for this workflow’s imported data. Two-letter Apple storefront country code. Only used for app-store collection; analysis rules are optimized for English text.",
            "default": "us"
          },
          "maxPages": {
            "title": "Maximum Apple feed pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional Apple feed adapter only; not needed for this workflow’s imported data. Maximum review-feed pages requested per app; the source can return fewer pages. The overall record cap still applies.",
            "default": 2
          },
          "maxRecords": {
            "title": "Maximum source records examined",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum raw source records read/examined across this run, before deduplication and filtering. Launch limit is 1,000. This is not a guarantee of 1,000 unique reviews or insights.",
            "default": 1000
          },
          "maxInsights": {
            "title": "Maximum insight rows inside the report",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Upper limit on ranked findings inside the single report. Results can be fewer when the supplied evidence does not support additional findings.",
            "default": 20
          },
          "brand": {
            "title": "Brand context",
            "type": "string",
            "description": "Optional label for the business/product under study. For competitor comparison, provide a brand on each record to preserve distinct groups; service records can also provide location."
          },
          "previousDatasetId": {
            "title": "Previous review dataset (App Roadmap comparison only)",
            "type": "string",
            "description": "App Roadmap comparison only. This workflow does not produce prior-sample comparisons; leave this field blank. Kept for input compatibility."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}