{
  "openapi": "3.0.1",
  "info": {
    "title": "hh.ru Scraper (HeadHunter) — Jobs, Salaries & Employers API",
    "description": "hh.ru scraper (HeadHunter): extract job vacancies by search URL, catalog page or keywords — title, salary with gross/net flag, employer rating, key skills, metro station, GPS coordinates and full description. Built-in residential proxy plus monitoring mode for new-only feeds. JSON/CSV.",
    "version": "0.0",
    "x-build-id": "l6LHy1Oyz2Ftx6seZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~hh-ru-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-hh-ru-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~hh-ru-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-hh-ru-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~hh-ru-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-hh-ru-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": {
          "startUrls": {
            "title": "hh.ru URLs",
            "type": "array",
            "description": "Full hh.ru URLs to crawl. Search URLs (e.g. `https://hh.ru/search/vacancy?text=python&area=1`), catalog pages (e.g. `https://hh.ru/vacancies/programmist`), and direct vacancy URLs (`https://hh.ru/vacancy/123456789`) can be mixed in the same list.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "One search per keyword — each entry becomes `https://hh.ru/search/vacancy?text={keyword}` with any filters below applied. Ignored when hh.ru URLs are provided above.",
            "items": {
              "type": "string"
            }
          },
          "area": {
            "title": "Area ID or city/country name",
            "type": "string",
            "description": "hh.ru numeric area ID or major city/country name applied to keyword/filter searches (comma-separated for multiple). Examples: `1` / `Moscow`, `2` / `Saint Petersburg`, `113` / `Russia`, `3` Yekaterinburg, `4` Novosibirsk, `88` Kazan, `40` Kazakhstan, `160` Almaty, `16` Belarus, `1002` Minsk, `97` Uzbekistan. Ignored when hh.ru URLs are provided."
          },
          "salary": {
            "title": "Minimum / target salary",
            "minimum": 0,
            "type": "integer",
            "description": "Target salary amount (`salary` parameter on hh.ru). Combine with `currency` and `onlyWithSalary`."
          },
          "onlyWithSalary": {
            "title": "Only with disclosed salary",
            "type": "boolean",
            "description": "When true, passes `only_with_salary=true` to hh.ru so vacancies without a salary range are excluded.",
            "default": false
          },
          "currency": {
            "title": "Salary currency",
            "enum": [
              "RUR",
              "RUB",
              "USD",
              "EUR",
              "KZT",
              "UZS",
              "BYR",
              "GEL",
              "AZN",
              "KGS",
              "UAH"
            ],
            "type": "string",
            "description": "Currency code for the `salary` filter (`RUB` is mapped to hh.ru's `RUR`)."
          },
          "experience": {
            "title": "Experience level",
            "enum": [
              "noExperience",
              "between1And3",
              "between3And6",
              "moreThan6"
            ],
            "type": "string",
            "description": "Filter by required years of experience (`experience` parameter on hh.ru)."
          },
          "employment": {
            "title": "Employment type",
            "enum": [
              "full",
              "part",
              "project",
              "volunteer",
              "probation"
            ],
            "type": "string",
            "description": "Filter by employment type (`employment` parameter on hh.ru)."
          },
          "schedule": {
            "title": "Schedule",
            "enum": [
              "fullDay",
              "shift",
              "flexible",
              "remote",
              "flyInFlyOut"
            ],
            "type": "string",
            "description": "Filter by work schedule (`schedule` parameter on hh.ru)."
          },
          "workFormat": {
            "title": "Work format",
            "enum": [
              "ON_SITE",
              "REMOTE",
              "HYBRID",
              "FIELD_WORK"
            ],
            "type": "string",
            "description": "Filter by hh.ru work format (`work_format` parameter)."
          },
          "orderBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "publication_time",
              "salary_desc",
              "salary_asc",
              "distance"
            ],
            "type": "string",
            "description": "Result sort order (`order_by` parameter on hh.ru)."
          },
          "period": {
            "title": "Posted within (days)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Only include vacancies published within the last N days (`search_period` parameter, 1–30)."
          },
          "dateFrom": {
            "title": "Published after (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Lower publication date bound (`date_from` parameter, format `YYYY-MM-DD`)."
          },
          "dateTo": {
            "title": "Published before (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Upper publication date bound (`date_to` parameter, format `YYYY-MM-DD`)."
          },
          "searchField": {
            "title": "Search field scope",
            "enum": [
              "name",
              "company_name",
              "description"
            ],
            "type": "string",
            "description": "Restrict keyword matching to vacancy title, company name, or description (`search_field` parameter)."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Words to exclude from search results (`excluded_text` parameter on hh.ru).",
            "items": {
              "type": "string"
            }
          },
          "employerIds": {
            "title": "Employer IDs",
            "type": "array",
            "description": "Restrict results to specific hh.ru numeric employer IDs (`employer_id` parameter).",
            "items": {
              "type": "string"
            }
          },
          "industryIds": {
            "title": "Industry IDs",
            "type": "array",
            "description": "Filter by hh.ru industry IDs (`industry` parameter, e.g. `7` for IT).",
            "items": {
              "type": "string"
            }
          },
          "professionalRoleIds": {
            "title": "Professional role IDs",
            "type": "array",
            "description": "Filter by hh.ru professional role IDs (`professional_role` parameter, e.g. `96` for software developer).",
            "items": {
              "type": "string"
            }
          },
          "labels": {
            "title": "Vacancy labels",
            "type": "array",
            "description": "hh.ru vacancy labels (`label` parameter), e.g. `accredited_it`, `not_from_agency`, `with_address`, `accept_handicapped`, `accept_kids`, `internship`.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch full vacancy details",
            "type": "boolean",
            "description": "When enabled (default), fetches every vacancy page for full description, key skills, company rating, and metro stations. Disable (`false`) for a fast listing-only mode that extracts structured rows directly from search pages (up to 50× fewer requests).",
            "default": true
          },
          "compact": {
            "title": "Compact output (LLM-friendly)",
            "type": "boolean",
            "description": "Omit verbose raw HTML `description`, `sourceUrl`, `logoUrl`, `professionalRoleIds`, and `emailEnrichment` details while keeping core structured fields and `descriptionText`.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively strip `null`, empty strings, empty arrays, and empty objects from output rows while strictly preserving `0` and `false`.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Max description text length",
            "minimum": 0,
            "type": "integer",
            "description": "Surrogate-safe maximum length (in Unicode characters) for `descriptionText`. Leave empty for the full description."
          },
          "enrichEmails": {
            "title": "Enrich with employer contact emails (experimental, billed per email)",
            "type": "boolean",
            "description": "If enabled, tries to find a contact email for each employer by reading its own website (the vacancy page often links it) or discovering it by name. Adds contactEmail + contactWebsite columns plus a detailed emailEnrichment object. Best-effort, billed per contact email found; only charged when an email is returned, never for misses.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (only return vacancies not seen on previous runs)",
            "type": "boolean",
            "description": "When enabled, vacancies whose ID has already been delivered to you are silently skipped (no detail page is fetched and no charge applies for them). The first run after enabling monitoring returns every match — that builds your baseline. Every subsequent run returns only new postings. Combine with Apify's scheduler for a 'jobs posted since last run' feed.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Reset monitoring state (one-shot)",
            "type": "boolean",
            "description": "One-shot toggle: clear the saved 'vacancies already seen' record at the start of this run. Use this when you change search URL, want to rebuild the baseline, or recover from a missed delivery. Has no effect when monitoring mode is off.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum items to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the number of vacancies collected. Note: hh.ru serves at most 2,000 results per search query (40 pages × 50) — narrow by region or keyword to reach deeper inventory.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of vacancy pages processed in parallel.",
            "default": 10
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of vacancy pages processed in parallel.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Number of retries before a failed request is given up.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — the actor already routes all traffic through its own built-in residential proxy at no extra cost to you (hh.ru blocks datacenter IPs). Only set this if you want to use your own proxies."
          },
          "urls": {
            "title": "urls (alias for startUrls)",
            "type": "array",
            "description": "Alias for `startUrls`.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "keywords (alias for searchKeywords)",
            "type": "array",
            "description": "Alias for `searchKeywords`.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "queries (alias for searchKeywords)",
            "type": "array",
            "description": "Alias for `searchKeywords`.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "query (alias for searchKeywords)",
            "type": "string",
            "description": "Single search keyword alias for `searchKeywords`."
          },
          "location": {
            "title": "location (alias for area)",
            "type": "string",
            "description": "Alias for `area` (numeric hh.ru area ID or major city/country name)."
          },
          "maxResults": {
            "title": "maxResults (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`."
          },
          "concurrency": {
            "title": "concurrency (alias for maxConcurrency)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxConcurrency`."
          },
          "scrapeDetails": {
            "title": "scrapeDetails (alias for includeDetails)",
            "type": "boolean",
            "description": "Alias for `includeDetails`."
          },
          "compactOutput": {
            "title": "compactOutput (alias for compact)",
            "type": "boolean",
            "description": "Alias for `compact`."
          },
          "omitEmptyFields": {
            "title": "omitEmptyFields (alias for excludeEmptyFields)",
            "type": "boolean",
            "description": "Alias for `excludeEmptyFields`."
          },
          "proxyConfiguration": {
            "title": "proxyConfiguration (alias for proxy)",
            "type": "object",
            "description": "Alias for `proxy`."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}