Borbur Salary & Tax Calculators Spain Investment Tax API

The Spain Investment Tax API from Borbur Salary & Tax Calculators, for spain investment tax.

GitHub OpenAPI
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).

Operations 1

POST /api/spain-investment-tax Spain investment tax 2026 (savings, shares, crypto) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/borbur:borbur-spain-investment-tax-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

borbur-spain-investment-tax-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: borbur.net calculators Spain Investment Tax 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: Spain Investment Tax
paths:
  /api/spain-investment-tax:
    post:
      operationId: spain_investment_tax
      summary: Spain investment tax 2026 (savings, shares, crypto)
      description: 'Spanish tax on the savings base in 2026: interest and dividends plus net gains from selling shares, funds or crypto, on the 19%-30% scale, with loss offsetting (25% cross-offset, 4-year carry-forward), bank withholding of 19% and the UAE comparison (0%). Source:…'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                interest_dividends:
                  type: number
                  description: Interest plus dividends for the year in euros (negative if a net loss in this group)
                gains:
                  type: number
                  description: Net gains minus losses from selling shares, funds or crypto in euros (negative for a net loss)
              required: []
      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:
      - Spain Investment Tax
externalDocs:
  url: https://borbur.net/developers/
  description: borbur.net API and MCP docs