# UK Gender Pay Gap Data by Employer & Company Number (`yappman/uk-gender-pay-gap`) Actor

UK gender pay gap data by employer (250+ staff), from the government's published files, keyed by Companies House company number: lookups, change between two years, peer comparison, whole-year pulls and late filers. Employer-level data as reported. Not affiliated with the UK Government.

- **URL**: https://apify.com/yappman/uk-gender-pay-gap.md
- **Developed by:** [Russell Yapp](https://apify.com/yappman) (community)
- **Categories:** Business, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 employer-year rows

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

## UK Gender Pay Gap by company number

UK gender pay gap figures per employer, read from the government's own downloadable files and keyed by Companies House company number. Five modes: look up employers, see the change between two years, compare one employer with its peer group, pull a whole year, or list late filers. Employer-level data only.

### Quick spec for AI agents

- Purpose: gender pay gap figures (mean and median hourly gap, mean and median bonus gap, bonus shares, pay quartiles) for UK employers with 250 or more staff, as each employer reported them to the government service, joined on company number.
- Input: `mode` (`lookup`, `change`, `compare`, `year`, `late`). lookup: `companyNumbers` (up to 500) and/or `names` (up to 200), optional `years` (empty = latest listed). change: `companyNumbers`, `fromYear`, `toYear`. compare: `companyNumber`, `by` (`sic2`, `sic5`, `sizeBand`, `postcodeArea`), optional `year`. year: `year`, optional `sizeBand`, `sicPrefix`, `submittedLate`, `hasCompanyNumber`. late: `year`. All modes: `maxItems` (paid-row cap, default 1000), `dryRun`.
- Output: dataset rows of `type` `employerYear` (one per employer per year), `change`, `compare` (an employer row plus `peerComparison`), or `notFound` (free).
- Every employer row carries `reportingYear`, `yearComplete`, `sourceUrl`, `sourceRetrievedAt`, `licence`, `attribution`. Missing values are `null`, never zero.
- Run summary: key `RUN_SUMMARY` in the key-value store (years read, rows, not-found count, events charged, stop reason).
- Charging: pay per event: one `run` event per run that returns at least one chargeable row, then one event per row: `employer-year`, `change` or `compare`. `notFound` rows and runs with no chargeable row cost nothing. The owner's own runs make no charge call. The `run` event is charged BEFORE any row: a user whose maximum charge covers the `run` event but not a single row pays for the run and receives zero rows (the run stops with reason `charge-limit`). Set a maximum charge of at least the `run` price plus the rows you want.
- Join key: `companyNumber`, text, leading zeros kept (for example `00002065`; Scottish and NI prefixes such as `SC` and `NI` kept). Name input returns `matchType` `exact`, `normalised` or `candidate`; a candidate is never a confirmed match.
- Limits: 500 company numbers, 200 names, 12 years per lookup, 20,000 rows per run, peer groups under 10 return a count only.
- Not provided: pay amounts in pounds, employee counts beyond the size band, any named individual (the responsible-person field and the employer address are not output), group roll-ups, employers that have not filed, real-time data.
- Not affiliated with the UK Government. Not legal or HR advice.

### Minimal example inputs

Look up employers by company number (latest year):

```json
{ "mode": "lookup", "companyNumbers": ["00002065", "01026167", "SC095000"] }
```

A company number that is in none of the files read gives one free `notFound` row (no charge) listing `triedYears`. Example: `{ "mode": "lookup", "companyNumbers": ["00445790"] }` was found in none of 2024-25, 2025-26 or 2026-27 when we checked on 20 Nov 2026 (an employer may report through a different group company, and group entities are not rolled up).

Look up by name (matches are labelled, check candidates):

```json
{ "mode": "lookup", "names": ["Lloyds Bank plc"], "years": ["2024-25", "2025-26"] }
```

Change between two years:

```json
{ "mode": "change", "companyNumbers": ["00002065"], "fromYear": "2024-25", "toYear": "2025-26" }
```

One employer against peers sharing the first two SIC digits:

```json
{ "mode": "compare", "companyNumber": "00002065", "by": "sic2", "year": "2025-26" }
```

All 2025-26 employers with a company number in financial services SIC 64, first 500:

```json
{ "mode": "year", "year": "2025-26", "sicPrefix": "64", "hasCompanyNumber": true, "maxItems": 500 }
```

Late filers:

```json
{ "mode": "late", "year": "2025-26" }
```

### Reading the numbers

- **No year given (lookup, compare):** each employer is reported from the newest of the three latest listed years in which it appears. The newest year's file fills only as employers file (the deadline is 4 April of the following year, so the 2026-27 file is partial until 4 April 2027). `reportingYear` and `yearComplete` are on every row, `RUN_SUMMARY.yearsRead` lists every file read; `yearsWithoutMatch` lists the files read that are NEWER than the newest file that returned any row (empty when the newest file contributed at least one employer); `yearsNotAvailable` lists listed years whose file did not exist; `note` says so in words. A key found in none of those years is a free `notFound` row listing `triedYears`. Name a `years` value to read exactly that year.

- A reporting year is named by the year the snapshot was taken, for example `2025-26` is the file at `.../download-data/2025`. The snapshot date is 5 April for private and voluntary employers (public sector 31 March) and the deadline falls a year later. `yearComplete` is `false` until that deadline has passed, and late filers keep arriving, so a figure set for the current year is partial.

- Gaps are percentages as reported. A positive figure means men are paid more on average; a negative figure means women are. `null` means the employer did not give a value.

- `change.changePp` is the later value minus the earlier one, in percentage points, and is `null` if either year lacks the value. `reportedInBothYears` says whether the employer is in both files.

- `peerComparison` states where the employer's median hourly gap sits against the median and quartiles of the other employers in the same file and group, with `peerCount` and a `method` text. It is descriptive, not a rating.

- Group entities can file under several company numbers. This Actor does not roll them up.

### What it does not do

- It does not call Companies House or use its API or data beyond the company number and name that the government file itself contains.
- It does not verify, rank, score or judge any employer. An employer's absence from a file does not mean it was not required to report, and the file cannot list employers that have not filed.
- It does not join to other registers; join on `companyNumber` yourself.

### Source, licence and attribution

Source: the UK government Gender pay gap service, https://gender-pay-gap.service.gov.uk/viewing/download. The service states its content is available under the Open Government Licence v3.0 except where otherwise stated. Every employer row carries the text: "Contains public sector information licensed under the Open Government Licence v3.0. Source: Gender pay gap service, https://gender-pay-gap.service.gov.uk/ (Crown copyright). Employer names and company numbers are originally from Companies House." Keep it with the data.

Figures are as reported by each employer. They are not verified by us. We do not judge them. Not affiliated with the UK Government. Not legal or HR advice. A high or low gap is not evidence of discrimination or of good practice.

### Privacy

Employer-level data only: organisation names, the service's employer id, employer postcodes (as the employer reported them), company numbers and the statistics. The responsible-person name and the employer address are never read or output. Some employers may be named after individuals (for example partnerships); the Actor does not look up or add anything about people.

### Fair use of the source

One GET per year file per run (about 4 MB), revalidated with ETag and Last-Modified and cached in a named key-value store on your account. No login, no proxy. If the site refuses the request, the run stops; it does not retry or escalate.

# Actor input Schema

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

lookup: employers by company number or name. change: gap change between two years. compare: one employer against its peer group. year: all employers in a year (bulk). late: employers that filed after the deadline.

## `companyNumbers` (type: `array`):

Up to 500 Companies House numbers, for example 00002065 or SC123456. Short numbers are padded to 8 characters.

## `names` (type: `array`):

Up to 200 names. Each match is labelled exact, normalised or candidate. A candidate is never a confirmed match: check the company number.

## `years` (type: `array`):

Reporting years such as 2025-26 or 2025. Empty means the latest year listed on the service download page.

## `fromYear` (type: `string`):

Reporting years such as 2025-26 or 2025.

## `toYear` (type: `string`):

Reporting years such as 2025-26 or 2025.

## `companyNumber` (type: `string`):

The employer to compare.

## `by` (type: `string`):

sic2: first two SIC digits; sic5: full SIC code; sizeBand; postcodeArea. Groups with fewer than 10 other employers return a count only.

## `year` (type: `string`):

Reporting years such as 2025-26 or 2025. In compare mode empty means the latest year.

## `sizeBand` (type: `string`):

Exactly as the service states it, for example 500 to 999.

## `sicPrefix` (type: `string`):

Digits, for example 64.

## `submittedLate` (type: `boolean`):

true: only late filers; false: only on-time filers.

## `hasCompanyNumber` (type: `boolean`):

true: private and voluntary sector employers that carry a company number.

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

Hard cap on charged rows per run.

## `maxCandidates` (type: `integer`):

Name matches returned per name.

## `dryRun` (type: `boolean`):

Validate the input and stop: no request, nothing charged.

## Actor input object example

```json
{
  "mode": "lookup",
  "companyNumbers": [
    "00002065",
    "01026167",
    "SC095000"
  ],
  "maxItems": 1000,
  "maxCandidates": 3,
  "dryRun": false
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `summary` (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 = {
    "mode": "lookup",
    "companyNumbers": [
        "00002065",
        "01026167",
        "SC095000"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("yappman/uk-gender-pay-gap").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 = {
    "mode": "lookup",
    "companyNumbers": [
        "00002065",
        "01026167",
        "SC095000",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("yappman/uk-gender-pay-gap").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 '{
  "mode": "lookup",
  "companyNumbers": [
    "00002065",
    "01026167",
    "SC095000"
  ]
}' |
apify call yappman/uk-gender-pay-gap --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yappman/uk-gender-pay-gap"
        }
    }
}
```

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/m8Vgmc0YTu495BpN5/builds/KDLu4QtNA2Vhl0e0G/openapi.json
