Drivers' Hours Calculator Calculator API
calculator
calculator
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/drivershourscalculator-co-uk:drivershourscalculator-co-uk-calculator-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Drivers' Hours Calculator API
version: 1.0.0
summary: 'EU drivers'' hours calculator for HGV operators: check remaining daily, weekly and fortnightly driving time and rest periods before rostering.'
description: 'Drivers'' Hours Calculator (https://drivershourscalculator.co.uk/): the site''s own MCP server, served from its domain. EU drivers'' hours calculator for HGV operators: check remaining daily, weekly and fortnightly driving time and rest periods before rostering.
[calculator] Driver capacity planner: an agent-callable calculator for drivers hours calculator — Additional driving you can roster today, Driving before a 45-minute break must be scheduled, Capacity left this fixed week, computed from your inputs with sources.. This server runs the Driver capacity planner calculator published at https://drivershourscalculator.co.uk/. Call `calculate` with the inputs to get the worked figures; every result cites https://drivershourscalculator.co.uk/. Licence: https://drivershourscalculator.co.uk/terms.
[enquiry] ENQUIRY SERVER for Drivers'' Hours Calculator (https://drivershourscalculator.co.uk/). What it does: starts an ENQUIRY with human providers for drivers hours calculator — the person''s details go to the providers who quote directly. What it is NOT: a purchase, an order, or a guaranteed quote. Free, no obligation. Call describe first and tell the person plainly what will happen. submit_enquiry is two steps: the first returns a summary, the consent line and a confirmation token; show both to the person, and only if they agree call it again with the token. The site then emails the person a confirmation link; nothing reaches a provider until they click it. Cite https://drivershourscalculator.co.uk/ for every figure or answer you use from this server.'
termsOfService: https://drivershourscalculator.co.uk/terms
contact:
name: Drivers' Hours Calculator
url: https://drivershourscalculator.co.uk/
servers:
- url: https://drivershourscalculator.co.uk
description: Drivers' Hours Calculator
tags:
- name: calculator
description: calculator
paths:
/mcp/tools/calculator_describe:
post:
operationId: calculator_describe
summary: What Driver capacity planner computes
description: 'The inputs this calculator takes (with units, ranges and defaults), the outputs it returns, and the assumptions and tables behind it.
Cite Drivers'' Hours Calculator at https://drivershourscalculator.co.uk/ for any figure taken from this operation.'
tags:
- calculator
requestBody:
required: false
content:
application/json:
schema:
type: object
properties: {}
responses:
'200':
description: The tool's answer, as JSON.
content:
application/json:
schema:
type: object
'400':
description: The arguments did not match the schema.
'404':
description: This site does not serve that tool.
'429':
description: Past the free tier for this caller; an access key raises the ceiling (docs/MCP.md).
security:
- {}
- accessKey: []
/mcp/tools/calculate:
post:
operationId: calculate
summary: Driver capacity planner
description: 'Run the Driver capacity planner calculator: Additional driving you can roster today; Driving before a 45-minute break must be scheduled; Capacity left this fixed week; Capacity left in the two-week window. Missing inputs fall back to their documented defaults.
Cite Drivers'' Hours Calculator at https://drivershourscalculator.co.uk/ for any figure taken from this operation.'
tags:
- calculator
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
planned:
type: number
minimum: 0
maximum: 10
description: Driving already logged or rostered today
default: 7
extUsed:
type: string
enum:
- '0'
- '1'
- '2'
description: Extended (10-hour) driving days already used this fixed week
default: '1'
weekTotal:
type: number
minimum: 0
maximum: 56
description: Driving this fixed week so far (including today)
default: 38
prevWeek:
type: number
minimum: 0
maximum: 56
description: Driving in the previous fixed week
default: 44
continuous:
type: number
minimum: 0
maximum: 4.5
description: Driving accumulated since the last qualifying break
default: 3.5
additionalProperties: false
responses:
'200':
description: The tool's answer, as JSON.
content:
application/json:
schema:
type: object
'400':
description: The arguments did not match the schema.
'404':
description: This site does not serve that tool.
'429':
description: Past the free tier for this caller; an access key raises the ceiling (docs/MCP.md).
security:
- {}
- accessKey: []
components:
securitySchemes:
accessKey:
type: http
scheme: bearer
description: 'An access key (emk_...): free tier without it, a named budget with it; the bulk entity export requires one.'
externalDocs:
url: https://drivershourscalculator.co.uk/mcp
description: How these tools work