# Engineerhub Jobs Scraper (`jobsapi/engineerhub-jobs-search-scraper`) Actor

Extract public EngineerHUB.in engineering job listings and details from the official public API.

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

## Engineerhub Jobs Search Scraper

Extracts public engineering jobs from EngineerHUB.in's official public API. Records include title, company, cleaned description, skills, location, work mode, salary disclosure/range, experience, application dates, external apply link, and source API URLs.

### Input

Use `apiUrls` or the compatible `startUrls` request list. The default is the public Job feed at `https://backend.engineerhub.in/api/v1/getHiringByOpportunityType?opportunityType=Job&pageNo=1&limit=24`. `maxItems`, `maxPages`, `keyword`, `dateFrom`, `dateTo`, `includeDetails`, `timeoutSecs`, and `requestDelayMs` are bounded controls.

The Actor makes only direct public HTTPS requests to the EngineerHUB API. It does not log in, submit applications, use credentials, or call remote Apify services. A job's `applyLink` is returned as data but is never opened or submitted.

### Output

The default dataset contains only validated `engineerhub-job` records. Truthful request diagnostics are stored in the `OUTPUT` key-value record and never mixed into the job dataset. Records are filtered to active jobs (`isServiceOff` false and application end not in the past) unless the source does not provide an end date.

`OUTPUT.status` is the Apify process result (`SUCCEEDED` or `FAILED`); `OUTPUT.resultStatus` describes the data outcome (`COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`). A confirmed first-party source denial stops further requests and discards staged jobs; its evidence remains in `OUTPUT` as `SKIPPED` if that summary is saved. Redirects are not followed. Generic request/controller/network failures with no stored rows are `DEFERRED`, not blocked; after rows are stored, non-block failures preserve them as `SUCCEEDED`/`LIMITED`. A fatal zero-row failure saves the summary where possible and fails the Actor run. `NO_DATA` requires a successful official response with an explicitly empty job array for every configured feed; malformed/unrecognized responses and local-filter misses are `DEFERRED`.

### Project structure

- `src/main.js` initializes and closes the local Actor.
- `src/config.js` holds bounded defaults and source metadata.
- `src/input.js` validates the public EngineerHUB API URL and filters.
- `src/http.js` performs bounded direct JSON requests.
- `src/parser.js` parses list/detail envelopes, descriptions, salaries, and skills.
- `src/normalize.js` creates stable job records and diagnostics.
- `src/crawler.js` coordinates pagination, active/filter selection, and detail enrichment.
- `src/run-core.js` separates platform status from data outcome, preserves acknowledged dataset writes, and persists `OUTPUT` before failing a zero-row run.
- `src/run.js` binds lifecycle logic to the Apify SDK.
- `test/` contains API fixtures and isolated lifecycle tests; `validate-datasets.js` rejects empty datasets and diagnostic rows.

### Local verification

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

`npm run validate` expects real JSON records in the Actor's local default dataset; it intentionally fails when no local run data exists. Unit tests do not require a live source or write to storage.

# Actor input Schema

## `apiUrls` (type: `array`):

Public HTTPS getHiringByOpportunityType API URLs. Defaults to the public Job feed.

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

Compatibility alias accepting request objects with a url field.

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

Maximum unique active jobs to save after filters.

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

Bound pagination requests to the public feed.

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

Optional case-insensitive filter over title, company, description, and skills.

## `dateFrom` (type: `string`):

Optional inclusive ISO date filter against applicationStartTime.

## `dateTo` (type: `string`):

Optional inclusive ISO date filter against applicationEndTime.

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

Fetch the public /api/v1/hiring/{id} endpoint for each selected job.

## `timeoutSecs` (type: `integer`):

Timeout for each direct HTTPS API request.

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

Bounded delay between direct API requests.

## Actor input object example

```json
{
  "maxItems": 24,
  "maxPages": 5,
  "keyword": "",
  "dateFrom": "",
  "dateTo": "",
  "includeDetails": true,
  "timeoutSecs": 30,
  "requestDelayMs": 100
}
```

# Actor output Schema

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

The default dataset contains normalized public jobs only; run diagnostics are stored in the OUTPUT key-value record.

## `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("jobsapi/engineerhub-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/engineerhub-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/engineerhub-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

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