{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Rank Tracker — Geo-Grid Local SEO",
    "description": "Google Maps rank tracker for local SEO: check a business's rank at every point of a 3x3 to 13x13 geo-grid, with the top 3 competitors per point, average rank, share of local voice and a rank grid. A pay-per-point local rank tracker and Local Falcon alternative: $3 per 1,000 grid points.",
    "version": "0.0",
    "x-build-id": "WV1iEKEMRaY2k87zD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kaz_kakyo~geo-grid-rank-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kaz_kakyo-geo-grid-rank-tracker",
        "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/kaz_kakyo~geo-grid-rank-tracker/runs": {
      "post": {
        "operationId": "runs-sync-kaz_kakyo-geo-grid-rank-tracker",
        "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/kaz_kakyo~geo-grid-rank-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-kaz_kakyo-geo-grid-rank-tracker",
        "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",
          "centerLat",
          "centerLng"
        ],
        "properties": {
          "businessName": {
            "title": "Business name",
            "type": "string",
            "description": "The business to track, exactly as Google Maps shows it (case and punctuation are ignored). Optional when you give a place ID."
          },
          "placeId": {
            "title": "Google place ID",
            "type": "string",
            "description": "Optional but recommended: the business's Google place ID (starts with ChIJ). It tells apart branches that share a name. Every result row carries place IDs, so you can copy it from a first run."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What customers type into Google Maps, for example \"dentist\" or \"emergency plumber\". Each keyword is checked at every grid point. Up to 10.",
            "items": {
              "type": "string"
            }
          },
          "centerLat": {
            "title": "Grid centre latitude",
            "type": "number",
            "description": "Usually the business's own location. Copy it from the Google Maps URL (the first number after @)."
          },
          "centerLng": {
            "title": "Grid centre longitude",
            "type": "number",
            "description": "Usually the business's own location (the second number after @ in a Google Maps URL)."
          },
          "gridSize": {
            "title": "Grid size",
            "minimum": 3,
            "maximum": 13,
            "type": "integer",
            "description": "Points per side: 3, 5, 7, 9, 11 or 13. A 5 x 5 grid is 25 points per keyword. Keywords x points is capped at 1,000 per run.",
            "default": 5
          },
          "spacingKm": {
            "title": "Distance between points (km)",
            "minimum": 0.1,
            "maximum": 20,
            "type": "number",
            "description": "Kilometres between neighbouring grid points (1 km = 0.62 miles). A 5 x 5 grid at 1 km covers 4 x 4 km.",
            "default": 1
          },
          "zoom": {
            "title": "Map zoom",
            "minimum": 11,
            "maximum": 18,
            "type": "integer",
            "description": "Google Maps zoom at each point. 14 shows roughly a 25 km-wide desktop map; a lower zoom widens the area Google ranks over.",
            "default": 14
          },
          "businessCountry": {
            "title": "Business country",
            "type": "string",
            "description": "Two-letter country code of the business (US, GB, DE, ...). It sets Google's region and picks a proxy outside that country, so results are not skewed by the proxy's own location.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Google interface language code, for example en or de.",
            "default": "en"
          },
          "includeAllResults": {
            "title": "Include all 20 results per point",
            "type": "boolean",
            "description": "Adds the full top 20 (name, place ID, category, rating, reviews, address, coordinates) to every row. Same price.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}