{
  "openapi": "3.0.1",
  "info": {
    "title": "GBP Competitor Teardown + Maps Spam Hunter",
    "description": "Map Pack teardown: categories, review velocity and revenue estimate, photos, posts, attributes, city pages, citations, Ads Transparency, gap report vs the top 3, and spam evidence packs.",
    "version": "1.0",
    "x-build-id": "Z3x19aGfPF36melmE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/growth-installations~gbp-teardown-spam-hunter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-growth-installations-gbp-teardown-spam-hunter",
        "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/growth-installations~gbp-teardown-spam-hunter/runs": {
      "post": {
        "operationId": "runs-sync-growth-installations-gbp-teardown-spam-hunter",
        "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/growth-installations~gbp-teardown-spam-hunter/run-sync": {
      "post": {
        "operationId": "run-sync-growth-installations-gbp-teardown-spam-hunter",
        "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": [
          "keyword",
          "location"
        ],
        "properties": {
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "What customers search, e.g. 'plumber'."
          },
          "location": {
            "title": "City",
            "type": "string",
            "description": "City and state (or city and country) of the Map Pack to analyze, e.g. 'Richmond, VA' or 'Austin, TX'."
          },
          "target": {
            "title": "Your client (optional)",
            "type": "string",
            "description": "Business name, website, placeId or Google Maps URL. Leave empty for prospect mode (a pitch line for every non-leader)."
          },
          "maxPlaces": {
            "title": "Listings to analyze",
            "minimum": 3,
            "maximum": 20,
            "type": "integer",
            "description": "How many Map Pack listings to pull and compare (3-20). More listings give a fuller competitor picture and cost a little more in Maps scraping.",
            "default": 10
          },
          "maxReviews": {
            "title": "Recent reviews per listing",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Newest reviews to read per listing. Used for 30/90-day review velocity, owner response rate, the revenue estimate and review-burst spam checks. 0 skips reviews.",
            "default": 25
          },
          "avgTicket": {
            "title": "Average job value (USD)",
            "type": "number",
            "description": "Optional. Defaults by niche (plumber $400, roofer $9,000, HVAC $450...)."
          },
          "checkSitemaps": {
            "title": "Count city pages from sitemaps",
            "type": "boolean",
            "description": "Read each competitor website's sitemap and count city and service-area pages. Turn off for a faster run if you don't need the city-page gap.",
            "default": true
          },
          "brandName": {
            "title": "Your agency name (white-label)",
            "type": "string",
            "description": "Shown in the header and footer of the HTML and Markdown reports so you can hand them to clients as your own. Leave empty for an unbranded report.",
            "default": ""
          },
          "includeSpamPacks": {
            "title": "Build spam evidence packs ($5 each)",
            "type": "boolean",
            "description": "When on, every listing flagged as likely spam gets an evidence pack with ready-to-file 'Suggest an edit' and Redressal complaint text. Charged $5 per pack, up to 'Max spam packs'.",
            "default": false
          },
          "maxSpamPacks": {
            "title": "Max spam packs",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit on spam evidence packs per run, so the spam-pack charge never exceeds this number x $5. Only used when spam packs are on.",
            "default": 3
          },
          "placesDataset": {
            "title": "Bring your own Maps data (JSON)",
            "type": "array",
            "description": "Optional compass/crawler-google-places items. Skips the scrape.",
            "default": []
          },
          "maxUpstreamSpendUsd": {
            "title": "Cap on Maps scraper spend (USD)",
            "minimum": 0.5,
            "type": "number",
            "description": "Hard spending cap passed to the Google Maps scraper sub-run on your Apify account. The run stops scraping at this amount. About $0.10 covers 10 listings with 25 reviews. Minimum $0.50 (the lowest cap Apify accepts for the scraper sub-run).",
            "default": 0.6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}