# Liepin Scraper 猎聘: China White-Collar Jobs & Salary Data (`jobsapi/liepin-jobs-search-scraper`) Actor

Extract structured public Liepin job listings and details with bounded pagination, deduplication, and explicit access diagnostics.

- **URL**: https://apify.com/jobsapi/liepin-jobs-search-scraper.md
- **Developed by:** [Jobs API](https://apify.com/jobsapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 liepin job records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Liepin Jobs Scraper do?

Liepin Jobs Scraper extracts structured, public job data from [Liepin](https://www.liepin.com/), a major Chinese white-collar recruitment platform. It works as a bounded **Liepin jobs API alternative** for keyword searches and public detail URLs. The Actor never logs in, solves CAPTCHAs, or invents values. The Dataset contains complete job records; run diagnostics and lifecycle outcomes are saved in `OUTPUT_SUMMARY` in the default key-value store.

### Why use Liepin Jobs Scraper?

- Collect job titles, employers, locations, salary text, requirements, dates, and source URLs.
- Follow public detail links for richer descriptions when requested.
- Limit records and pages so every run has a predictable scope.
- Deduplicate jobs by Liepin job ID.
- Schedule runs, monitor failures, and access results through the Apify API and integrations.
- Keep access-control and extraction diagnostics out of the job Dataset.

### What data can Liepin Jobs Scraper extract?

| Field | Type | Description |
| --- | --- | --- |
| `jobId` | string | Public Liepin job identifier |
| `title` | string | Job title |
| `company` | string | Hiring company |
| `location` | string | Public job location |
| `salaryText` | string | Salary text shown by Liepin |
| `description` | string | Sanitized public job description |
| `datePosted` | string | Public posting date when available |
| `jobUrl` | string | Canonical public job URL |
| `accessStatus` | string | `success` for every complete job record |

### How to scrape Liepin jobs

1. Choose `search`, `single`, or `multiple` mode.
2. For search mode, enter a keyword and optionally a public Liepin search URL.
3. For detail modes, add one or more public Liepin job URLs.
4. Set `maxItems` and `maxPages` to bound requests and cost.
5. Keep `fetchDetails` enabled when descriptions are important.
6. Start the Actor and download the resulting dataset.

### How much will it cost to scrape Liepin?

This Actor consumes Apify compute while it makes bounded HTTP requests. Cost depends on the number of pages, detail requests, target response time, and your Apify plan. Start with `maxItems: 3` and `maxPages: 1`; increase those limits only after confirming the target is returning usable records. Access diagnostics normally finish quickly and avoid wasteful retries.

### Input

See the input tab for full configuration options. `query` controls keyword search, `urls` accepts request-list entries for detail modes, `maxItems` limits complete jobs, and `maxPages` limits official public search pages. `useApi` enables Liepin's own public search endpoint when its HTML page is only a JavaScript shell. Request timeouts are capped at 120 seconds.

Example:

```json
{
  "mode": "search",
  "query": "software",
  "maxItems": 3,
  "maxPages": 1,
  "fetchDetails": true,
  "useApi": true
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. A successful item resembles:

```json
{
  "recordType": "liepin-job",
  "jobId": "source-job-id",
  "title": "Software Engineer",
  "company": "Example Company",
  "location": "Shanghai",
  "jobUrl": "https://www.liepin.com/job/example.shtml",
  "status": "success",
  "accessStatus": "success"
}
```

If the public target blocks or withholds job data, the Actor records a diagnostic with a source-backed `errorCode` in `OUTPUT_SUMMARY`; it does not emit a diagnostic Dataset row.

The Dataset contains only complete `liepin-job` records. Diagnostics are stored in the `diagnostics` array in the default key-value store's `OUTPUT_SUMMARY` record. That summary keeps Apify's run `status` (`SUCCEEDED` or `FAILED`) separate from `resultStatus`:

| `resultStatus` | Meaning |
| --- | --- |
| `COMPLETE` | All stored job records were written successfully with no extraction diagnostics. |
| `LIMITED` | At least one job record was stored and the run had a diagnostic or a later write/runtime/finalization issue. |
| `SKIPPED` | A confirmed Liepin first-party access barrier stopped the run before any job record was stored. |
| `DEFERRED` | The result was ambiguous, empty without explicit source evidence, or affected by a transport/tool outcome. |
| `NO_DATA` | Liepin explicitly confirmed that the requested search has zero results; `emptyResultEvidence` records the source URL and the matching empty-state text or payload fields. |
| `FAILED` | A fatal failure occurred before any job record was stored. |

Dataset counts in the summary advance only after an awaited Dataset write resolves. If a later write fails, already stored job records remain and the outcome is `SUCCEEDED` / `LIMITED`.

### Tips and advanced options

- Keep runs small while testing a new keyword or network location.
- Disable `fetchDetails` only when public search cards already contain complete descriptions.
- Use the run summary in the default key-value store to inspect request counts and outcomes.
- A zero-job diagnostic in `OUTPUT_SUMMARY` is preferable to incomplete or fabricated Dataset rows. The Actor does not retry after a confirmed access barrier.

### FAQ, disclaimer, and support

#### Does this Actor bypass Liepin access controls?

No. It uses ordinary public pages and Liepin's public web endpoint. It does not authenticate, solve challenges, or bypass a block.

#### Why did I receive a diagnostic instead of jobs?

Liepin may return a JavaScript shell, region-dependent response, rate limit, or verification response. Inspect the `diagnostics` array and request receipts in `OUTPUT_SUMMARY`. Ambiguous empty or transport outcomes are `DEFERRED`; only an explicit first-party denial or challenge is `SKIPPED`.

This Actor extracts only publicly available job information. Results may still contain personal data included by the source. Personal data is protected by the GDPR and other regulations; scrape it only with a legitimate purpose and consult legal counsel if unsure. Follow Liepin's terms and applicable law. Use the Actor Issues tab for reproducible problems and the API tab for programmatic access.

# Actor input Schema

## `mode` (type: `string`):

Use search for a keyword search, single for one detail URL, or multiple for a bounded list of detail URLs.

## `searchUrl` (type: `string`):

Public Liepin search page. The query is written to its key parameter.

## `query` (type: `string`):

Keyword used in search mode.

## `keywords` (type: `array`):

Optional keyword list; the first non-empty value is used when query is omitted.

## `urls` (type: `array`):

Public Liepin detail URLs for single or multiple mode.

## `maxItems` (type: `integer`):

Maximum complete job records to emit.

## `maxPages` (type: `integer`):

Maximum number of official public search-result pages to request.

## `fetchDetails` (type: `boolean`):

Follow public detail links when search results expose them.

## `useApi` (type: `boolean`):

Attempt Liepin's official public search endpoint when the HTML shell has no rendered records.

## `timeoutMs` (type: `integer`):

Maximum time per public request.

## `userAgent` (type: `string`):

Optional transparent browser user-agent string.

## `acceptLanguage` (type: `string`):

Optional language preference for public requests.

## Actor input object example

```json
{
  "mode": "search",
  "searchUrl": "https://www.liepin.com/zhaopin/?key=software",
  "query": "software",
  "maxItems": 3,
  "maxPages": 1,
  "fetchDetails": true,
  "useApi": true,
  "timeoutMs": 30000,
  "acceptLanguage": "zh-CN,zh;q=0.9,en;q=0.8"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jobsapi/liepin-jobs-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("jobsapi/liepin-jobs-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call jobsapi/liepin-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/liepin-jobs-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cjhcsaSJm8wc5Djp8/builds/HxdB24oXVv7CwsQQY/openapi.json
