# National Career Service Jobs Search Scraper (`jobsapi/ncs-jobs-search-scraper`) Actor

Extract rich National Career Service job records with full descriptions, employers, locations, salary and experience ranges, skills, qualifications, openings, dates, application links, and all non-empty detail-page metadata.

- **URL**: https://apify.com/jobsapi/ncs-jobs-search-scraper.md
- **Developed by:** [Jobs API](https://apify.com/jobsapi) (community)
- **Categories:** Jobs, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 18.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 job details

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?

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

## NCS Jobs Search Scraper

This Apify Actor extracts complete public job records from India's National Career Service (NCS), using the current public /job-listing experience and its first-party API. It is designed for bounded local verification and does not log in, submit applications, use a browser, create a proxy, or publish through the Apify API.

### Source and transport

- Public site: https://ncs.gov.in/job-listing
- Public search API: https://api.ncs.gov.in/api/v1/job-posts/search
- Public detail API: https://api.ncs.gov.in/api/jobs/detail?id={id}
- Transport: native Node.js fetch
- API envelope: the same AES-256-CBC JSON envelope used by the public NCS application
- Output: one verified detail record per job, plus structured diagnostics when a public request is unavailable or malformed

Search results provide stable numeric IDs, titles, organizations, descriptions, locations, skills, employment type, experience, salary, vacancy, and date fields. Detail responses are fetched and identity-checked before a job row is written. Recruiter email/mobile/name/designation fields are omitted, and phone/email patterns in descriptions and source snapshots are redacted.

### Input

The full input contract is in .actor/input\_schema.json.

Example:

```
{
  "mode": "search",
  "query": "nurse",
  "location": "",
  "maxItems": 3,
  "maxCandidates": 12,
  "maxPages": 2,
  "maxDetailRequests": 12,
  "maxRequests": 24,
  "deadlineSeconds": 120,
  "timeoutMs": 20000,
  "retries": 1
}
```

Supported modes:

- search: one query and optional location.
- searchMultiple: several values in queries (aliases: searchQueries, keywords).
- single: one official jobUrl, such as https://ncs.gov.in/job-listing/applying/3034525.
- multiple: official URLs in jobUrls.
- startUrls: official /job-listing and/or /job-listing/applying/{id} URLs.

The legacy query, location, maxItems, jobUrl, jobUrls, and proxyConfiguration fields remain accepted for compatibility. Proxy configuration is intentionally ignored because this implementation uses direct public HTTPS.

### Output

The dataset schema is in .actor/dataset\_schema.json. Job rows include:

- stable jobId, title, employer, organization, sector, functional area/role;
- normalized locations with city, state, pincode, and coordinates when supplied;
- redacted full description, summary, skills, education, experience, salary, employment type, gender, openings, posting date, and deadline;
- canonical NCS detail URL and source-backed external apply URL when the API supplies one;
- search context, request receipts, sanitized sourceData, detail identity checks, and data-quality metrics.

The dataset contains complete jobs only. `RUN_SUMMARY`, `OUTPUT_SUMMARY`, `RUN_DIAGNOSTICS`, `RUN_METADATA`, and `RUN_HEALTH` are written to the default key-value store for local or cloud evidence. `maxRequests` caps total HTTP attempts including retries, and `deadlineSeconds` stops new requests at the run deadline. Metadata does not persist raw proxy-capable input.

### Responsible use

Collect only publicly available job information. Respect NCS terms, robots directives, applicable data-protection requirements, and reasonable request rates. Do not use this Actor to access authenticated pages, bypass controls, submit applications, or harvest candidate/recruiter personal data.

# Actor input Schema

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

Search one query, search several queries, fetch one or many detail URLs, or process official listing/detail start URLs.

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

Job title, profession, skill, or keyword for search mode.

## `queries` (type: `array`):

Queries for searchMultiple mode; searchQueries and keywords are accepted aliases.

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

Optional NCS city or location filter. Comma-separated values are sent as public city filters.

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

Official https://ncs.gov.in/job-listing or /job-listing/applying/{id} URLs for startUrls mode.

## `jobUrl` (type: `string`):

One official https://ncs.gov.in/job-listing/applying/{id} detail URL for single mode.

## `jobUrls` (type: `array`):

Official NCS detail URLs for multiple mode.

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

Maximum complete job records to save.

## `maxCandidates` (type: `integer`):

Maximum distinct search candidates considered before detail enrichment.

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

Maximum encrypted API result pages per search task.

## `maxDetailRequests` (type: `integer`):

Maximum official detail API requests during one run.

## `maxRequests` (type: `integer`):

Hard total HTTP request budget including search and detail API calls.

## `deadlineSeconds` (type: `integer`):

Total run deadline; new API requests stop when less than one second remains.

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

Timeout for each public NCS API request.

## `retries` (type: `integer`):

Limited retries for transient responses only.

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

Retained for compatibility; complete records always verify the public detail response.

## `proxyConfiguration` (type: `object`):

Retained for compatibility; this actor uses direct public HTTPS and does not create or use a proxy.

## Actor input object example

```json
{
  "mode": "search",
  "query": "nurse",
  "location": "",
  "maxItems": 3,
  "maxCandidates": 12,
  "maxPages": 2,
  "maxDetailRequests": 12,
  "maxRequests": 24,
  "deadlineSeconds": 120,
  "timeoutMs": 20000,
  "retries": 1,
  "includeDetails": true
}
```

# Actor output Schema

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

No description

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

No description

## `runHealth` (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/ncs-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/ncs-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/ncs-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

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