{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Rank Tracker & Client Report (Geo-Grid)",
    "description": "Geo-grid Google Maps rank tracker with a client-ready report: where a business ranks for a customer standing at each point around it, who outranks it, and what changed since the last scan. English or Indonesian, with a WhatsApp summary. Tested on 5×5 grids in Bandung, Indonesia, and Austin, Texas.",
    "version": "0.1",
    "x-build-id": "L5k1ia5BmcJCAiV9d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kulqiz~google-maps-rank-tracker-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kulqiz-google-maps-rank-tracker-report",
        "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/kulqiz~google-maps-rank-tracker-report/runs": {
      "post": {
        "operationId": "runs-sync-kulqiz-google-maps-rank-tracker-report",
        "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/kulqiz~google-maps-rank-tracker-report/run-sync": {
      "post": {
        "operationId": "run-sync-kulqiz-google-maps-rank-tracker-report",
        "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": [
          "keywords"
        ],
        "properties": {
          "business": {
            "title": "Business",
            "type": "string",
            "description": "The business name as Google Maps shows it, or its Google Maps link (the Share button; a maps.app.goo.gl link works too). A link is the surest match when several branches share a name. Leave empty to map the competition for the keyword in the city instead."
          },
          "location": {
            "title": "City or area",
            "type": "string",
            "description": "Where the business is, for example \"Bandung\" or \"Austin, TX\". Used to find the right listing. Required when Business is empty."
          },
          "keywords": {
            "title": "Keywords",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "What customers type into Google Maps, one per line, up to 10. Each keyword is searched from every grid point, so 2 keywords on a 5 x 5 grid is 50 searches.",
            "items": {
              "type": "string"
            }
          },
          "gridSize": {
            "title": "Grid size",
            "enum": [
              "3",
              "5",
              "7",
              "9"
            ],
            "type": "string",
            "description": "How many points are searched around the business. More points show more detail and cost more.",
            "default": "5"
          },
          "radiusKm": {
            "title": "Radius (km)",
            "type": "string",
            "description": "Distance from the business to the edge of the grid, in kilometres. 2 covers a city neighbourhood. Use 5 to 10 for a whole town or a service-area business.",
            "default": "2"
          },
          "reportLanguage": {
            "title": "Report language",
            "enum": [
              "auto",
              "id",
              "en"
            ],
            "type": "string",
            "description": "Language of the report and the WhatsApp summary. Automatic writes Indonesian for businesses in Indonesia and English everywhere else.",
            "default": "auto"
          },
          "compareWithPrevious": {
            "title": "Compare with the previous scan",
            "type": "boolean",
            "description": "Run again with the same business, keyword and grid and the report shows what moved since last time. History is kept in a key-value store named google-maps-rank-history in your account. The first scan is the baseline.",
            "default": true
          },
          "agencyName": {
            "title": "Your name or agency (optional)",
            "type": "string",
            "description": "Shown in the report header and at the end of the WhatsApp summary as \"Prepared by\"."
          },
          "searchLanguage": {
            "title": "Search language (optional)",
            "type": "string",
            "description": "Leave empty. Google Maps is searched in the language of the business's country (Indonesian for Indonesia), because that is what local customers see, and the language changes the ranking. The report language above does not affect the search. Set a code such as en or id only to measure another audience."
          },
          "zoom": {
            "title": "Map zoom (optional)",
            "minimum": 10,
            "maximum": 17,
            "type": "integer",
            "description": "Leave empty. The Actor picks the zoom from the distance between points so that neighbouring points see different parts of the map. Set 13 only if you need to match a tool that always searches at zoom 13."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave this on Residential. Google ranks Maps results by the country the request comes from, and with Residential the Actor sets the proxy country to the business's country for you. The datacenter group searches from the United States: for a business anywhere else the ranks come out wrong and the report opens with a warning.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}