{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Maps Rank Tracker - Geo Grid for Local SEO",
    "description": "See where a business ranks in Google Maps on a grid of points around any location. Get the rank at each point, the top competitors on the spot and average position summaries for local SEO reporting.",
    "version": "0.1",
    "x-build-id": "Brmt86IWQPkbj3i9C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrape_api~google-maps-geogrid/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrape_api-google-maps-geogrid",
        "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/scrape_api~google-maps-geogrid/runs": {
      "post": {
        "operationId": "runs-sync-scrape_api-google-maps-geogrid",
        "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/scrape_api~google-maps-geogrid/run-sync": {
      "post": {
        "operationId": "run-sync-scrape_api-google-maps-geogrid",
        "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",
          "center_lat",
          "center_lng"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search keywords to measure at every grid point. Each keyword produces its own summary.",
            "items": {
              "type": "string"
            }
          },
          "place_id": {
            "title": "Place id",
            "type": "string",
            "description": "Recommended: exact Google ChIJ place ID, hexadecimal fid, or a Google Maps URL containing a fid."
          },
          "business_name": {
            "title": "Business name",
            "maxLength": 300,
            "type": "string",
            "description": "Business name used when place_id is absent. The first matching branch from the center is locked per keyword."
          },
          "center_lat": {
            "title": "Center lat",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Grid center latitude."
          },
          "center_lng": {
            "title": "Center lng",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Grid center longitude."
          },
          "grid_size": {
            "title": "Grid size",
            "minimum": 3,
            "maximum": 15,
            "type": "integer",
            "description": "Odd number of points per side, from 3 to 15. A 5 by 5 grid contains 25 points. Allowed values: 3, 5, 7, 9, 11, 13, 15.",
            "default": 5
          },
          "spacing": {
            "title": "Spacing",
            "minimum": 0.1,
            "maximum": 20,
            "type": "number",
            "description": "Distance between neighboring grid points, in distance_unit.",
            "default": 1
          },
          "distance_unit": {
            "title": "Distance unit",
            "enum": [
              "km",
              "mi"
            ],
            "type": "string",
            "description": "Unit for spacing and distance_from_center; competitor distances are always kilometers.",
            "default": "km"
          },
          "zoom": {
            "title": "Zoom",
            "minimum": 10,
            "maximum": 18,
            "type": "integer",
            "description": "Map viewport zoom. Keep zoom fixed when comparing scans.",
            "default": 13
          },
          "max_rank": {
            "title": "Max rank",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum rank to consider found. A valid measurement without the target is still billable.",
            "default": 20
          },
          "top_competitors": {
            "title": "Top competitors",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Number of competing places per point, excluding the locked target business.",
            "default": 3
          },
          "hl": {
            "title": "Hl",
            "type": "string",
            "description": "Google Maps language code; this affects the search results.",
            "default": "en"
          },
          "gl": {
            "title": "Gl",
            "type": "string",
            "description": "Two-letter country code. If omitted it is inferred once from the first measured point; set explicitly for repeatable scans."
          },
          "cursor": {
            "title": "Cursor",
            "type": "string",
            "description": "Opaque next_cursor from the previous response. Resend all original scan fields unchanged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}