# 51job Jobs Scraper (`jobsapi/51job-jobs-search-scraper`) Actor

Extracts public 51job job listings with normalized salary, company, location, requirements, and source metadata.

- **URL**: https://apify.com/jobsapi/51job-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 51job 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 51job Jobs Search Scraper do?

51job Jobs Search Scraper extracts **public job listings from [51job](https://www.51job.com/)** into a clean Apify dataset. It is a lightweight 51job API alternative for collecting job titles, companies, locations, salary information, requirements, descriptions, tags, posting dates, and canonical job URLs without logging in or accessing private user data.

The Actor uses bounded HTTP requests, validates allowed 51job URLs, checks the target site's robots policy, retries temporary network and server failures, removes duplicate jobs, and reports access restrictions truthfully. The default dataset contains job records only. Run summaries and any access diagnostics are stored separately in the default key-value store.

### Why use 51job Jobs Search Scraper?

Use the Actor for public labor-market research, recruiting intelligence, salary analysis, skills-demand tracking, and monitoring newly advertised roles in China. Apify adds scheduled runs, API access, webhooks, integrations, downloadable datasets, and run monitoring. `maxItems` and `maxPages` provide explicit cost and load boundaries.

### What data can the 51job scraper extract?

| Field | Type | Description |
| --- | --- | --- |
| `title` | string | Public job title |
| `company` | string | Hiring company, when published |
| `location` | string | Advertised work location |
| `salary`, `salaryMin`, `salaryMax` | string/number | Published salary text and normalized bounds |
| `experience`, `education` | string | Public experience and education requirements |
| `description`, `requirements`, `tags` | string/array | Public role details and skills |
| `publishedAt` | string | Source-provided publication date |
| `url`, `sourceUrl` | string | Job and search URLs |

Optional values are omitted when 51job does not publish them; the Actor does not fill missing data with placeholders or guess an unspecified salary currency.

### How to scrape 51job jobs

1. Open the Actor in Apify Console and select **Try for free**.
2. Enter a `keyword`, such as `python`, and optionally a `location`.
3. Set small `maxItems` and `maxPages` values for a quick test.
4. Enable descriptions or tags if those fields are useful.
5. Start the run and inspect the job-only dataset in the Output tab.
6. If the source blocks access or its robots policy cannot be verified, inspect `OUTPUT` and `DIAGNOSTICS` in the run's key-value store.

See the Input tab for all configuration options. A custom `startUrl` must use HTTPS and belong to `51job.com` or one of its subdomains.

### How much will it cost to scrape 51job?

Cost depends on the Actor's current Apify pricing and the selected platform plan. This implementation makes only bounded public-source requests and stops at `maxItems` or `maxPages`. Begin with one page and 10 items, inspect the results, then scale gradually. Source access restrictions can produce an empty dataset while still recording a truthful run summary.

### Input

Key inputs include `keyword`, `location`, `startUrl`, `maxItems`, `maxPages`, `includeDescription`, `includeTags`, `timeoutMs`, and an optional browser-like `userAgent`. The defaults are suitable for a small representative run.

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. A typical record is:

```json
{
  "recordType": "51job-listing",
  "jobId": "123456",
  "title": "Backend Engineer",
  "company": "Example Company",
  "location": "Shanghai",
  "salary": "15-25K/month",
  "url": "https://jobs.51job.com/shanghai/123456.html",
  "sourceUrl": "https://we.51job.com/pc/search?keyword=python",
  "fetchedAt": "2026-08-31T00:00:00.000Z"
}
```

`OUTPUT` contains final status and counts, `RUN_STATS` contains request statistics, `SOURCE_METADATA` records input and robots-policy metadata, and `DIAGNOSTICS` contains structured access evidence. These operational records are intentionally excluded from the job dataset.

### Tips and advanced options

Keep runs small, use precise keywords, and avoid aggressive scheduling. A `NO_PUBLIC_JOBS` status can mean the query returned no parseable public listings. A policy or blocking status means the Actor stopped safely rather than bypassing access controls.

### FAQ, disclaimer, and support

This Actor accesses public 51job pages only. It does not log in, solve CAPTCHAs, or bypass access controls. Website layouts and policies can change, so monitor run summaries and report repeatable issues through the Actor's Issues tab. Use the API tab for programmatic runs and dataset retrieval.

Our Actors are ethical and do not intentionally extract private user data. Public job posts can still contain personal data protected by the GDPR and other laws. Only scrape data when you have a legitimate purpose, follow 51job's terms and robots policy, and consult legal counsel if you are unsure.

# Actor input Schema

## `keyword` (type: `string`):

Keyword sent to the public 51job search page.

## `location` (type: `string`):

Optional city or location label.

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

Bounded number of job records to emit.

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

Bounded number of public search pages to request.

## `startUrl` (type: `string`):

HTTPS 51job.com search or listing URL. No credentials, private endpoints, or bypass settings are supported.

## `includeDescription` (type: `boolean`):

Keep descriptions and requirements when present in the public response.

## `includeTags` (type: `boolean`):

Keep public skills, keywords, and qualification tags when present.

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

Timeout for each direct public HTTPS request.

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

Optional descriptive user-agent string; credentials, proxies, and bypass settings are unsupported.

## Actor input object example

```json
{
  "keyword": "python",
  "maxItems": 50,
  "maxPages": 3,
  "includeDescription": true,
  "includeTags": true,
  "timeoutMs": 30000
}
```

# Actor output Schema

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

No description

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

No description

## `runStats` (type: `string`):

No description

## `sourceMetadata` (type: `string`):

No description

## `diagnostics` (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/51job-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/51job-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/51job-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/51job-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/sE4tQ8sHZE4nxMqHH/builds/Q4gFkc1wxJ1cT6dGT/openapi.json
