{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Search Scraper | Yandex SERP Results, Ads, Neuro AI",
    "description": "Scrape Yandex search results (SERP) logged out: up to 25 pages a query on yandex.ru, .com, .com.tr, .kz, .by, .uz, any region. One row per organic result: rank, URL, title, snippet, sitelinks, date. Ads, the Neuro AI answer, entity card and related searches free. Misses free.",
    "version": "0.1",
    "x-build-id": "qdRCHeLwmL4v7EKv2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~yandex-search-engine-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-yandex-search-engine-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/hyperbach~yandex-search-engine-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-yandex-search-engine-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/hyperbach~yandex-search-engine-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-yandex-search-engine-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",
        "properties": {
          "queries": {
            "title": "Search queries",
            "maxItems": 5000,
            "type": "array",
            "description": "One search per line: words as you would type them into Yandex (its operators work: site:, quotes, -word) or a Yandex search link (https://yandex.ru/search/?text=…&lr=213: its text, region and filters are read; other parameters are named on the query's row as not sent). A link to another site is a free row that says why.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Pages per query (about 10 results each)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many result pages to read for each query, from the first. Yandex shows 25 pages at most (about 250 results); a larger number reads all 25. Pages 1-3 come in seconds; pages 4-25 take 30-80 s each, read up to 10 at once.",
            "default": 1
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 0,
            "maximum": 250,
            "type": "integer",
            "description": "The most organic results of one query; 0 = every result of the pages asked. Only the pages these results need are read.",
            "default": 0
          },
          "language": {
            "title": "Language & region",
            "enum": [
              "ru",
              "en",
              "uk",
              "de",
              "fr",
              "tr",
              "be",
              "kk",
              "uz",
              "az",
              "lv",
              "lt",
              "et"
            ],
            "type": "string",
            "description": "Which Yandex and which region's ranking you see: each value is a Yandex domain and a region (Russian = yandex.ru with Moscow, English = yandex.com with the USA). Yandex reads the query's own language whatever you pick. A region or a domain below overrides this.",
            "default": "ru"
          },
          "region": {
            "title": "Region (city or Yandex region code)",
            "type": "string",
            "description": "Optional: the region whose results you see, as Yandex's region code (lr: 213 Moscow, 2 Saint Petersburg, 54 Yekaterinburg, 143 Kyiv, 157 Minsk, 162 Almaty, 84 USA) or a name: Moscow, Saint Petersburg, Novosibirsk, Kazan, Almaty, Minsk, Istanbul, London … Empty = the region of Language & region. A code sent through the API as a number goes under `lr` (`\"lr\": 162`); this field takes it as text (`\"162\"`)."
          },
          "domain": {
            "title": "Yandex domain",
            "enum": [
              "auto",
              "yandex.ru",
              "yandex.com",
              "yandex.com.tr",
              "yandex.kz",
              "yandex.by",
              "yandex.uz"
            ],
            "type": "string",
            "description": "Optional: the Yandex domain to search on. The page's own words follow the domain (yandex.com English, yandex.com.tr Turkish, the others Russian). Auto = the domain of Language & region or of the region.",
            "default": "auto"
          },
          "resultsLanguage": {
            "title": "Results in one language only",
            "enum": [
              "any",
              "ru",
              "en",
              "uk",
              "be",
              "kk",
              "tr",
              "de",
              "fr"
            ],
            "type": "string",
            "description": "Optional: only documents written in this language (Yandex's own language filter).",
            "default": "any"
          },
          "timePeriod": {
            "title": "Time period",
            "enum": [
              "any",
              "day",
              "two_weeks",
              "month"
            ],
            "type": "string",
            "description": "Optional: only pages Yandex found new or updated in this period.",
            "default": "any"
          },
          "sortByDate": {
            "title": "Newest first",
            "type": "boolean",
            "description": "Sort the results by date, newest first, instead of by relevance. Each result then carries Yandex's own date label.",
            "default": false
          },
          "familyFilter": {
            "title": "Family filter",
            "enum": [
              "moderate",
              "strict",
              "off"
            ],
            "type": "string",
            "description": "Yandex's family (safe search) filter: moderate is Yandex's default; strict hides adult pages; off shows everything.",
            "default": "moderate"
          },
          "noAutoCorrect": {
            "title": "Search exactly as typed",
            "type": "boolean",
            "description": "Do not let Yandex correct a typo in the query. Off: Yandex may search a corrected query, and the query's row says which one it searched.",
            "default": false
          },
          "device": {
            "title": "Results as seen on",
            "enum": [
              "phone",
              "desktop"
            ],
            "type": "string",
            "description": "Phone: Yandex's phone results page (fast: a page in seconds). Desktop: Yandex's desktop results page (30-80 s a page); desktop and phone rankings can differ.",
            "default": "phone"
          },
          "includeNeuroAnswer": {
            "title": "Read the Neuro answer's text",
            "type": "boolean",
            "description": "When Yandex shows its Neuro (AI) answer as a short card, ask the page's own answer call for the full text and its sources (about 8 s more for that query, free). The answers Yandex shows in full are read either way.",
            "default": true
          },
          "trackedDomains": {
            "title": "Your domains to track",
            "maxItems": 100,
            "type": "array",
            "description": "Optional: domains whose results you want flagged (example.com covers its subdomains). Each result row then says tracked true or false, and each query's row gives the best position of your domains.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}