# Higherin Scraper (`dakheera47/higherin-scraper`) Actor

Scrape Higherin graduate jobs, internships, placements and apprenticeships. Search by keyword or collect all jobs, with optional UK visa sponsor data.

- **URL**: https://apify.com/dakheera47/higherin-scraper.md
- **Developed by:** [Shaheer Sarfaraz](https://apify.com/dakheera47) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 job scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Higherin Job Scraper: UK Graduate Jobs, Internships & Apprenticeships

An [Apify Actor](https://apify.com/) and TypeScript scraper for collecting
structured job listings from [Higherin](https://higherin.com/search-jobs).
Scrape UK graduate schemes, internships, placements, apprenticeships, and
entry-level roles into an Apify dataset with job-detail data and optional
employer visa-sponsorship enrichment.

### Features

- Search Higherin with a job keyword, or leave the query blank to crawl all
  available listings.
- Follow Higherin pagination automatically and de-duplicate job URLs.
- Visit every job detail page and extract descriptions, deadlines, job types,
  roles, locations, company information, salary, and structured JobPosting
  metadata.
- Apply fuzzy matching across listing and detail-page text after enrichment.
- Keep a listing when its detail page fails, and report failed detail URLs in
  the run summary.
- Optionally match employers against the GB sponsor registry using the
  [`@dakheera47/visa-sponsor-data`](https://www.npmjs.com/package/@dakheera47/visa-sponsor-data)
  package.
- Export normalized records through the Apify dataset and run statistics through
  the `OUTPUT` key-value record.

### Input

The Actor input is a JSON object. Both controls are available in the Apify
input UI:

```json
{
  "searchQuery": "software engineer",
  "enrichSponsorship": true
}
```

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQuery` | string | `""` | Optional fuzzy search term. An empty string returns all available Higherin jobs. |
| `enrichSponsorship` | boolean | `true` | Add `sponsorRegistry` employer matches. Set to `false` to skip sponsor matching and its paid event. |

### Scraped job data

Every dataset item includes the original Higherin fields plus normalized fields
for downstream job search, filtering, and visa-sponsorship analysis:

- Core fields: `source`, `sourceJobId`, `title`, `employer`, and `jobUrl`
- Listing fields: `jobTypeName`, `deadline`, `employmentStartDate`, `salary`,
  `salaryNotes`, `jobLocationNames`, `relevantFor`, company IDs, logos, and
  employer badges
- Detail-page fields: `jobDescription`, `jobRoles`, `locations`, `location`,
  `companyDescription`, `companyProfileUrl`, `datePosted`, `validThrough`, and
  `employmentType`
- Optional sponsorship data: `sponsorRegistry`, including match status,
  confidence, match method, registry records, and source update time

The dataset schema is defined in
[`.actor/dataset_schema.json`](.actor/dataset_schema.json). The Apify input and
output definitions are in [`.actor/input_schema.json`](.actor/input_schema.json)
and [`.actor/output_schema.json`](.actor/output_schema.json).

### How the scraper works

1. Fetch Higherin’s job-search JSON endpoint.
2. Follow every `nextPageUrl` returned by Higherin pagination.
3. Normalize and de-duplicate the listings.
4. Fetch each canonical job detail page and parse server-rendered HTML plus
   `JobPosting` JSON-LD metadata.
5. Apply `searchQuery` matching across the completed records.
6. Add optional sponsor-registry matches and push the final records to Apify.

Detail-page failures do not discard the original listing. The `OUTPUT` record
reports the result count, failed detail count, sponsorship status, and any
sponsorship setup error.

### Sponsor enrichment and pricing

Sponsor enrichment is enabled by default and is visible as the
`Include sponsor enrichment` control in the Apify input UI. When enabled, the
Actor initializes the GB sponsor registry matcher and pushes the enriched batch
with the `sponsor-enrichment` pay-per-event name.

If the pricing event is not configured or the registry cannot be initialized,
the scrape continues without sponsor data and records the reason as
`sponsorshipError` in `OUTPUT`. Set `enrichSponsorship` to `false` to avoid
matcher setup and paid enrichment entirely.

### Local development

```bash
npm ci
npm run check
CRAWLEE_STORAGE_DIR=/tmp/higherin-job-actor npm run start:dev
```

The production image is built with the included `Dockerfile` and runs
`dist/actor.js`. To deploy, connect this repository to an Apify Actor and use
the generated input, dataset, and output schemas from the `.actor` directory.

### Related use cases

This Higherin scraper is useful for building graduate job boards, internship
alerts, UK placement search tools, apprenticeship datasets, employer research
pipelines, and visa-sponsorship job discovery workflows.

# Actor input Schema

## `searchQuery` (type: `string`):

Optional fuzzy search across the full job listing and detail text. Leave blank to return all jobs.

## `enrichSponsorship` (type: `boolean`):

Match employers against the GB sponsor registry and include sponsorRegistry in each result. Disable to avoid paid enrichment charges.

## Actor input object example

```json
{
  "searchQuery": "",
  "enrichSponsorship": true
}
```

# Actor output Schema

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

All normalized Higherin job records, including detail-page fields and optional sponsor enrichment.

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

Counts, failed detail URLs, and sponsorship enrichment status for the run.

# 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("dakheera47/higherin-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("dakheera47/higherin-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 dakheera47/higherin-scraper --silent --output-dataset

```

## MCP server setup

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