# jobs.ac.uk Academic Postdoc Jobs Scraper (`jobsapi/jobs-ac-uk-academic-postdoc-jobs-search-scraper`) Actor

Extract complete public postdoctoral job records from jobs.ac.uk search and detail pages with bounded requests and complete-only output.

- **URL**: https://apify.com/jobsapi/jobs-ac-uk-academic-postdoc-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 jobs.ac.uk postdoctoral positions

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

## jobs.ac.uk Academic Postdoc Jobs Scraper

Extracts complete public postdoctoral job records from jobs.ac.uk search cards, visible advert tables, `JobPosting` metadata, and source-authored description sections. Search data and exact detail pages are combined into one target-specific record.

### Input

- `urls`: one or more official HTTPS `jobs.ac.uk/search/` pages (up to 25). Duplicates and unsupported hosts are ignored.
- `maxJobs`: maximum complete records to persist, from 1 to 100.
- `maxPages`: maximum search pages to inspect, from 1 to 10.
- `maxDetailRequests`: hard detail-request cap, useful when sparse listings are skipped.
- `delayMs`: polite delay of at least 250 ms between sequential detail requests.
- `timeoutMs`: timeout for each public request.

The default input is a one-page, three-job postdoctoral smoke run.

### Output contract

The default dataset contains complete jobs only. Every row has a stable advert ID, title, employer and department, location, at least 80 characters of readable description, official jobs.ac.uk job/detail/source URLs, extraction time, and data-quality evidence. A normal row is emitted only when more than 20 distinct source facts are populated; IDs, URLs, repeated representations, and run metadata do not count toward that threshold.

Where the public advert publishes them, the record also preserves salary and exact salary wording, hours, contract type, placed/expiry dates, advert reference, role and subject taxonomy, employer and department details, structured locations, employer and department links, opening count, research programme, degree/discipline/recency requirements, essential and preferred research experience, duties, appointment duration and benefits, application procedure/referee requirements, and named contact details. Missing source fields are omitted. Description text and its separately labelled sections remain available for review.

Operational evidence is isolated in the default key-value store:

- `OUTPUT_SUMMARY`: counts and dynamic local/cloud provenance.
- `OUTPUT`: concise dataset/request/diagnostic counts for reconciliation.
- `RUN_HEALTH`: complete-only dataset health.
- `RUN_DIAGNOSTICS`: fetch, blocking, parsing, invalid-input, and sparse-record skips.
- `SOURCE_RECEIPTS`: status, timing, byte count, final URL, and SHA-256 hash for public responses.

`status` is the platform run status (`SUCCEEDED` or `FAILED`); `resultStatus` separately describes data outcome (`COMPLETE`, `LIMITED`, `SKIPPED`, `DEFERRED`, `NO_DATA`, or `FAILED`). Only explicit source-authored denial/challenge evidence is `SKIPPED`; generic transport unavailability is `DEFERRED`. Dataset counts include only rows whose `pushData` completed successfully. A zero-row fatal error fails the Actor; already stored rows remain `SUCCEEDED/LIMITED` after a later non-block error.

The Actor uses ordinary direct requests with no retries, proxy, custom user-agent, or fingerprint controls. Same-site redirects are followed manually and bounded; off-origin redirects are not fetched. A public response with HTTP 401, 403, 429, or 451, or a visible source-authored denial/CAPTCHA/human-verification/security challenge stops all further requests, discards every staged job row, and records `SKIPPED` with receipts. Generic transport failures and HTTP 407 are not reported as source blocks. The Actor never signs in, submits applications, or fetches external application destinations.

### Local validation

```bash
npm ci
npm test
```

For a local run, choose a new actor-relative store name each time, verify that it does not already exist, set `APIFY_LOCAL_STORAGE_DIR` to that relative path, and run:

```powershell
$env:APIFY_LOCAL_STORAGE_DIR='storage-local-validation-01'
apify run --resurrect --input-file ./INPUT.json
npm run validate:dataset -- storage-local-validation-01
```

No Cloud push or run is required by this Actor's local validation workflow.

# Actor input Schema

## `urls` (type: `array`):

One or more official jobs.ac.uk /search/ URLs. Duplicate URLs are removed.

## `maxJobs` (type: `integer`):

Maximum number of complete job records persisted across all inspected pages.

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

Maximum number of official search pages inspected across all seed URLs.

## `maxDetailRequests` (type: `integer`):

Maximum number of official job detail pages requested during the run.

## `delayMs` (type: `integer`):

Minimum polite delay in milliseconds between consecutive detail-page requests.

## `timeoutMs` (type: `integer`):

Per-request timeout in milliseconds for public search and detail pages.

## Actor input object example

```json
{
  "urls": [
    "https://www.jobs.ac.uk/search/?keywords=postdoctoral"
  ],
  "maxJobs": 3,
  "maxPages": 1,
  "maxDetailRequests": 25,
  "delayMs": 300,
  "timeoutMs": 30000
}
```

# Actor output Schema

## `output` (type: `string`):

No description

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

No description

## `summary` (type: `string`):

No description

## `health` (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/jobs-ac-uk-academic-postdoc-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/jobs-ac-uk-academic-postdoc-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/jobs-ac-uk-academic-postdoc-jobs-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jobsapi/jobs-ac-uk-academic-postdoc-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/uveXdnSl3xDVzieaC/builds/SlWEGh974PSQyYoBn/openapi.json
