# JobPosting Expiry Monitor (`checksmithcats/jobposting-expiry-monitor`) Actor

Tracks public JobPosting expiry, required-field, and item-set drift against a compact latest baseline. Public listings only.

- **URL**: https://apify.com/checksmithcats/jobposting-expiry-monitor.md
- **Developed by:** [Checksmith Cats](https://apify.com/checksmithcats) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / jobposting expiry report generated

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/platform/actors/running/actors-in-store#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

## JobPosting Expiry Monitor

Scheduled runs track public JobPosting expiry and required-field drift.

Run this Actor on an Apify Schedule when you need a lightweight record of how public job listings changed since the previous run. It reuses JobPosting Consistency Preflight, stores a compact latest-only baseline snapshot, and reports drift findings on later runs.

### What it checks

- public job detail page reachability
- `validThrough` value changes
- newly expired postings
- postings that become close to `validThrough`
- newly failing required JobPosting fields
- resolved required-field and expiry findings
- newly observed job items
- removed job items

### Inputs

Provide one or more of:

- `jobUrls`: public job detail page URLs
- `sitemapUrl`: a public sitemap containing job detail pages
- `feedCsvUrl`: a public CSV with a job URL column such as `jobUrl`, `url`, `link`, or `job_url`

Optional:

- `sampleLimit`: 1 to 200, default 25
- `stateStoreName`: named Apify key-value store for previous snapshots
- `expiryWarningDays`: days before `validThrough` to mark a job as expiring soon, default 14

### Output

The Actor writes:

- `REPORT.json`
- `REPORT.html`
- `REPORT.md`
- dataset rows for preflight and drift findings
- a compact latest-only snapshot in the configured key-value store

Finding families include:

- `drift.baseline_saved`
- `drift.changed.validThrough`
- `drift.changed.expiryStatus`
- `drift.newly_failing.<check>`
- `drift.resolved.<check>`
- `drift.new_item`
- `drift.removed_item`

### State and privacy

State keys store only a hash of the submitted input URL set and a safe subject key. Raw URL query strings are not stored in state keys. Snapshot values store redacted source URLs, compact observed fields, and the latest checked timestamp only.

### Billing note

Pay-per-event billing is based on reachable job pages only. Unreachable pages are reported as findings, but they are not counted as checked job pages.

### Boundaries

This monitor records drift detected in the current run. It does not promise notifications, threshold alerts, complete detection of every change, Search appearance, ranking, indexing, eligibility, hiring compliance, or any platform decision.

Not affiliated with Google. This is an informational diagnostic record of public JobPosting structured-data and live-page signals; it is not a certification, approval, ranking, indexing, display, or compliance service.

### Related tools

- JobPosting Consistency Preflight - Use first when the issue is required-field consistency on a single run.
- Policy Page Drift Pack - Use when policy or legal pages also need latest-only drift records.
- Agency Evidence Pack - Use when job-page drift belongs in a broader client pack.

# Actor input Schema

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

Public job detail page URLs to check.

## `sitemapUrl` (type: `string`):

Optional public sitemap URL containing job detail pages.

## `feedCsvUrl` (type: `string`):

Optional public CSV URL with a job URL column such as jobUrl, url, link, or job\_url.

## `sampleLimit` (type: `integer`):

Maximum number of extracted job URLs to inspect.

## `stateStoreName` (type: `string`):

Optional named Apify key-value store for previous snapshots. Leave unchanged for normal scheduled use.

## `expiryWarningDays` (type: `integer`):

Mark validThrough as expiring soon when it is within this many days.

## Actor input object example

```json
{
  "jobUrls": [
    "https://api.apify.com/v2/key-value-stores/Ge9l6paMLvccf5JHh/records/batch4-jobposting.html?signature=9mKkdj1aoo1F0jVFQf02"
  ],
  "sampleLimit": 25,
  "stateStoreName": "jobposting-expiry-monitor-state",
  "expiryWarningDays": 14
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `report` (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 = {
    "jobUrls": [
        "https://api.apify.com/v2/key-value-stores/Ge9l6paMLvccf5JHh/records/batch4-jobposting.html?signature=9mKkdj1aoo1F0jVFQf02"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("checksmithcats/jobposting-expiry-monitor").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 = { "jobUrls": ["https://api.apify.com/v2/key-value-stores/Ge9l6paMLvccf5JHh/records/batch4-jobposting.html?signature=9mKkdj1aoo1F0jVFQf02"] }

# Run the Actor and wait for it to finish
run = client.actor("checksmithcats/jobposting-expiry-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "jobUrls": [
    "https://api.apify.com/v2/key-value-stores/Ge9l6paMLvccf5JHh/records/batch4-jobposting.html?signature=9mKkdj1aoo1F0jVFQf02"
  ]
}' |
apify call checksmithcats/jobposting-expiry-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=checksmithcats/jobposting-expiry-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/v9tVnNFHQfEtDe30d/builds/E4m6Ui7I4IarwiHST/openapi.json
