{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Business Search, Details & Reviews Scraper",
    "description": "Search Yandex Maps by keyword, fetch full business details, or collect customer reviews - with address, phone, rating, working hours, photos, coordinates, and review text across six regional domains.",
    "version": "2.0",
    "x-build-id": "D8zEadOFOCSTloS2r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~yandex-maps-business-search-details-and-reviews/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-yandex-maps-business-search-details-and-reviews",
        "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/nimbryxo-studio~yandex-maps-business-search-details-and-reviews/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-yandex-maps-business-search-details-and-reviews",
        "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/nimbryxo-studio~yandex-maps-business-search-details-and-reviews/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-yandex-maps-business-search-details-and-reviews",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchPlaces",
              "getDetails",
              "getReviews"
            ],
            "type": "string",
            "description": "What to collect. searchPlaces finds businesses by keyword. getDetails returns full business cards for IDs or URLs. getReviews collects customer reviews for IDs, URLs or a search.",
            "default": "searchPlaces"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "One query per line, for example 'coffee' or 'dentist'. Used by searchPlaces, and by getReviews when no business IDs or URLs are supplied.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name in any language, for example 'Moscow', 'Kazan' or 'Istanbul'. Yandex Maps resolves the city centre and passes it to the search."
          },
          "coordinates": {
            "title": "Centre point (latitude,longitude)",
            "type": "string",
            "description": "Optional point for a local search, for example '55.7558,37.6173'. When set, it overrides the city centre. Combine with Radius to search around the point."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Keep only places within this distance of the centre point or city centre. Results are measured by straight-line distance and filtered strictly."
          },
          "bbox": {
            "title": "Bounding box (west,south,east,north)",
            "type": "string",
            "description": "Optional rectangular area, for example '37.45,55.65,37.85,55.85'. Results outside the rectangle are dropped."
          },
          "businessIds": {
            "title": "Business IDs",
            "type": "array",
            "description": "Yandex Maps organization IDs, one per line. Use for getDetails or getReviews.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Business or search URLs",
            "type": "array",
            "description": "Yandex Maps organization URLs, short links or search URLs, one per line. Business and search URLs work in both getDetails and getReviews.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Run-wide cap. In searchPlaces and getDetails it counts places; in getReviews it counts reviews across all businesses.",
            "default": 100
          },
          "maxReviewsPerPlace": {
            "title": "Maximum reviews per place",
            "minimum": 1,
            "maximum": 2400,
            "type": "integer",
            "description": "Review cap for each business. Yandex exposes up to 600 reviews per sort order; the actor combines four orders to reach up to 2,400 unique reviews per business.",
            "default": 100
          },
          "reviewSort": {
            "title": "Review sort order",
            "enum": [
              "relevance",
              "time",
              "rating_desc",
              "rating_asc"
            ],
            "type": "string",
            "description": "Primary review order. When you ask for more than 600 reviews per place, the actor also walks the other three orders and merges them, removing duplicates.",
            "default": "relevance"
          },
          "reviewMinRating": {
            "title": "Minimum review rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with at least this many stars (1-5)."
          },
          "reviewMaxRating": {
            "title": "Maximum review rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with at most this many stars (1-5)."
          },
          "reviewDateFrom": {
            "title": "Reviews from date",
            "type": "string",
            "description": "Keep reviews published on or after this date (YYYY-MM-DD)."
          },
          "reviewDateTo": {
            "title": "Reviews to date",
            "type": "string",
            "description": "Keep reviews published on or before this date (YYYY-MM-DD)."
          },
          "reviewTextContains": {
            "title": "Review text contains",
            "type": "array",
            "description": "One phrase per line. A review is kept when its text contains any of these phrases, ignoring case.",
            "items": {
              "type": "string"
            }
          },
          "reviewRequireOwnerReply": {
            "title": "Only reviews with an owner reply",
            "type": "boolean",
            "description": "Keep only reviews where the business wrote a reply.",
            "default": false
          },
          "minRating": {
            "title": "Minimum place rating",
            "enum": [
              "any",
              "3",
              "3.5",
              "4",
              "4.5",
              "4.7",
              "4.9"
            ],
            "type": "string",
            "description": "Drop businesses below this rating. Businesses without a rating are dropped when a threshold is set. Applies to place records.",
            "default": "any"
          },
          "minReviewCount": {
            "title": "Minimum place review count",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop businesses with fewer text reviews. 0 disables the filter. Applies to place records.",
            "default": 0
          },
          "requirePhone": {
            "title": "Only businesses with a phone",
            "type": "boolean",
            "description": "Drop businesses without a phone number. Applies to searchPlaces and getDetails.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only businesses with a website",
            "type": "boolean",
            "description": "Drop businesses without a website. Applies to searchPlaces and getDetails.",
            "default": false
          },
          "openNow": {
            "title": "Only open businesses",
            "type": "boolean",
            "description": "Keep only businesses that Yandex reports as open at collection time. Applies to place records.",
            "default": false
          },
          "goodPlace": {
            "title": "Only Good Place businesses",
            "type": "boolean",
            "description": "Yandex Good Place quality filter. Used as a server-side search filter and verified client-side on place records.",
            "default": false
          },
          "priceCategories": {
            "title": "Price categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep businesses in any of these price bands. Leave empty for all prices. Server-side in searchPlaces, verified client-side elsewhere.",
            "items": {
              "type": "string",
              "enum": [
                "price_cheap",
                "price_reasonable",
                "price_expensive",
                "price_very_expensive"
              ],
              "enumTitles": [
                "Inexpensive",
                "Moderate",
                "Expensive",
                "Very expensive"
              ]
            },
            "default": []
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Optional Yandex category IDs, one per line. The category ID appears in each place's categoryDetails. Used server-side in searchPlaces and verified client-side.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesPerQuery": {
            "title": "Maximum search pages per query",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Yandex returns 25 businesses per page. More pages find more places but take longer.",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Maximum concurrent requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many business pages or review batches to process at once. Higher is faster but more likely to trigger rate limiting.",
            "default": 5
          },
          "yandexDomain": {
            "title": "Yandex domain",
            "enum": [
              "yandex.com",
              "yandex.ru",
              "yandex.com.tr",
              "yandex.kz",
              "yandex.uz",
              "yandex.by"
            ],
            "type": "string",
            "description": "Regional Yandex domain. yandex.com works worldwide; regional domains return local metadata.",
            "default": "yandex.com"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ru",
              "tr",
              "de",
              "fr",
              "uk",
              "kk",
              "uz"
            ],
            "type": "string",
            "description": "Interface and metadata language. Review text stays in the reviewer's language and translations are returned separately.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The actor works without a proxy and negotiates access automatically. Supply a proxy only if you want to pin a specific country or provider."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}