{
  "openapi": "3.0.1",
  "info": {
    "title": "hh.ru Jobs Search Scraper",
    "description": "Scrape job listings from hh.ru (HeadHunter Russia) via the official public REST API. Extract detailed job info including salary, company details, location, experience level, and employment conditions.",
    "version": "2.0",
    "x-build-id": "vobRlL4j2qSjX7Ehl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jobsapi~hh-ru-jobs-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jobsapi-hh-ru-jobs-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/jobsapi~hh-ru-jobs-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jobsapi-hh-ru-jobs-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/jobsapi~hh-ru-jobs-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jobsapi-hh-ru-jobs-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",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "searchMultiple",
              "single",
              "multiple"
            ],
            "type": "string",
            "description": "Choose one search, multiple searches, one vacancy, or multiple vacancies.",
            "default": "search"
          },
          "keywords": {
            "title": "Keywords",
            "minLength": 1,
            "maxLength": 300,
            "type": "string",
            "description": "Job title, skill, or phrase for search mode.",
            "default": "Python developer"
          },
          "queries": {
            "title": "Search queries",
            "minItems": 1,
            "maxItems": 10,
            "uniqueItems": true,
            "type": "array",
            "description": "One to ten unique queries for searchMultiple mode.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "jobUrls": {
            "title": "Vacancy URLs",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Public hh.ru vacancy URLs for direct modes.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "vacancyIds": {
            "title": "Vacancy IDs",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Numeric HH.ru vacancy IDs for direct modes.",
            "items": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          },
          "area": {
            "title": "Area ID",
            "pattern": "^[0-9]+$",
            "type": "string",
            "description": "HH.ru area ID: 113 Russia, 1 Moscow, 2 Saint Petersburg.",
            "default": "113"
          },
          "experience": {
            "title": "Experience",
            "enum": [
              "",
              "noExperience",
              "between1And3",
              "between3And6",
              "moreThan6"
            ],
            "type": "string",
            "description": "Filter by the official HH.ru experience ID.",
            "default": ""
          },
          "employment": {
            "title": "Employment",
            "enum": [
              "",
              "full",
              "part",
              "project",
              "volunteer",
              "probation"
            ],
            "type": "string",
            "description": "Filter by the official HH.ru employment ID.",
            "default": ""
          },
          "schedule": {
            "title": "Schedule",
            "enum": [
              "",
              "fullDay",
              "shift",
              "flexible",
              "remote",
              "flyInFlyOut"
            ],
            "type": "string",
            "description": "Filter by the official HH.ru schedule ID.",
            "default": ""
          },
          "salaryFrom": {
            "title": "Minimum salary",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Minimum salary accepted by the HH.ru search endpoint."
          },
          "onlyWithSalary": {
            "title": "Only vacancies with salary",
            "type": "boolean",
            "description": "Exclude vacancies that do not publish salary data.",
            "default": false
          },
          "orderBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "publication_time",
              "salary_desc",
              "salary_asc"
            ],
            "type": "string",
            "description": "Order results by relevance, publication time, or salary.",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Global output limit across all queries or IDs.",
            "default": 50
          },
          "maxPages": {
            "title": "Maximum pages per query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum search pages requested for each query.",
            "default": 5
          },
          "includeDetails": {
            "title": "Fetch vacancy details",
            "type": "boolean",
            "description": "Fetch full descriptions, skills, salary, and employment metadata.",
            "default": true
          },
          "detailConcurrency": {
            "title": "Detail concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum simultaneous detail API requests.",
            "default": 5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each HH.ru API request in seconds.",
            "default": 30
          },
          "maxRetries": {
            "title": "Maximum retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries for transient responses and network failures.",
            "default": 3
          },
          "requestDelayMs": {
            "title": "Delay between page requests",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Polite delay between consecutive search pages.",
            "default": 250
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy or custom proxy routing. Direct access is the default.",
            "default": {
              "useApifyProxy": false
            }
          },
          "query": {
            "title": "Legacy query alias",
            "maxLength": 300,
            "type": "string",
            "description": "Backward-compatible alias for keywords."
          },
          "maxJobs": {
            "title": "Legacy maximum jobs alias",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Backward-compatible alias for maxItems."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}