# Lagou Job Scraper (`saswave/lagou-job-scraper`) Actor

$0.9 / 1000 results. 拉勾网 Scraper. High-speed web scraper specifically tailored for Lagou (lagou.com), China's leading tech and internet-focused job portal. Extract detailed position descriptions, corporate product portfolios, recruiter contact info, email, phonenumber, salary expectations

- **URL**: https://apify.com/saswave/lagou-job-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** Jobs, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### Lagou Job Scraper

拉勾网 Scraper. High-speed web scraper specifically tailored for Lagou (lagou.com), China's leading tech and internet-focused job portal.

Extract detailed position descriptions, corporate product portfolios, recruiter contact info, email, phonenumber, salary expectations, and precise office geolocation coordinates

### 🔹 Features

Detailed Tech Requisitions: Extract target position titles (positionFullName), full responsibility/requirement text (positionDetail), experience levels, and required degrees.

Corporate Ecosystem Profiles: Capture tech company scale (companySize), financing stage (financeStage), overview (companyProfile), and full product suite catalogs (e.g., Toutiao, Douyin, Lark).

Compensation & Benefits: Extract salary ranges (salary), calculated annual salary estimates (yearSalary), and corporate benefit tags (labels).

HR & Recruiter Telemetry: Retrieve recruiter contact profiles (hrInfo), direct email addresses (receiveEmail), response rate metrics, and recent activity timestamps.

Geocoding & Office Locations: Capture exact district data, office addresses (positionAddress), and exact map coordinates (positionLng, positionLat).

### 🔹 Use Cases

Tech Ecosystem Mapping: Track hiring velocity, tech stack requirements, and team growth across China's major tech enterprises (e.g., ByteDance, Tencent, Alibaba).

Competitive Compensation Benchmarking: Analyze salary brackets (salary, yearSalary) across specific technical or HR roles in mainland China.

Recruiter & HR Outreach: Sourcing direct hiring manager contacts and recruitment channels for HR technology vendors.

Product Expansion Tracking: Monitor tech company product launches and department additions by tracking open requisitions.

### OUTPUT

From Search Url

```json
{
  "id": "12822341",
  "salary": "9k-15k",
  "company": "立讯技术",
  "name": "光学工程师(J10100)",
  "company_id": "147471549",
  "hr_id": "28010561",
  "url": "https://www.lagou.com/wn/jobs/12822341.html?show=96765a2a913c407f88f4d61be56dee21",
  "tags": [
    "前程无忧"
  ],
  "time": "21:56发布",
  "company_url": "https://www.lagou.com/gongsi/v1/8c88eac4326fb7511716f513c36aa81fc71bfb76918f9228357f643cc6066dbc.html",
  "industry": "其他 / 不需要融资 / 2000人以上",
  "company_logo": "https://www.lagou.com/gongsi/v1/8c88eac4326fb7511716f513c36aa81fc71bfb76918f9228357f643cc6066dbc.html",
  "is_company_verified": false,
  "skills": [
    "9k-15k",
    "经验不限 / 硕士"
  ],
  "company_benefits": "“五险一金,免费班车,出国机会”"
}
```

From Direct Url

```json
{
  "isOnline": null,
  "judgeResult": null,
  "isActive": false,
  "haveCollect": false,
  "isJobDetailPage": true,
  "isSpeedForbidden": false,
  "canDeliver": true,
  "resumeName": "",
  "buttonType": "DELIVER_RESUME",
  "userLevel": "G1",
  "isOpendPlus": false,
  "companyNature": 1,
  "canTalk": true,
  "plusTextTip": false,
  "hrLastActiveTime": 1671103056000,
  "publisherReplayInfo": "",
  "userTextTip": null,
  "haveDeliver": false,
  "isAdmin": false,
  "hrImpress": {
    "userId": null,
    "isProtected": false,
    "impressTags": [
      "Ta很神秘"
    ],
    "resumeProcessLevel": "暂无",
    "resumeProcessRate": 0,
    "resumeProcessTime": 0,
    "chatLevel": "暂无",
    "responseRate": -1,
    "responseTime": -1,
    "responseTimeUnit": "--",
    "activePeriod": "暂无",
    "activeTime": -1,
    "activeTimePrefix": null
  },
  "isGT3DaysInactive": false,
  "publisherActiveTag": "累计处理200+投递",
  "hrInfo": {
    "userId": 22016005,
    "portrait": "i/image6/M01/7A/90/Cgp9HWI3yu2AAtZBAACeGEp-ay0203.png",
    "realName": "Karen",
    "positionName": "HR",
    "phone": "17710915193",
    "receiveEmail": "kehan.chen@bytedance.com",
    "complete": true,
    "nameInitial": "K",
    "randomColor": 2
  },
  "job": {
    "positionFullName": "招聘专家-Data&amp;AI Lab(商业化研发)",
    "id": 9185855,
    "companyId": 62,
    "companyName": "抖音视界（北京）有限公司",
    "companyShortName": "字节跳动",
    "isApprove": true,
    "logo": "10/a245ba93a25f4defbe9cd27fd9cb69a0.png",
    "companyFeatures": "我们的使命：激发创造，丰富生活。",
    "financeStage": "D轮及以上",
    "industryField": "内容资讯,短视频",
    "companySize": "2000人以上",
    "companyUrl": "http://jobs.bytedance.com",
    "products": [
      {
        "id": 23,
        "companyId": 62,
        "productUrl": "https://www.toutiao.com/",
        "productProfile": "今日头条是一款个性化资讯推荐引擎产品，致力于连接人与信息，让优质、丰富的信息得到高效、精准的分发，为用户创造价值。",
        "product": "今日头条",
        "productPicUrl": "i/image/M00/6F/8F/Ciqc1F-2KDaAKnwjAACqm5-GbMM188.png",
        "type": 0,
        "createTime": "2013-07-17 19:04:41",
        "isEnable": 0,
        "productType": "网站,客户端,移动app"
      },
      {
        "id": 152621,
        "companyId": 62,
        "productUrl": "https://www.douyin.com/",
        "productProfile": "抖音是一个帮助用户表达自我，记录美好生活的短视频平台。截至 2020年 8 月，抖音日活跃用户超过 6 亿，并继续保持高速增长。\n<p></p>\n<p><br /></p>",
        "product": "抖音",
        "productPicUrl": "10/7dac399c229844cbac6d183c12b74c30.png",
        "type": 0,
        "createTime": "2019-01-31 20:19:37",
        "isEnable": 0,
        "productType": "移动app"
      },
      {
        "id": 152622,
        "companyId": 62,
        "productUrl": "https://www.ixigua.com/",
        "productProfile": "西瓜视频是一个开眼界、涨知识的视频 ，作为国内领先的中视频平台，它源源不断地为不同人群提供优质内容，让人们看到更丰富和有深度的世界，收获轻松的获得感，点亮对生活的好奇心。\n<p></p>\n<p><br /></p>",
        "product": "西瓜视频",
        "productPicUrl": "10/3f21e108b63646cdbb7d16793d663d3f.png",
        "type": 0,
        "createTime": "2019-01-31 20:21:09",
        "isEnable": 0,
        "productType": "客户端,移动app"
      },
      {
        "id": 170860,
        "companyId": 62,
        "productUrl": "https://www.volcengine.com/",
        "productProfile": "火山引擎是字节跳动旗下云服务平台，将字节跳动快速发展中积累的增长方法、技术能力和工具开放给外部企业，提供云基础、视频与内容分发、大数据、人工智能、开发与运维等服务，帮助企业在数字化升级中实现持续增长。\n<p></p>\n<p><br /></p>",
        "product": "火山引擎",
        "productPicUrl": "10/f3867eccc200480cb51f4547a313a4b6.png",
        "type": 0,
        "createTime": "2020-11-19 16:16:48",
        "isEnable": 0,
        "productType": "移动app"
      },
      {
        "id": 170861,
        "companyId": 62,
        "productUrl": "https://www.feishu.cn/",
        "productProfile": "<p>飞书作为先进企业协作与管理平台，是字节跳动在B端与企业服务领域的重要布局之一。飞书旗下包括飞书 Office、飞书 People、飞书项目、飞书审批合同等产品。飞书 Office 创新性地将即时沟通、日历、在线文档、云盘、 应用中心等功能整合于一体，为企业提供更高效的沟通与协作解决方案；飞书 People 打通飞书人事、飞书招聘、飞书绩效与飞书 OKR 等多个人事管理体系，与飞书 Office 共同组成企业人与事的管理双中心。</p>\n<p></p>\n<p><br /></p>",
        "product": "飞书",
        "productPicUrl": "10/1d82b98502c745fd82baf57c462e7539.png",
        "type": 0,
        "createTime": "2020-11-19 16:23:28",
        "isEnable": 0,
        "productType": "客户端,移动app"
      }
    ],
    "labels": [
      "弹性工作",
      "就近租房补贴",
      "年度体检",
      "补充商保",
      "免费健身设施",
      "家庭关爱假",
      "家属自选保险"
    ],
    "positionName": "招聘专家-Data&amp;AI Lab(...",
    "positionType": "人力资源",
    "department": "",
    "jobNature": "全职",
    "workAddress": "北京",
    "salary": "15k-30k",
    "salaryMonth": 0,
    "positionNum": 0,
    "workYear": "3-5年",
    "education": "本科",
    "positionAdvantage": "六险一金",
    "email": null,
    "positionDetail": "职位职责：\n<br>1、支持字节跳动研发团队，作为接口人满足业务团队日常招聘需求；\n<br>2、负责端到端招聘流程管理，深刻理解业务，把握招聘需求，为快速发展的团队搭建优秀的人才梯队；\n<br>3、参与/负责团队内高端人才寻访，以及面试，offer，入职跟进等全流程管理；\n<br>4、管理招聘渠道，如猎头/招聘网站等资源管理；\n<br>5、负责招聘相关项目，如校园招聘、人才mapping、高端人才招聘等；\n<br>6、分析招聘数据及漏斗，提升招聘有效性。\n<br>职位要求：\n<br>1、**本科及以上学历 ，5年以上招聘领域经验，甲乙方皆可；\n<br>2、良好的项目执行能力和推进能力；\n<br>3、优秀的沟通能力和解决问题能力，较高的人际敏感度和影响力；\n<br>4、热爱招聘，自我驱动力强；\n<br>5、有IT/互联网研发相关招聘经验者优先；有批量招聘经验者优先；有高端招聘经验者优先；\n<br>6、有行业头部研发人才**经验者优先；\n<br>7、有海外人才回流招聘经验者优先。",
    "positionRequest": null,
    "otherLabels": null,
    "publishTime": "21:53",
    "rewardMoney": null,
    "isExpired": 0,
    "companyProfile": "<p>字节跳动成立于2012年3月，公司使命为“Inspire Creativity, Enrich Life（激发创造，丰富生活）”。公司业务覆盖150个国家和地区，拥有15万名员工。</p>\n<p><br /></p>字节跳动在全球推出了多款有影响力的产品，包括今日头条、抖音、西瓜视频、飞书、Lark、PICO、剪映、TikTok等。截至2021年6月，字节跳动旗下产品全球月活跃用户数超过19亿。",
    "hasDeliverResume": false,
    "positionDetailPV": 0,
    "deliverCount": 0,
    "publishUserId": 22016005,
    "positionAddress": "北三环西路43号中航广场1号楼（矮楼）",
    "positionLng": "116.328708",
    "positionLat": "39.971819",
    "isEnable": 1,
    "province": "北京",
    "city": "北京",
    "district": "海淀区",
    "bizArea": null,
    "giscode": "010114000",
    "upgradeAddressState": true,
    "authenticated": true,
    "approve": 2,
    "positionLeader": null,
    "skillsRequire": null,
    "mdsPositionId": null,
    "showEdit": false,
    "is51Job": false,
    "encryptId": "0cf4b066a66f16f65624f83cd374ea60",
    "extraMsg": null,
    "interviewMsg": "",
    "addExtraPoint": null,
    "workTime": null,
    "workTimeDesc": null,
    "isManage": null,
    "teamScope": null,
    "interviewWay": null,
    "interviewCount": null,
    "interviewTime": null,
    "extraDesc": null,
    "thirdPositionCategory": "人力资源专员｜助理",
    "humanResourcesLicenseFlag": false,
    "showState": null,
    "showName": null,
    "lgCompanyId": null,
    "isOverlord": false,
    "answerStatus": null,
    "interviewUrl": null,
    "cornerType": null,
    "yearSalary": "19.5-39万",
    "otherLabelArray": []
  },
  "similarShowId": "da8097f4f7ea4b8f9e2b9d31b046d8bd",
  "jobId": "9185855",
  "show": "8c9db81e52b54abc88accb38bb2298ff",
  "labels": [
    "人事",
    "招聘",
    "员工关系",
    "薪酬福利",
    "HRBP"
  ],
  "hrLastActiveTime_date": "2022-12-15 12:17:36"
}
```

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

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

Extract job results from a search url

## `jobs` (type: `array`):

Extract job info from a direct url

## `max_page` (type: `integer`):

Max page (0 = no limit)

## Actor input object example

```json
{
  "urls": [
    "https://www.lagou.com/zhaopin/?filterOption=3&sid=8c9db81e52b54abc88accb38bb2298ff"
  ],
  "jobs": [
    "https://www.lagou.com/wn/jobs/9185855.html?show=8c9db81e52b54abc88accb38bb2298ff"
  ],
  "max_page": 1
}
```

# Actor output Schema

## `results` (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 = {
    "urls": [
        "https://www.lagou.com/zhaopin/?filterOption=3&sid=8c9db81e52b54abc88accb38bb2298ff"
    ],
    "jobs": [
        "https://www.lagou.com/wn/jobs/9185855.html?show=8c9db81e52b54abc88accb38bb2298ff"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/lagou-job-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 = {
    "urls": ["https://www.lagou.com/zhaopin/?filterOption=3&sid=8c9db81e52b54abc88accb38bb2298ff"],
    "jobs": ["https://www.lagou.com/wn/jobs/9185855.html?show=8c9db81e52b54abc88accb38bb2298ff"],
}

# Run the Actor and wait for it to finish
run = client.actor("saswave/lagou-job-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 '{
  "urls": [
    "https://www.lagou.com/zhaopin/?filterOption=3&sid=8c9db81e52b54abc88accb38bb2298ff"
  ],
  "jobs": [
    "https://www.lagou.com/wn/jobs/9185855.html?show=8c9db81e52b54abc88accb38bb2298ff"
  ]
}' |
apify call saswave/lagou-job-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,saswave/lagou-job-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/4s6CK9asoefDSJ2g4/builds/hrYe6vzGnrooA8om3/openapi.json
