{
  "openapi": "3.0.1",
  "info": {
    "title": "Zhaopin Jobs Scraper / 智联招聘 — China Jobs & Salary API",
    "description": "Scrape public Zhaopin (智联招聘) China job listings with normalized monthly CNY salary ranges, company metadata, skills, education, and experience. Keyword/city or /sou URL search via Zhaopin public API. MCP-ready, no login.",
    "version": "0.1",
    "x-build-id": "P7gXluLXy5bIjwuXb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~zhaopin-jobs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-zhaopin-jobs-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/khadinakbar~zhaopin-jobs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-zhaopin-jobs-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/khadinakbar~zhaopin-jobs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-zhaopin-jobs-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": {
          "query": {
            "title": "Search keyword",
            "type": "string",
            "description": "Use this to search Zhaopin by role, skill, or title such as 'Python', '产品经理', or '销售'. Defaults to 'Python' for the quality sample. This is not a Start URL — paste URLs into Start URLs instead.",
            "default": "Python"
          },
          "queries": {
            "title": "Batch keywords",
            "type": "array",
            "description": "Optional list of keywords. Each keyword is combined with every selected city. Leave empty to use Search keyword only.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "city": {
            "title": "City",
            "enum": [
              "530",
              "538",
              "765",
              "763",
              "653",
              "801",
              "736",
              "635",
              "854",
              "639",
              "551",
              "531",
              "489"
            ],
            "type": "string",
            "description": "Zhaopin city code for a single-city search. Defaults to Beijing (530). Use Batch cities for multi-city runs. Codes match Zhaopin jl/cityId values.",
            "default": "530"
          },
          "cities": {
            "title": "Batch cities",
            "type": "array",
            "description": "Optional list of Zhaopin city codes. Each city is combined with every batch keyword. Leave empty to use the single City above.",
            "items": {
              "type": "string",
              "enum": [
                "530",
                "538",
                "765",
                "763",
                "653",
                "801",
                "736",
                "635",
                "854",
                "639",
                "551",
                "531",
                "489"
              ],
              "enumTitles": [
                "Beijing / 北京",
                "Shanghai / 上海",
                "Shenzhen / 深圳",
                "Guangzhou / 广州",
                "Hangzhou / 杭州",
                "Chengdu / 成都",
                "Wuhan / 武汉",
                "Nanjing / 南京",
                "Xi'an / 西安",
                "Suzhou / 苏州",
                "Chongqing / 重庆",
                "Tianjin / 天津",
                "All China / 全国"
              ]
            },
            "default": []
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional public Zhaopin /sou search URLs containing jl (city) and kw (keyword). When provided, they take precedence over guided keyword/city fields. Non-Zhaopin URLs are ignored.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "education": {
            "title": "Education filter",
            "enum": [
              "",
              "3",
              "4",
              "5",
              "6",
              "7"
            ],
            "type": "string",
            "description": "Optional Zhaopin education code applied to the public search API. Leave empty for any education. Codes: 3 junior college, 4 bachelor, 5 master, 6 MBA/EMBA, 7 doctorate.",
            "default": ""
          },
          "experience": {
            "title": "Experience filter",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Optional Zhaopin work-experience code sent to the public search API. Leave empty for any experience.",
            "default": ""
          },
          "employmentType": {
            "title": "Employment type",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Optional employment-type code for the public search API. Leave empty for any type.",
            "default": ""
          },
          "salary": {
            "title": "Salary band",
            "type": "string",
            "description": "Optional salary filter. Use a Zhaopin legacy band code or a monthly CNY range like '15001,25000'. Leave empty for any salary.",
            "default": ""
          },
          "companyType": {
            "title": "Company type code",
            "type": "string",
            "description": "Optional company-type filter code passed through to Zhaopin search. Leave empty for any company type.",
            "default": ""
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum validated jobs written and billed in this run (1–2000). Default 20 for the quality sample; each persisted job costs $0.003 plus platform usage.",
            "default": 20
          },
          "pageSize": {
            "title": "Page size",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "Jobs requested per Zhaopin API page (10–90). Default 60. Higher values reduce request count but may be truncated by the upstream API.",
            "default": 60
          },
          "includeDescription": {
            "title": "Include job summary",
            "type": "boolean",
            "description": "Keep the public job summary/description snippet when Zhaopin returns one. Defaults to true. Disable for a leaner salary/company-only feed.",
            "default": true
          },
          "responseFormat": {
            "title": "Response format",
            "enum": [
              "concise",
              "detailed"
            ],
            "type": "string",
            "description": "Caps description length for agent workflows: concise ≈800 chars, detailed ≈5000. Other fields stay identical.",
            "default": "concise"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy used only when a direct Zhaopin API call returns a verification/empty page. Defaults to Residential CN. Direct requests run first to minimize proxy cost.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "CN"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}