{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Business Profile Audit & Local Rival Benchmark",
    "description": "Audit a Google Business Profile against the live local results for a keyword. Scores profile, media, review and visibility gaps, measures 30/90-day review velocity and owner replies, and returns peer benchmarks and prioritised fixes. Cookieless, no browser, no API key.",
    "version": "1.0",
    "x-build-id": "BbUCmxykx0aSGZhSU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~google-business-profile-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-google-business-profile-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/crawlyth-forge~google-business-profile-audit/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-google-business-profile-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/crawlyth-forge~google-business-profile-audit/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-google-business-profile-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Input mode",
            "enum": [
              "business",
              "place"
            ],
            "type": "string",
            "description": "Find the business by name + city, or audit exact Google Maps place links/IDs.",
            "default": "business"
          },
          "businessName": {
            "title": "Business name",
            "type": "string",
            "description": "Exact business name to find (mode=business). Example: Joe's Pizza.",
            "default": "Joe's Pizza"
          },
          "city": {
            "title": "City or location",
            "type": "string",
            "description": "City, neighbourhood or address used to find the business (mode=business).",
            "default": "New York"
          },
          "placeUrls": {
            "title": "Google Maps place links or IDs",
            "type": "array",
            "description": "Maps place URLs, Place IDs (ChIJ...), feature IDs (0x...:0x...), CIDs, or maps.app.goo.gl share links (mode=place). Each is verified against Google's place header before it is audited.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "primaryKeyword": {
            "title": "Primary local keyword",
            "type": "string",
            "description": "The search a customer would use near the business (e.g. pizza, emergency plumber, dentist). Empty uses the primary category.",
            "default": "pizza"
          },
          "competitorCount": {
            "title": "Competitors to benchmark",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Top N live Google Maps results for the keyword near the business, excluding the business itself and other branches of the same brand. 0 disables competitor discovery.",
            "default": 5
          },
          "includeCompetitors": {
            "title": "Discover competitors",
            "type": "boolean",
            "description": "Run the keyword search and benchmark against the live local results.",
            "default": true
          },
          "includeCompetitorRecords": {
            "title": "Emit one row per competitor",
            "type": "boolean",
            "description": "When on, each benchmarked competitor is a separate dataset row with its own checklist and score. Off keeps only the audit row with the benchmark table.",
            "default": true
          },
          "includeClosedCompetitors": {
            "title": "Include permanently closed competitors",
            "type": "boolean",
            "description": "Keep places Google marks permanently closed in the benchmark.",
            "default": false
          },
          "maxReviewsPerBusiness": {
            "title": "Reviews to read per business",
            "minimum": 20,
            "maximum": 600,
            "type": "integer",
            "description": "Newest-first review sample per business. The walk stops at this cap or once the 90-day window is covered, whichever comes first. More reviews improve velocity and reply accuracy.",
            "default": 180
          },
          "includePosts": {
            "title": "Owner posts",
            "type": "boolean",
            "description": "Read the visible owner updates, offers and events and score the latest post date.",
            "default": true
          },
          "maxPostsPerBusiness": {
            "title": "Recent posts to output",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many recent owner posts to include per business in the row.",
            "default": 3
          },
          "includeMediaBreakdown": {
            "title": "Owner/customer photo + video sample",
            "type": "boolean",
            "description": "Read a small public gallery sample to split owner vs customer photos and detect video. Adds one request per sampled item.",
            "default": true
          },
          "photoSampleSize": {
            "title": "Gallery items in the media sample",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Public gallery items read per business for the owner/customer split and video presence.",
            "default": 10
          },
          "includePhotoOwnerSplit": {
            "title": "Classify photo owner",
            "type": "boolean",
            "description": "Fetch each sampled item's contributor metadata and compare it with the profile's owner identity.",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "af",
              "az",
              "id",
              "ms",
              "bs",
              "ca",
              "cs",
              "da",
              "de",
              "et",
              "es",
              "es-419",
              "eu",
              "fil",
              "fr",
              "gl",
              "hr",
              "zu",
              "is",
              "it",
              "sw",
              "lv",
              "lt",
              "hu",
              "nl",
              "no",
              "uz",
              "pl",
              "pt-BR",
              "pt-PT",
              "ro",
              "sq",
              "sk",
              "sl",
              "fi",
              "sv",
              "vi",
              "tr",
              "el",
              "bg",
              "ky",
              "kk",
              "mk",
              "mn",
              "ru",
              "sr",
              "uk",
              "ka",
              "hy",
              "iw",
              "ur",
              "ar",
              "fa",
              "am",
              "ne",
              "hi",
              "mr",
              "bn",
              "pa",
              "gu",
              "ta",
              "te",
              "kn",
              "ml",
              "si",
              "th",
              "lo",
              "my",
              "km",
              "ko",
              "ja",
              "zh-CN",
              "zh-TW"
            ],
            "type": "string",
            "description": "Google Maps interface language for labels, categories and hours.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "gb",
              "ca",
              "au",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "br",
              "in",
              "jp",
              "mx"
            ],
            "type": "string",
            "description": "Country context sent to Google Maps (gl). Use the business's own country.",
            "default": "us"
          },
          "maxItems": {
            "title": "Max dataset items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted rows (audit rows + competitor rows + notes).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}