{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Rank Tracker — Geogrid Heatmap, Paid vs Organic",
    "description": "Track a business's Yandex Maps rank at every point of a 3x3 to 13x13 geogrid: rank, organic vs paid slot with the advertiser named, top 3 competitors, ARP/ATRP/SoLV, heatmaps and weekly change monitoring. Russia, Kazakhstan, Belarus, Uzbekistan, Turkey. No login.",
    "version": "0.1",
    "x-build-id": "YqLWHy6bOZTTHba4s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~yandex-maps-geogrid-rank-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-yandex-maps-geogrid-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/yugenox~yandex-maps-geogrid-rank-tracker/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-yandex-maps-geogrid-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/yugenox~yandex-maps-geogrid-rank-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-yandex-maps-geogrid-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"
        ],
        "properties": {
          "business": {
            "title": "Business (Yandex Maps link or id)",
            "type": "string",
            "description": "The business to track: its Yandex Maps place link (yandex.com/maps/org/…, yandex.ru, yandex.kz, yandex.com.tr/harita … all work) or its numeric id. Leave empty for a share-of-voice scan of an area (then set Grid center)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "1-20 search keywords people type into Yandex Maps, ideally in the local language (e.g. \"стоматология\", \"кафе\", \"автосервис\", \"diş kliniği\"). Each keyword is scanned at every grid point.",
            "items": {
              "type": "string"
            }
          },
          "center": {
            "title": "Grid center",
            "type": "string",
            "description": "Optional. A city or address (\"Moscow\", \"Almaty, Abay Ave 10\") or \"latitude, longitude\". Default: the business's own location. Required when no business is given."
          },
          "gridSize": {
            "title": "Grid size",
            "minimum": 3,
            "maximum": 13,
            "type": "integer",
            "description": "Points per side: 3 = 3 x 3 = 9 points, 7 = 49 points, 13 = 169 points (odd numbers only).",
            "default": 5
          },
          "spacingKm": {
            "title": "Distance between points (km)",
            "minimum": 0.1,
            "maximum": 10,
            "type": "number",
            "description": "Kilometres between neighbouring grid points (0.1-10). 0.5-1 km for a city neighbourhood, 2-5 km for a whole city.",
            "default": 1
          },
          "zoom": {
            "title": "Map zoom (0 = automatic)",
            "minimum": 0,
            "maximum": 18,
            "type": "integer",
            "description": "The Yandex Maps zoom level every point searches at (10-18). Rankings depend on the zoom, so keep it the same between runs you compare. 0 = automatic from the spacing (the map view is about twice the spacing wide).",
            "default": 0
          },
          "language": {
            "title": "Interface language",
            "enum": [
              "ru",
              "en",
              "tr",
              "kk",
              "uz"
            ],
            "type": "string",
            "description": "Yandex Maps interface language (category names, addresses). Russian gives the most complete Russian/CIS results.",
            "default": "ru"
          },
          "matchChain": {
            "title": "Count any branch of the chain",
            "type": "boolean",
            "description": "When on, any branch of the business's chain counts as a hit (Yandex gives every branch its own id). Off = this branch only.",
            "default": false
          },
          "competitorsPerKeyword": {
            "title": "Competitor rows per keyword",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "How many competitor rows (free) to add per keyword: the businesses seen most often in the top positions across the grid. 0 = none.",
            "default": 10
          },
          "monitorMode": {
            "title": "Monitor mode (compare with the last run)",
            "type": "boolean",
            "description": "Keep this scan in a named key-value store in your account and report rank, rating and review-count changes against the previous run of the same business, keyword and grid. Ideal for weekly schedules.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Name of the key-value store monitor mode uses (one per client or project if you like).",
            "default": "yandex-maps-geogrid-monitor"
          },
          "maxPoints": {
            "title": "Max points per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many charged grid points (0 = no limit beyond the grid itself).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (included in every plan) is all this Actor needs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}