{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Search Scraper: SERP, Ads, Images, News & Videos",
    "description": "Scrape Yandex search results for any query and region: organic rankings, the full results page with ads and the knowledge panel, images, videos, news and autocomplete suggestions. Russian, Turkish, Kazakh, English and more. Date, language and site filters.",
    "version": "0.0",
    "x-build-id": "vwYLSvYDqqEQcLjgj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~yandex-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-yandex-search-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/memo23~yandex-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-yandex-search-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/memo23~yandex-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-yandex-search-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",
            "type": "array",
            "description": "One search per line, in any language Yandex serves (Russian, Turkish, Kazakh, English…). Write -site:example.com in a query to leave a site out.",
            "items": {
              "type": "string"
            }
          },
          "searchType": {
            "title": "What to collect",
            "enum": [
              "web",
              "page",
              "images",
              "videos",
              "news",
              "suggestions"
            ],
            "type": "string",
            "description": "Web results follow Yandex's web index; the full results page is what a person sees on Yandex, with paid ads in place. Pick the full page to track positions as people see them.",
            "default": "web"
          },
          "maxPages": {
            "title": "Pages per query",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Web results and the full page stop at 25 pages (about 250 results). News and suggestions are one page.",
            "default": 1
          },
          "domain": {
            "title": "Yandex domain",
            "enum": [
              "yandex.ru",
              "yandex.com",
              "yandex.com.tr",
              "yandex.kz",
              "yandex.by",
              "yandex.uz"
            ],
            "type": "string",
            "description": "Sets the default region for web results and suggestions. The full results page is read from yandex.com.tr, .kz, .by or .uz (labels differ, the index is the same).",
            "default": "yandex.ru"
          },
          "region": {
            "title": "Region",
            "enum": [
              "",
              "213",
              "2",
              "225",
              "54",
              "65",
              "43",
              "11508",
              "983",
              "162",
              "157",
              "10335",
              "84",
              "102",
              "96"
            ],
            "type": "string",
            "description": "Results are localised for this region. Use the custom region id below for any other Yandex region.",
            "default": ""
          },
          "regionId": {
            "title": "Custom region id",
            "type": "integer",
            "description": "Any Yandex region id (the lr= number in a Yandex results link). Wins over the list above."
          },
          "documentLanguage": {
            "title": "Web results: page language",
            "enum": [
              "",
              "ru",
              "en",
              "tr",
              "uk",
              "be",
              "kk",
              "uz",
              "de",
              "fr",
              "es",
              "it",
              "pl"
            ],
            "type": "string",
            "description": "Only pages written in this language. Web results only.",
            "default": ""
          },
          "period": {
            "title": "Web results: dated within",
            "enum": [
              "any",
              "day",
              "week",
              "two_weeks",
              "month",
              "three_months",
              "half_year",
              "year"
            ],
            "type": "string",
            "description": "Only pages Yandex dated in this window. Web results only.",
            "default": "any"
          },
          "dateFrom": {
            "title": "Web results: from date",
            "type": "string",
            "description": "YYYY-MM-DD. With a date range the period above is ignored. Web results only."
          },
          "dateTo": {
            "title": "Web results: to date",
            "type": "string",
            "description": "YYYY-MM-DD, default today. Web results only."
          },
          "excludeSites": {
            "title": "Leave these sites out",
            "type": "array",
            "description": "Up to 15 domains, e.g. wikipedia.org. A domain also drops its subdomains. Web results and the full page.",
            "items": {
              "type": "string"
            }
          },
          "imageSize": {
            "title": "Images: size",
            "enum": [
              "any",
              "large",
              "medium",
              "small",
              "wallpaper"
            ],
            "type": "string",
            "description": "Images only.",
            "default": "any"
          },
          "imageOrientation": {
            "title": "Images: orientation",
            "enum": [
              "any",
              "horizontal",
              "vertical",
              "square"
            ],
            "type": "string",
            "description": "Images only.",
            "default": "any"
          },
          "imageType": {
            "title": "Images: kind",
            "enum": [
              "any",
              "photo",
              "clipart",
              "lineart",
              "face",
              "demotivator"
            ],
            "type": "string",
            "description": "Images only.",
            "default": "any"
          },
          "imageColor": {
            "title": "Images: colour",
            "enum": [
              "any",
              "color",
              "gray",
              "red",
              "orange",
              "yellow",
              "cyan",
              "green",
              "blue",
              "violet",
              "white",
              "black"
            ],
            "type": "string",
            "description": "Images only.",
            "default": "any"
          },
          "imageFileType": {
            "title": "Images: file type",
            "enum": [
              "any",
              "jpg",
              "png",
              "gif"
            ],
            "type": "string",
            "description": "Images only.",
            "default": "any"
          },
          "imageSite": {
            "title": "Images: only from this site",
            "type": "string",
            "description": "A domain, e.g. wikipedia.org. Images only."
          },
          "safeSearch": {
            "title": "Images and videos: adult filter",
            "enum": [
              "default",
              "off",
              "moderate",
              "strict"
            ],
            "type": "string",
            "description": "Images and videos only.",
            "default": "default"
          },
          "newsSort": {
            "title": "News: order",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "News only.",
            "default": "relevance"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}