{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Scraper",
    "description": "Scrape Yandex Maps places with ratings, contacts, websites, addresses, coordinates, opening hours, and categories for local lead generation.",
    "version": "0.1",
    "x-build-id": "ZvPfD9FTIalCozVVo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~yandex-maps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-yandex-maps-scraper",
        "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/fetch_cat~yandex-maps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-yandex-maps-scraper",
        "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/fetch_cat~yandex-maps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-yandex-maps-scraper",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "Up to 100 non-empty keywords or business categories, such as coffee or plumber. Each query can be at most 1000 characters. Enter keywords, not URLs; put a city name in location and clear cityUrl to use it. Console/API validation prevents URL entries before startup. Runtime paths bypassing schema validation skip them with a warning, preserving other queries. Search uses direct public access only, with no proxy selection or paid fallback.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000,
              "pattern": "^(?!\\s*[hH][tT][tT][pP][sS]?://)[\\s\\S]*\\S[\\s\\S]*$"
            }
          },
          "cityUrl": {
            "title": "Yandex Maps city URL",
            "maxLength": 2000,
            "type": "string",
            "description": "Public HTTPS Yandex Maps city URL on yandex.com or yandex.ru, without credentials or a custom port. Example: https://yandex.com/maps/213/moscow. A /maps/... path is also accepted. When omitted, location is used if provided, otherwise Moscow. A supplied city URL takes precedence over location."
          },
          "location": {
            "title": "Location fallback",
            "maxLength": 2000,
            "type": "string",
            "description": "Optional text location used only when no city URL is provided. Clear the prefilled city URL in the form to use this fallback. For ambiguous towns, include the region, for example Чайковский, Пермский край or Домодедово, Московская область. Unresolved locations return an empty dataset with a warning; another city is never substituted."
          },
          "maxItems": {
            "title": "Maximum places",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Shared place cap across all queries. This build reads one search page per query and saves at most 25 unique places per run. Legacy values up to 1000 remain accepted but are capped at 25 with a warning. API omission uses the schema default of 20, while local inputs bypassing schema defaults use 25.",
            "default": 20
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "",
              "gt3.0",
              "gt3.5",
              "gt4.0",
              "gt4.5",
              "gt4.7",
              "gt4.9"
            ],
            "type": "string",
            "description": "Only return places with at least about this rating, filtered by Yandex Maps itself (Yandex rounds ratings, so a 4.5 place can appear under 4.5 and higher). Leave empty for all ratings.",
            "default": ""
          },
          "openNowOnly": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Only return places Yandex Maps shows as open at the time of the run.",
            "default": false
          },
          "open24hOnly": {
            "title": "Open 24/7 only",
            "type": "boolean",
            "description": "Only return places open around the clock.",
            "default": false
          },
          "goodPlaceOnly": {
            "title": "Good Place only",
            "type": "boolean",
            "description": "Only return places with the Yandex Maps Good Place badge.",
            "default": false
          },
          "customFilters": {
            "title": "Other Yandex filters",
            "maxItems": 20,
            "type": "array",
            "description": "Advanced: extra Yandex Maps search filters as key:value, for example wi_fi:1 for cafes with Wi-Fi. Filters that do not apply to a category can return no places.",
            "items": {
              "type": "string",
              "pattern": "^\\s*[a-z0-9_]{1,64}:[A-Za-z0-9_.,-]{1,64}\\s*$"
            },
            "default": []
          },
          "includeDetails": {
            "title": "Include embedded details",
            "type": "boolean",
            "description": "Compatibility setting. Available embedded fields such as phones, websites, hours, features, images and coordinates are always returned, including when false. No separate detail request is made.",
            "default": true
          },
          "language": {
            "title": "Language header",
            "pattern": "^[^\\r\\n]*$",
            "maxLength": 2000,
            "type": "string",
            "description": "Accept-Language preference sent to Yandex Maps, not a translation guarantee. Use en-US,en;q=0.9 for English where available. Line breaks are not allowed.",
            "default": "en-US,en;q=0.9"
          },
          "includeReviews": {
            "title": "Include reviews (reserved)",
            "type": "boolean",
            "description": "Reserved for a later version. The current build returns place records and rating/review counts, not individual review rows.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}