# Liepin Scraper 猎聘: China Jobs, Salaries & Companies (`zaiq/liepin-scraper`) Actor

Jobs from Liepin (猎聘) for any keyword, city or search link: title, salary as numbers, company, industry and size, city and district, experience, education, company or headhunter posting, and with details the full description, address and posting date. $1.30 per 1,000 jobs.

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

## Pricing

from $1.04 / 1,000 jobs

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Liepin Scraper: China jobs, salaries and companies from 猎聘

Search **Liepin (猎聘)** by **keyword** and **city**, or paste a **liepin.com search link**, and get **one row per job**: **title, salary as numbers (CNY), company, industry and size, city and district, experience, education, whether a company or a headhunter posted it, and when it was last refreshed**. Turn on **details** to add the **full description, first posting date, address, headcount, registered capital and business scope**. No login, no cookies.

It reads Liepin's own search, about 400 jobs per query; an all-China search that needs more is split across provinces automatically, with duplicates removed. Promoted cards that ignore your filters are left out.

**Never people:** recruiter names, titles, photos and ids are dropped, and phone numbers, emails and WeChat ids in descriptions are removed. **Tested:** java across China returned 700 jobs in one run, and 57 of 60 jobs got full details. **$1.30 per 1,000 jobs**; details cost nothing extra; searches with no jobs cost nothing.

### What you get

| Field | What it holds |
|---|---|
| The job | `jobId`, `title`, `url`, `postedBy` (company or headhunter), `refreshedAt` |
| Pay | `salaryText` as Liepin shows it, `salaryMinCny`, `salaryMaxCny`, `salaryPeriod`, `salaryMonths` (for example 14 for 14薪) |
| Requirements | `experience`, `education` |
| The company | `company`, `companyId`, `companyUrl`, `companySize`, `industry`, `companyLogo` |
| Where | `city`, `district`, `area` |
| With details | `description`, `postedAt`, `updatedAt`, `address`, `headcount`, `registeredCapital`, `businessScope` |
| Where it came from | `searchTerm`, `searchCity`, `rank` |

### What people use it for

- **Salary benchmarks:** pay ranges by role, city and company size, including the 13th-16th month
- **Hiring trackers:** which companies and headhunters are hiring for which roles
- **Labour-market research:** demand for skills across Chinese cities
- **B2B sales signals:** companies that are hiring, with industry, size and registered capital
- **AI agents:** let a model pull Chinese job data by keyword and city

### How to use it

1. Type one or more **searches** and **cities**, or paste **Liepin search links**.
2. Set **jobs per search** and, if you want descriptions, turn on **Add job details**.
3. Click **Start** and export the jobs as JSON, CSV or Excel.

### Input

| Field | Example | Notes |
|---|---|---|
| Searches | `数据分析` | Keywords in Chinese or English, one per line |
| Cities | `上海` | Chinese or English names or Liepin codes; empty = all of China |
| Liepin search links | `https://www.liepin.com/zhaopin/?key=java&dq=020` | Keyword, city and filters are used as they are |
| Jobs per search | `100` | Up to 10,000 |
| Add job details | `false` | Description, address, posting date, headcount, company register data; free, slower |
| Posted by | `any` | Companies only or headhunters only |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "jobId": "100000001",
  "title": "数据分析经理",
  "url": "https://www.liepin.com/job/100000001.shtml",
  "company": "示例科技",
  "companyId": "1000001",
  "companyUrl": "https://www.liepin.com/company/1000001/",
  "companySize": "500-999人",
  "industry": "互联网",
  "companyLogo": null,
  "city": "上海",
  "district": "浦东新区",
  "area": "上海-浦东新区",
  "salaryText": "25-40k·14薪",
  "salaryMinCny": 25000,
  "salaryMaxCny": 40000,
  "salaryPeriod": "month",
  "salaryMonths": 14,
  "experience": "5-10年",
  "education": "本科",
  "postedBy": "company",
  "refreshedAt": "2026-11-19T10:15:00+08:00",
  "description": "工作职责：\n1. 负责业务数据分析……",
  "postedAt": "2026-11-02T09:00:00+08:00",
  "updatedAt": "2026-11-19T10:15:00+08:00",
  "address": "上海-浦东新区示例路1号",
  "headcount": 2,
  "registeredCapital": "1000万人民币",
  "businessScope": "技术开发、技术咨询……",
  "searchTerm": "数据分析",
  "searchCity": "上海",
  "rank": 1,
  "scrapedAt": "2026-11-20T07:00:00Z"
}
```

A record named `SUMMARY` in the run's key-value store lists every search with its job count and the total Liepin reports, cities or links that were not understood, duplicates and promoted cards skipped, how many job pages were read for details, how many jobs were charged and the traffic used.

### Pricing

- **$0.0013 per job** ($1.30 per 1,000; $1.17 on Silver and $1.04 on Gold and higher plans)
- Job details cost nothing extra
- Searches with no jobs and bad inputs cost nothing
- Apify's start fee is $0.00005 per run

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| 100 jobs for one search in one city | $0.13 |
| 1,000 jobs with details | $1.30 |
| 5 searches x 4 cities x 100 jobs, daily | $2.60 a day |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Details take about a second a job; leave them off for fast salary and demand counts.
- Liepin's own filters (published within, education, company size and type) are in the input; for anything else, set it on liepin.com and paste the link.
- refreshedAt is when the job was last refreshed; postedAt (with details) is when it was first posted.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/liepin-scraper").call(run_input={"searches": ["数据分析"], "cities": ["上海"], "maxItemsPerSearch": 100})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/liepin-scraper').call({"searches": ["数据分析"], "cities": ["上海"], "maxItemsPerSearch": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~liepin-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searches": ["数据分析"], "cities": ["上海"], "maxItemsPerSearch": 100}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/liepin-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "Product manager jobs in Shenzhen at companies with 1,000+ staff, with salary ranges". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- About 400 jobs per query on Liepin's search (all-China searches are split across provinces to go further).
- Some headhunter postings hide the employer's name (for example 某上海大型食品公司); they are kept as published.
- A few job pages may not give details when Liepin limits page views; their search fields are still returned and SUMMARY counts them.
- People are never returned: no recruiter names, photos, ids or contact details.
- Public data only: you are responsible for how you use it under Liepin's terms, China's PIPL and the laws that apply to you.

### FAQ

**Do I need a Liepin account?**

No. Nothing to log in to and no cookies to paste.

**Why are recruiter names missing?**

On purpose: they are personal data and are never returned.

**What does postedBy mean?**

company for a job the employer posted, headhunter for a 猎头 posting.

**Why are some company names vague?**

Headhunters often hide the client's name; the posting is kept as Liepin shows it.

**I use another Liepin scraper. Do I need to change my input?**

Usually not: urls, max_page, keywords, cities, startUrls, maxItems and includeJobDetail are understood too.

### Related Actors from Zaiq

- [51job-scraper](https://apify.com/zaiq/51job-scraper): new 51job (前程无忧) jobs with full descriptions
- [ats-jobs-scraper](https://apify.com/zaiq/ats-jobs-scraper): jobs from company career boards
- [indeed-jobs-scraper](https://apify.com/zaiq/indeed-jobs-scraper): Indeed jobs

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: liepin scraper, 猎聘 爬虫, china jobs scraper, liepin api, chinese job listings, china salary data.

# Actor input Schema

## `searches` (type: `array`):

Keywords as you would type them into Liepin's search box (Chinese or English), one per line.

## `cities` (type: `array`):

Cities, provinces or districts in Chinese or English (上海, Shenzhen, 广东) or Liepin city codes (020). Each search runs in each city. Leave empty for all of China.

## `startUrls` (type: `array`):

Optional. www.liepin.com or m.liepin.com search links: keyword, city and filters are used as they are.

## `maxItemsPerSearch` (type: `integer`):

The most jobs to return for each search in each city ($0.0013 each). Liepin shows about 400 a query; an all-China search that needs more is split across provinces.

## `includeDetails` (type: `boolean`):

Also read each job's page: full description, first posting date, address, headcount, registered capital and business scope. Free, slower.

## `postedBy` (type: `string`):

Company postings or headhunter (猎头) postings.

## `pubTime` (type: `string`):

Liepin's own published-within filter.

## `eduLevel` (type: `string`):

Liepin's education filter.

## `compScale` (type: `string`):

Liepin's company size filter.

## `compKind` (type: `string`):

Liepin's company type filter.

## `industry` (type: `string`):

Optional. Liepin's industry code as in a search link, for example H04$H0030 for banking.

## `workYearCode` (type: `string`):

Optional. Liepin's experience code: 1 (graduates), 0$1, 1$3, 3$5, 5$10, 10$999.

## Actor input object example

```json
{
  "searches": [
    "数据分析"
  ],
  "cities": [
    "上海"
  ],
  "maxItemsPerSearch": 100,
  "includeDetails": false,
  "postedBy": "any",
  "pubTime": "",
  "eduLevel": "",
  "compScale": "",
  "compKind": ""
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset: the jobs.

## `summary` (type: `string`):

What each search returned, and notes.

# 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 = {
    "searches": [
        "数据分析"
    ],
    "cities": [
        "上海"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/liepin-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 = {
    "searches": ["数据分析"],
    "cities": ["上海"],
}

# Run the Actor and wait for it to finish
run = client.actor("zaiq/liepin-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 '{
  "searches": [
    "数据分析"
  ],
  "cities": [
    "上海"
  ]
}' |
apify call zaiq/liepin-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zaiq/liepin-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/SotoFTSMPXxpdnBxP/builds/iDpBJBezh19847NOD/openapi.json
