Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: borbur.net calculators Dhondt API
version: 1.2.0
description: 'Free calculators by Borja Burguillos (borbur.net): Spain net salary, Beckham Law, pensions, crypto and investment tax, UAE gratuity and golden visa, salary comparisons across countries, employer cost, relocation cost. Data CC BY 4.0, credit borbur.net. Every endpoint also accepts GET with query parameters. MCP server: https://borbur.net/mcp. Docs: https://borbur.net/developers/'
termsOfService: https://borbur.net/terms/
contact:
name: Borja Burguillos
email: borja@borbur.net
url: https://borbur.net/developers/#support
license:
name: Data CC BY 4.0, code MIT
url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://borbur.net
tags:
- name: Dhondt
paths:
/api/dhondt:
post:
operationId: dhondt_seats
summary: D'Hondt seat calculator
description: 'Shares out seats with the D''Hondt method as in Spain''s general elections (3% threshold over valid votes, blank votes count as valid). Give a Spanish province (its 2026 Congress seats are used) or a number of seats, and the votes per party. Source: https://borbur.net/tools/dhondt-calculator/'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
parties:
type: array
description: List of {name, votes}
items:
type: object
properties:
name:
type: string
votes:
type: number
required:
- name
- votes
province:
type: string
description: Spanish constituency, e.g. Madrid (optional)
seats:
type: number
description: Seats to share out (if no province)
blank:
type: number
description: Blank votes (default 0)
threshold:
type: number
description: Threshold in % (default 3)
required:
- parties
responses:
'200':
description: Result, with a source block (page URL on borbur.net, author, license).
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: Missing or invalid input; the body explains which field and gives an example.
tags:
- Dhondt
externalDocs:
url: https://borbur.net/developers/
description: borbur.net API and MCP docs