# UPSC Recruitment Jobs Search Scraper (`jobsapi/upsc-recruitment-jobs-search-scraper`) Actor

Scrape rich, vacancy-level recruitment data from official UPSC advertisements.

- **URL**: https://apify.com/jobsapi/upsc-recruitment-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, 16.7% 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

### What does UPSC Recruitment Jobs Search Scraper do?

UPSC Recruitment Jobs Search Scraper turns **official [Union Public Service Commission recruitment advertisements](https://www.upsc.gov.in/recruitment/recruitment-advertisement)** into vacancy-level JSON records. It is a public UPSC recruitment API alternative backed directly by advertisement PDFs on `upsc.gov.in`.

Search mode discovers current official PDF links from the recruitment page. Single and multiple modes accept official advertisement PDF URLs directly. The Actor downloads each notice with bounded HTTPS requests, extracts text locally, splits it by vacancy number, and emits only records that pass strict richness and provenance checks.

### Why use UPSC Recruitment Jobs Search Scraper?

- Track current Central Government vacancies without manually reading long PDF notices.
- Analyse posts, organisations, reservation positions, pay scales, age limits, qualifications, duties, and deadlines.
- Build verified recruitment feeds for research, alerts, compliance workflows, or public-information services.
- Schedule recurring runs, call the Actor through the Apify API, connect datasets to integrations, and monitor failures in Apify Console.
- Preserve the exact official PDF and vacancy number behind every record.

The Actor does not use a browser, login, proxy, cookies, CAPTCHA bypass, or fingerprint evasion. It never collects applicant data.

### What data can UPSC Recruitment Jobs Search Scraper extract?

| Field | Type | Description |
|---|---|---|
| `advertisementNumber`, `vacancyNumber` | string | Official notice and vacancy identity. |
| `title`, `totalVacancies` | string/integer | Post name and number of openings. |
| `organization`, `department`, `ministry` | string | Employing public body when printed. |
| `reservationPosition`, `payScale`, `ageLimit` | string | Official eligibility and compensation sections. |
| `essentialQualifications`, `duties` | string | Substantial public vacancy detail. |
| `applicationOpens`, `applicationDeadline` | date | Dates parsed from the notice. |
| `applicationUrl` | string | UPSC application portal only when explicitly published. |
| `jobUrl`, `sourcePdfUrl` | string | The exact official advertisement PDF. |
| `detailVerified`, `verificationEvidence` | boolean/object | Machine-readable quality evidence. |

No generic or fabricated `applyUrl` is emitted. Empty optional fields are omitted.

### How to scrape UPSC recruitment notices

1. Open the Actor input tab in Apify Console.
2. Choose `search` for the current recruitment page, or `single`/`multiple` for known official PDF URLs.
3. Enter a broad keyword such as `recruitment`, or use post, organisation, or qualification terms.
4. Start with a small `maxItems` and a bounded `maxRequests`.
5. Run the Actor and inspect the vacancy dataset.
6. Review `RUN_SUMMARY` and `RUN_DIAGNOSTICS` for request counts, parsed pages, rejected notices, and source failures.
7. Download the dataset or connect it to an Apify integration.

A specific keyword must occur in the parsed vacancy section. Generic terms such as `recruitment`, `jobs`, `job`, and `all` return current verified vacancies without filtering.

### How much will it cost to scrape UPSC notices?

This Actor uses native HTTPS and local PDF text extraction, which is lighter than browser automation. Actual cost depends on your Apify plan, memory allocation, PDF size, request latency, and the current platform pricing. Use a three-record baseline to view the run estimate in Apify Console before scheduling larger scans. The `maxItems` and `maxRequests` limits keep work bounded.

### Input

See the input tab for full configuration options. A small current-advertisement run is:

```json
{
  "mode": "search",
  "query": "recruitment",
  "maxItems": 3,
  "maxRequests": 5,
  "requestTimeoutSecs": 60
}
```

For direct modes, every URL must be an HTTPS PDF on `upsc.gov.in`. `requestDelayMs` delays sequential PDF downloads; `requestTimeoutSecs` bounds each public request.

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. Simplified records look like:

```json
[
  {
    "advertisementNumber": "52/2026",
    "vacancyNumber": "26085201722",
    "title": "Assistant Provident Fund Commissioner",
    "totalVacancies": 80,
    "payScale": "Level 10 in the Pay Matrix",
    "jobUrl": "https://www.upsc.gov.in/sites/default/files/example-advertisement.pdf",
    "detailVerified": true
  },
  {
    "advertisementNumber": "10/2026",
    "vacancyNumber": "26081001234",
    "title": "Assistant Director",
    "totalVacancies": 4,
    "applicationDeadline": "2026-09-11",
    "jobUrl": "https://www.upsc.gov.in/sites/default/files/example-notice.pdf",
    "detailVerified": true
  }
]
```

`RUN_SUMMARY` contains listing/PDF request counts, discovered PDFs, parsed pages, runtime, emitted records, and status. `RUN_DIAGNOSTICS` contains listing, PDF, parsing, or validation failures and is never inserted into the dataset.

### Tips and advanced options

- Use `recruitment` first to confirm current notice structure before applying a narrow keyword.
- Each search run spends one request on the listing page; each downloaded PDF spends one more.
- Increase `maxRequests` when supplying multiple PDFs.
- Keep direct URLs current and official; removed or replaced notices fail with explicit diagnostics.
- Large PDFs can take longer to parse, so keep a practical request timeout.

### Local development

```text
npm ci --no-audit --no-fund
npm run check
npm test
apify validate-schema
apify run --purge --input-file INPUT.json
npm run validate
```

Local storage remains under `storage/` and is not uploaded to Apify Console.

### FAQ, disclaimers, and support

#### Why did the Actor emit fewer records than maxItems?

The current page may link only one advertisement, a keyword may filter other vacancies, or a notice may fail strict richness validation. Inspect `RUN_DIAGNOSTICS` and the parsed-page count before raising limits.

#### Does the Actor submit applications?

No. It extracts public notice data only. `applicationUrl` appears only when the official PDF publishes the UPSC Online Recruitment Application portal.

#### Is scraping UPSC recruitment data legal?

Our Actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our Actors, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

Use this Actor only for lawful access to public notices, respect UPSC terms, robots guidance, and rate limits, and verify critical recruitment decisions against the original PDF. For programmatic access, open the Actor's API tab. For support, use the Issues tab with a redacted input and run ID.

# Actor input Schema

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

Search current official advertisements, process one PDF, or process multiple official PDFs.

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

Optional vacancy, post, organisation, or qualification keyword; generic recruitment returns all current vacancies.

## `pdfUrl` (type: `string`):

An official upsc.gov.in advertisement PDF URL for single mode.

## `pdfUrls` (type: `array`):

Official upsc.gov.in advertisement PDF URLs for multiple mode.

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

Official UPSC advertisement PDF URLs supplied as URL objects.

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

Maximum individual vacancy records to emit after PDF parsing and validation.

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

Hard upper bound for listing and PDF requests in one run.

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

Delay between sequential public PDF requests in milliseconds.

## `requestTimeoutSecs` (type: `integer`):

Maximum seconds to wait for each public UPSC request.

## Actor input object example

```json
{
  "mode": "search",
  "query": "recruitment",
  "maxItems": 3,
  "maxRequests": 10,
  "requestDelayMs": 100,
  "requestTimeoutSecs": 60
}
```

# Actor output Schema

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

No description

## `runSummary` (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/upsc-recruitment-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/upsc-recruitment-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/upsc-recruitment-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

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