{
  "openapi": "3.0.1",
  "info": {
    "title": "ChinaHR Jobs Scraper — 中华英才网招聘数据",
    "description": "Export public ChinaHR job listings with rich salary, location, experience, education, employer, and detail fields.",
    "version": "2.2",
    "x-build-id": "OckXzbgsbJTdcLsMn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jobsapi~chinahr-jobs-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jobsapi-chinahr-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~chinahr-jobs-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jobsapi-chinahr-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~chinahr-jobs-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jobsapi-chinahr-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": {
          "maxItems": {
            "title": "Maximum jobs",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum detail-verified matching jobs to save.",
            "default": 3
          },
          "pageSize": {
            "title": "Jobs per results page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of jobs requested per source results page.",
            "default": 20
          },
          "maxPages": {
            "title": "Maximum results pages",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Maximum source search pages to read.",
            "default": 1
          },
          "keyword": {
            "title": "Job or company keywords",
            "type": "string",
            "description": "Search using the website’s keyword filter. Leave empty for all jobs.",
            "default": ""
          },
          "workType": {
            "title": "Employment type",
            "type": "string",
            "description": "Optional employment-type value published by ChinaHR. Leave empty for all types."
          },
          "locationId": {
            "title": "Location filter",
            "type": "string",
            "description": "ChinaHR’s published location filter value. The saved default is 1; leave other filters empty to use the default search.",
            "default": "1"
          },
          "minSalary": {
            "title": "Minimum salary filter",
            "type": "string",
            "description": "Optional minimum-pay value from ChinaHR’s search filters."
          },
          "maxSalary": {
            "title": "Maximum salary filter",
            "type": "string",
            "description": "Optional maximum-pay value from ChinaHR’s search filters."
          },
          "educationId": {
            "title": "Education filter",
            "type": "string",
            "description": "Optional value from ChinaHR’s education filter."
          },
          "experienceId": {
            "title": "Experience filter",
            "type": "string",
            "description": "Optional value from ChinaHR’s experience filter."
          },
          "industryId": {
            "title": "Industry filter",
            "type": "string",
            "description": "Optional value from ChinaHR’s industry filter."
          },
          "companySizeId": {
            "title": "Company size filter",
            "type": "string",
            "description": "Optional value from ChinaHR’s company-size filter."
          },
          "sortBy": {
            "title": "Website result order",
            "type": "string",
            "description": "Optional result-order value published by ChinaHR. Leave empty to keep the website’s default."
          },
          "locationContains": {
            "title": "Location contains",
            "type": "string",
            "description": "Keep verified jobs whose published location contains this text."
          },
          "employerContains": {
            "title": "Employer name contains",
            "type": "string",
            "description": "Keep verified jobs whose employer name contains this text."
          },
          "sortResultsBy": {
            "title": "Saved result order",
            "enum": [
              "sourceOrder",
              "salaryHigh",
              "salaryLow",
              "employer",
              "jobName"
            ],
            "type": "string",
            "description": "Keep source order or sort by employer, title, or comparable published pay. Unknown pay units remain in source order.",
            "default": "sourceOrder"
          },
          "maxRequests": {
            "title": "Maximum website requests",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "Total bound across source pages, published scripts, searches and job details.",
            "default": 20
          },
          "requestTimeoutMs": {
            "title": "Request timeout (milliseconds)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time to wait for one source request.",
            "default": 30000
          },
          "requestDelayMs": {
            "title": "Pause between requests (milliseconds)",
            "minimum": 250,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimum pause between sequential source requests.",
            "default": 750
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings selected once before the source requests. The Actor stops on source denials and never changes proxy groups to retry a barrier."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}