# Naukri Jobs Scraper (`codingfrontend/naukri-jobs-scraper`) Actor

Scrape job listings from Naukri.com based on keywords, location, and experience with anti-bot detection. Supports deep search for comprehensive job details including company reviews, salaries, and benefits.

- **URL**: https://apify.com/codingfrontend/naukri-jobs-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Categories:** Jobs, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 30 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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

## Naukri Jobs Scraper

Scrapes public job-search result cards from Naukri.com in a real Chromium browser. Each normal dataset item includes job and company identifiers, profile links, logo, company rating and review count, experience range, salary when published, locations, description snippet, skills, posting age, job type, source context, and extraction metadata.

The Actor uses a bounded, ordinary Chromium render with an optional user-agent override and client-rendering wait. It deduplicates jobs by ID and removes null, blank, and empty values before storage. It does not bypass access controls or human-verification pages. If the runtime has no usable browser, it stores one compact `BROWSER_UNAVAILABLE` diagnostic instead of inventing job data.

### Input

- `keyword` — job title, company, or skill. Defaults to `software developer`.
- `location` — optional city, state, or region.
- `maxItems` — number of jobs to save (1–500).
- `maxPages` — maximum search pages to visit.
- `pageLoadWaitMs` — wait for client-rendered results.
- `renderTimeoutSecs` — per-render timeout, 30–180 seconds.
- `requestDelayMs` — optional delay between pages, 0–10,000 milliseconds.
- `maxRenderRetries` — additional attempts for an empty or failed render, 0–3.
- `maxHtmlBytes` — maximum captured HTML size.
- `browserExecutablePath` — optional Chromium-compatible executable path.
- `fixturePath` — optional path under `fixtures`, `.actor/fixtures`, `test/fixtures`, or `qa-inputs` for deterministic QA.
- `includeDiagnostics` — store compact diagnostics when extraction is blocked or unavailable.
- `userAgent` — optional explicit user-agent override.

Normal records retain the legacy fields. Diagnostic records use exactly `{ url, error, errorCode, scrapedAt }` and are emitted for browser/runtime boundaries such as `BROWSER_UNAVAILABLE`, `ACCESS_BOUNDARY`, `NO_RESULTS`, and `RENDER_ERROR`.

### Run locally

```bash
npm install
apify run --purge
```

Results are written to `storage/datasets/default`; the run summary is stored as `OUTPUT_SUMMARY`.

For a deterministic local contract check:

```bash
apify run --purge --input-file qa-inputs/fixture-input.json
npm run validate
```

# Actor input Schema

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

Job title, skill, or company to search for.

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

Optional city, state, or region filter.

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

Maximum number of job records to save.

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

Safety limit for Naukri result pages.

## `pageLoadWaitMs` (type: `integer`):

Time allowed for client-rendered listings to appear.

## `renderTimeoutSecs` (type: `integer`):

Maximum time allowed for each browser render attempt.

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

Optional delay between result-page requests.

## `maxRenderRetries` (type: `integer`):

Additional attempts for a failed or empty rendered page.

## `maxHtmlBytes` (type: `integer`):

Safety limit for the browser-rendered HTML response.

## `browserExecutablePath` (type: `string`):

Optional absolute path to a Chromium-compatible executable.

## `fixturePath` (type: `string`):

Optional local HTML or JSON fixture under an approved fixture directory for deterministic QA.

## `includeDiagnostics` (type: `boolean`):

Store compact diagnostic records when a browser or source boundary prevents extraction.

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

Optional user-agent override.

## Actor input object example

```json
{
  "keyword": "software developer",
  "maxItems": 10,
  "maxPages": 10,
  "pageLoadWaitMs": 15000,
  "renderTimeoutSecs": 90,
  "requestDelayMs": 0,
  "maxRenderRetries": 1,
  "maxHtmlBytes": 25000000,
  "includeDiagnostics": true
}
```

# Actor output Schema

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

No description

## `summary` (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("codingfrontend/naukri-jobs-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("codingfrontend/naukri-jobs-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 codingfrontend/naukri-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/naukri-jobs-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/wVRCHw7p6Ke6CmmaT/builds/eGZLhZKUJI63jpdfI/openapi.json
