# ClearedJobs.net Jobs Scraper (`jobsapi/clearedjobs-jobs-search-scraper`) Actor

Search and extract complete identity-verified public security-cleared jobs from ClearedJobs.net.

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

## ClearedJobs.net Jobs Search Scraper

Searches rendered public ClearedJobs.net listings in a direct Chrome session, uses the public Load more control for bounded pagination, and enriches stable `/job/...-{id}` pages. Only complete identity-matched detail records are emitted.

### Dataset

Each job record has 30 target-specific properties covering the public job and employer, location and work arrangement, employment and posting dates, summary and role overview, full description, responsibilities, required and desired qualifications, required/additional clearance criteria, clearance level, salary and commission, benefits, weekly hours, time type, job reference, and canonical job URL. Missing source values are explicit `null` values or empty arrays; no request receipts, timestamps, duplicate URL aliases, or verification/debug fields are mixed into the job record.

### Access policy

The Actor uses direct public HTTPS access only. Detail pages are fetched sequentially; it does not configure a proxy, override browser identity, or bypass login, subscription, CAPTCHA, verification, or anti-bot controls. HTTP 401, 403, 429, or 451 responses and visible source-authored denial or challenge pages stop requests immediately. Unpersisted staged jobs are discarded and the Actor records platform `status: SUCCEEDED` with `resultStatus: SKIPPED` and `accessStatus: BLOCKED`; any already-persisted eligible prefix is retained as `SUCCEEDED` / `LIMITED`. Generic browser, network, and transport failures are `DEFERRED`, not treated as proof that ClearedJobs blocked access. `NO_DATA` requires a visible source-authored no-results message on every searched result page, saved with a successful page receipt and evidence excerpt in `REQUEST_RECEIPTS`. Unrecognized empty pages, missing job links, incomplete detail records, and local filters with no verified matches are `DEFERRED` (or `LIMITED` when candidate scanning was capped), not clean empty results. Fatal runtime, Dataset, key-value-store, or finalization failures without persisted rows call `Actor.fail()` and record `FAILED` / `FAILED`, including when a source barrier was also observed. If a later failure follows successful Dataset writes, stored rows remain with `SUCCEEDED` / `LIMITED`.

The `OUTPUT` key-value record reports platform and result statuses separately and requires clean-empty evidence before setting `NO_DATA`. `DIAGNOSTICS` and `REQUEST_RECEIPTS` keep failures and per-attempt evidence out of the job dataset. The runtime writer accepts only complete 30-field records with a matching HTTPS ClearedJobs detail URL and job ID plus at least 21 populated source fields; `datasetItemCount` advances only after each `Actor.pushData()` call succeeds.

### Inputs

Inputs support a public search URL, keyword, optional location, official start URLs, result/page bounds, and a navigation timeout. The default sample requests three jobs and one search page. Debug fixtures, proxy configuration, and detail concurrency controls are not exposed.

### Local development

```text
npm ci --ignore-scripts
npm test
npm run lint
apify validate-schema
apify run --input-file INPUT.json
npm run validate-dataset -- <dataset-directory>
```

The Actor writes job records to the default dataset and run state to the key-value store (`OUTPUT`, `DIAGNOSTICS`, `REQUEST_RECEIPTS`).

# Actor input Schema

## `sourceUrl` (type: `string`):

ClearedJobs.net jobs or filtered public search URL.

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

Keywords or job title submitted through the public search form.

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

Optional city, state, or ZIP submitted through the public search form.

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

Optional official search or stable detail URLs.

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

Maximum complete verified jobs to emit.

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

Maximum rendered search batches, including Load more actions.

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

Timeout for each public page navigation.

## Actor input object example

```json
{
  "sourceUrl": "https://clearedjobs.net/jobs",
  "query": "software engineer",
  "maxItems": 10,
  "maxPages": 2,
  "requestTimeoutSecs": 20
}
```

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

```

## MCP server setup

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