# iGuopin Jobs Scraper — 国聘国企与校招岗位 (`jobsapi/iguopin-jobs-search-scraper`) Actor

Export public 国聘 job listings with campus/state-owned recruitment, salary, skills, location, and employer intelligence fields.

- **URL**: https://apify.com/jobsapi/iguopin-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 国聘 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

## iGuopin Jobs Search Scraper

This Actor reads public job-list rows from [国聘](https://www.iguopin.com/job?nature=115xW5oQ\&nature_cn=%E5%BA%94%E5%B1%8A%E7%94%9F), the China state-owned-enterprise and campus-recruitment platform. It emits normalized records from the public list response; each job detail URL is a link only, and detail pages are not fetched.

### Public source

- Listing page: <https://www.iguopin.com/job?nature=115xW5oQ&nature_cn=%E5%BA%94%E5%B1%8A%E7%94%9F>
- Public list API: <https://gp-api.iguopin.com/api/jobs/v1/list>
- Emitted job URL template: `https://www.iguopin.com/job/detail?id={jobId}`

The default `natureCodes` value, `115xW5oQ`, is the public 校招 (campus recruitment) code. QA disposition remains `DEFERRED`; overall search is not qualified. A historical Chrome revisit on 2026-09-23 showed no matching listing rows and no denial page, but source access was not rechecked during this lifecycle-only pass and remains unverified. Code review also found raw `is_graduates: false` for a detail whose visible experience says `应届生`. The Actor makes no normalized graduate-eligibility claim and does not publish that raw flag in the Dataset.

### Inputs

`maxItems` defaults to 100 (1–5000), `pageSize` to 100 (1–100), and `maxPages` to 10 (1–20). `keyword` and `natureCodes` are sent to the public API; set `natureCodes` to `[]` for its unfiltered nature scope. `requestDelayMs` defaults to 250 ms and sets the delay between page requests.

The remaining filters run locally on fetched records: case-insensitive `search` checks job name, recruitment/nature/category/department, salary, education/experience, location, employer name/nature/industry/scale, majors, and description. `locationContains`, `employerContains`, `majorContains` (labels or codes), `industryContains`, `natureContains`, and `recruitmentTypeContains` filter their named public fields. `minSalaryCny` and `maxSalaryCny` filter salary bounds in CNY. `sortResultsBy` accepts `sourceOrder`, `salaryHigh`, `salaryLow`, `employer`, `jobName`, or `newest` (updated time, falling back to published time). `includeRaw` defaults to `true` and controls the safe source-field object.

Pagination stops at the item or page limit, an empty/short page, or a repeated source page.

### Dataset fields

Each dataset row is a closed business contract: identity fields (`jobId`, `jobName`, `jobUrl`); recruitment type, nature, category, and department labels/codes; salary text, unit, CNY bounds, monthly thousand-CNY values where applicable, negotiability, and salary months; headcount, education and experience labels/codes, major labels/codes, locations, description, application instruction, source status, and published/expiry/refresh/update times. Employer fields include public identity, nature, industry, scale, locations, logo, and available public metadata. Scrape-time, provenance, and raw-payload fields (`recordType`, `id`, `sourceUrl`, `sourceApiUrl`, `retrievedAt`, `sourcePage`, `sourceIndex`, `rawJob`) are used only for internal verification and are never written to the Dataset; request receipts and the run summary remain in the key-value store.

Unavailable source values may be null or omitted. Salary bounds are normalized only from positive source values. `salaryMinK` and `salaryMaxK` are populated only for monthly pay and represent thousands of CNY. When the source marks pay negotiable and publishes no positive bound, `salaryText` is `面议`. `isOpen` is derived from source status when present. `includeRaw` affects only the internal verification record; it never adds fields to the public Dataset.

Small excerpt from `storage-iguopin-local-final-20260923-run2/datasets/default/000000001.json`:

```json
{
  "jobId": "215568704576947776",
  "jobName": "信息化系统建设",
  "recruitmentType": "校园招聘",
  "nature": "校招",
  "salaryText": "面议",
  "salaryUnit": "元/月",
  "education": "硕士",
  "majors": ["计算机类"],
  "location": "北京-丰台区",
  "employerName": "北京动力机械研究所"
}
```

The offline dataset validator checks the generated rows and `RUN_SUMMARY`. After a local run, invoke it with the corresponding storage directory:

```bash
npm run validate:dataset -- storage-iguopin-validation
```

`RUN_SUMMARY.status` is the Apify platform outcome and is only `SUCCEEDED` or `FAILED`. `RUN_SUMMARY.resultStatus` separately describes the dataset result: `COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`. `recordsEmitted` counts only Dataset `pushData()` calls that resolved. A later write or finalization failure preserves a written prefix as `SUCCEEDED` / `LIMITED`; a fatal zero-row failure is `FAILED` / `FAILED`. A `COMPLETE` run may emit zero records when fetched source rows were intentionally excluded by local filters; that is not source `NO_DATA`. Diagnostics remain in the key-value summary, never in Dataset. `NO_DATA` includes explicit official first-page evidence that `data.total` is zero and `data.list` is empty for the requested keyword/nature scope.

### Public-access behavior

Requests use the ordinary direct HTTPS path, sequentially, with no retries, proxy, cookies/session, alternate identity, or fingerprint controls. The Actor requests only the public list API and does not log in, submit forms, apply to jobs, or fetch job detail pages.

An HTTP 401, 403, 429, or 451 or visible source-authored denial/challenge is `SKIPPED` only when tied to the official `gp-api.iguopin.com` endpoint; the Actor stops requests immediately and discards buffered rows. Off-origin denials, HTTP 407, transport failures, malformed responses, and unproven empty pages are `DEFERRED`. Earlier buffered records can still be written after an ambiguous later-page failure; if all such writes resolve, that partial extraction is `SUCCEEDED` / `LIMITED`. A Dataset row must have a matching successful first-party page receipt, complete identity/provenance, a readable description, and more than 20 meaningful source facts. Fixture, placeholder, diagnostic, and incomplete candidates are rejected before writes.

### Local development

```bash
npm ci
npm test
npm run lint
apify validate-schema
```

For a local run, choose a new actor-relative storage directory, confirm that it does not already exist, and use `--resurrect`:

```powershell
$storage = 'storage-iguopin-validation'
$previousStorage = $env:APIFY_LOCAL_STORAGE_DIR
if (Test-Path $storage) { throw 'Choose a new actor-relative storage directory.' }
$env:APIFY_LOCAL_STORAGE_DIR = $storage
try {
  apify run --resurrect --input-file test/fixtures/local-input.json
} finally {
  if ($null -eq $previousStorage) {
    Remove-Item Env:APIFY_LOCAL_STORAGE_DIR -ErrorAction SilentlyContinue
  } else {
    $env:APIFY_LOCAL_STORAGE_DIR = $previousStorage
  }
}
```

# Actor input Schema

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

Maximum matching public job records to emit.

## `pageSize` (type: `integer`):

Public API page size. The endpoint accepts up to 100 rows per page.

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

Safety bound on pages requested from the public list service.

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

Keyword sent to the public 国聘 list service.

## `natureCodes` (type: `array`):

Public nature codes sent to the service. The default 115xW5oQ is the current 校招/campus-recruitment code; use an empty array to request the service's unfiltered nature scope.

## `search` (type: `string`):

Case-insensitive local search across job, employer, location, description, industry, recruitment, education, experience, and major fields.

## `locationContains` (type: `string`):

Keep records whose public job location contains this text.

## `employerContains` (type: `string`):

Keep records whose public employer name contains this text.

## `majorContains` (type: `string`):

Keep records whose public major labels or major codes contain this text.

## `industryContains` (type: `string`):

Keep records whose public employer industry contains this text.

## `natureContains` (type: `string`):

Local filter on the public job nature label such as 校招.

## `recruitmentTypeContains` (type: `string`):

Local filter on the public recruitment type label such as 校园招聘.

## `minSalaryCny` (type: `number`):

Keep records whose parsed salary range reaches this lower bound.

## `maxSalaryCny` (type: `number`):

Keep records whose parsed salary range starts at or below this upper bound.

## `sortResultsBy` (type: `string`):

Keep source order or sort normalized matches by salary, employer, job name, or newest source timestamp.

## `requestDelayMs` (type: `integer`):

Delay between ordinary public list requests.

## `includeRaw` (type: `boolean`):

Include a public-field-only rawJob object. Contact, account, viewer-state, and other personal/private fields are intentionally omitted.

## Actor input object example

```json
{
  "maxItems": 100,
  "pageSize": 100,
  "maxPages": 10,
  "natureCodes": [
    "115xW5oQ"
  ],
  "sortResultsBy": "sourceOrder",
  "requestDelayMs": 250,
  "includeRaw": true
}
```

# 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/iguopin-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/iguopin-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/iguopin-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

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