# UK Working Days Count

> UK Working Days Count is a paid API for AI agents from uk-data.agent-fee-check.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Counts UK working days between two dates for a specified UK region, listing bank holidays that fall on weekdays within the range.

## Facts

- Endpoint: GET https://uk-data.agent-fee-check.workers.dev/working-days/count?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-working-days-count-d345a0e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6hcN4NXGrb0grBi-IzJcN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability uk-working-days-count-d345a0e3
```

Example prompt: How many working days are there from December 1st to December 31st 2026 in England and Wales, and which bank holidays fall on weekdays in that period?

## When to prefer this

Use this endpoint when you need an authoritative, official UK working-day count that correctly handles bank holidays per region (England & Wales, Scotland, Northern Ireland). Prefer it over generic date-math libraries that don't know UK bank holidays, or when you need region-specific results (e.g. Scotland has different bank holidays). Ideal for payroll, invoicing, project planning, SLA calculations, and any deadline computation that must account for UK public holidays.

## Known failure modes

- Missing required 'from' or 'to' query parameters returns a 400 error
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- Invalid region value (not one of the three allowed enums) returns an error
- Date range where 'to' is before 'from' may return zero or error
- Payment not completed results in 402 with a free preview response

## How this service works

UK public data for AI agents, one origin, pay per call: a one-call postcode report, street crime, live flood warnings, property sales and the House Price Index, food hygiene ratings, MP lookup, NHS GPs, pharmacies and dentists, Companies House checks and search, UK working days and bank holidays, and the cheapest card machine provider. Official sources, attribution in every answer, free preview in every 402, failed requests never charged.

## Output

Returns a JSON object with: total working days count, total calendar days, weekend day count, the from/to dates, the UK region, a human-readable summary string, and an array of bank holiday objects (each with date and title) that fall on weekdays within the specified range.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Last day, inclusive, YYYY-MM-DD"
      },
      "from": {
       "type": "string",
       "description": "First day, YYYY-MM-DD"
      },
      "region": {
       "enum": [
        "england-and-wales",
        "scotland",
        "northern-ireland"
       ],
       "type": "string",
       "description": "england-and-wales (default), scotland or northern-ireland"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "2026-12-31",
  "from": "2026-12-01",
  "region": "england-and-wales",
  "summary": "21 working days from 2026-12-01 to 2026-12-31 inclusive in England and Wales (2 weekday bank holidays).",
  "weekend_days": 8,
  "working_days": 21,
  "bank_holidays": [
   {
    "date": "2026-12-25",
    "title": "Christmas Day"
   },
   {
    "date": "2026-12-28",
    "title": "Boxing Day"
   }
  ],
  "calendar_days": 31
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-working-days-count-d345a0e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uk-data.agent-fee-check.workers.dev](https://www.zero.xyz/host/uk-data.agent-fee-check.workers.dev/llms.txt)
