{
  "openapi": "3.1.0",
  "info": {
    "title": "borbur.net calculators",
    "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"
    }
  ],
  "paths": {
    "/api/spain-net-salary": {
      "post": {
        "operationId": "spain_net_salary",
        "summary": "Spain net salary 2026",
        "description": "Net (take-home) pay in Spain in 2026 from a gross annual salary, using the official AEAT withholding algorithm and 2026 Social Security rates. Single employee, no children, under 65, permanent contract. Returns Social Security, withholding rate, withholding and net per year and per month (12 or 14…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in euros (e.g. 50000)"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/beckham-law": {
      "post": {
        "operationId": "spain_beckham_law",
        "summary": "Spain Beckham Law vs normal tax 2026",
        "description": "Compares take-home pay in Spain in 2026 under the Beckham Law special regime for people moving to Spain (24% flat up to EUR 600,000, 47% above) and under the normal income tax regime, for a gross annual employment salary. Source: https://borbur.net/tools/beckham-law-calculator/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in euros"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/us-net-salary": {
      "post": {
        "operationId": "us_net_salary",
        "summary": "US take-home pay 2026 (federal)",
        "description": "US take-home pay in 2026 for a single filer with the standard deduction: federal income tax plus Social Security (6.2% up to $184,500) and Medicare (1.45%, +0.9% above $200,000). No state income tax. Source: https://borbur.net/tools/us-salary-in-spain/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in US dollars"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/dubai-salary-in-spain": {
      "post": {
        "operationId": "dubai_salary_in_spain",
        "summary": "Dubai salary: the Spanish gross that matches",
        "description": "For a monthly salary in Dubai (no income tax), the gross annual salary needed in Spain in 2026 to take home the same amount. Source: https://borbur.net/tools/dubai-salary-in-spain/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "aed_month": {
                    "type": "number",
                    "description": "Monthly salary in Dubai in UAE dirhams (AED)"
                  }
                },
                "required": [
                  "aed_month"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/spanish-salary-in-dubai": {
      "post": {
        "operationId": "spanish_salary_in_dubai",
        "summary": "Spanish salary: the Dubai pay that matches",
        "description": "For a gross annual salary in Spain, the monthly Dubai salary (AED) that leaves the same take-home pay, and how much more is kept if the same gross is paid in Dubai. Source: https://borbur.net/tools/spanish-salary-in-dubai/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in Spain in euros"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/us-salary-in-spain": {
      "post": {
        "operationId": "us_salary_in_spain",
        "summary": "US salary: the Spanish gross that matches",
        "description": "For a US gross annual salary, the gross salary needed in Spain in 2026 to take home the same (US federal tax + FICA, no state tax; Spain single, no children). Source: https://borbur.net/tools/us-salary-in-spain/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "usd": {
                    "type": "number",
                    "description": "US gross annual salary in dollars"
                  }
                },
                "required": [
                  "usd"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/spanish-salary-in-the-us": {
      "post": {
        "operationId": "spanish_salary_in_the_us",
        "summary": "Spanish salary: the US pay that matches",
        "description": "For a gross annual salary in Spain, the US salary that leaves the same take-home pay in a state with no income tax. Source: https://borbur.net/tools/spanish-salary-in-the-us/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in Spain in euros"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/uk-net-salary": {
      "post": {
        "operationId": "uk_net_salary",
        "summary": "UK take-home pay 2026/27",
        "description": "UK take-home pay in 2026/27 (England, Wales, Northern Ireland): income tax (personal allowance £12,570, tapered above £100,000; 20%, 40%, 45%) and employee National Insurance (8% to £50,270, 2% above). Source: https://borbur.net/tools/uk-salary-in-spain/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in pounds sterling"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/uk-salary-in-spain": {
      "post": {
        "operationId": "uk_salary_in_spain",
        "summary": "UK salary: the Spanish gross that matches",
        "description": "For a UK gross annual salary, the gross salary needed in Spain in 2026 to take home the same (UK 2026/27 income tax + NI; Spain single, no children). Source: https://borbur.net/tools/uk-salary-in-spain/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gbp": {
                    "type": "number",
                    "description": "UK gross annual salary in pounds"
                  }
                },
                "required": [
                  "gbp"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/spanish-salary-in-the-uk": {
      "post": {
        "operationId": "spanish_salary_in_the_uk",
        "summary": "Spanish salary: the UK pay that matches",
        "description": "For a Spanish gross annual salary in euros, the UK salary that leaves the same take-home pay (Spain 2026; UK 2026/27 income tax + NI, England, Wales, Northern Ireland). Source: https://borbur.net/tools/spanish-salary-in-the-uk/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in Spain in euros"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/canada-net-salary": {
      "post": {
        "operationId": "canada_net_salary",
        "summary": "Canada take-home pay 2026 (Ontario)",
        "description": "Canadian take-home pay in 2026 in Ontario for a single employee: federal and Ontario income tax (with the Ontario surtax and Health Premium), CPP, CPP2 and Employment Insurance. Source: https://borbur.net/tools/canada-salary-in-dubai/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary in Canadian dollars"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/canada-salary-in-dubai": {
      "post": {
        "operationId": "canada_salary_in_dubai",
        "summary": "Canadian salary: the Dubai pay that matches",
        "description": "For a Canadian (Ontario) gross annual salary, the Dubai salary in AED that leaves the same take-home pay (no income tax in the UAE). Ontario 2026 rules, single employee. Source: https://borbur.net/tools/canada-salary-in-dubai/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cad": {
                    "type": "number",
                    "description": "Canadian gross annual salary in Canadian dollars"
                  }
                },
                "required": [
                  "cad"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/dubai-salary-in-canada": {
      "post": {
        "operationId": "dubai_salary_in_canada",
        "summary": "Dubai salary: the Canadian pay that matches",
        "description": "For a monthly Dubai salary in AED (tax-free), the gross annual salary needed in Ontario, Canada, in 2026 to take home the same. Source: https://borbur.net/tools/dubai-salary-in-canada/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "aed_month": {
                    "type": "number",
                    "description": "Monthly salary in Dubai in UAE dirhams (AED)"
                  }
                },
                "required": [
                  "aed_month"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/uae-gratuity": {
      "post": {
        "operationId": "uae_gratuity",
        "summary": "UAE end-of-service gratuity",
        "description": "UAE private-sector end-of-service gratuity under Federal Decree-Law 33 of 2021: 21 days of basic salary per year for the first 5 years, 30 days per year after, capped at 2 years of basic salary. Give years of service or days of service. Source: https://borbur.net/tools/uae-gratuity-calculator/",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "basic": {
                    "type": "number",
                    "description": "Last basic monthly salary in AED"
                  },
                  "years": {
                    "type": "number",
                    "description": "Years of service (may be decimal)"
                  },
                  "days": {
                    "type": "number",
                    "description": "Days of service (alternative to years)"
                  }
                },
                "required": [
                  "basic"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/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."
          }
        }
      }
    },
    "/api/digital-money-glossary": {
      "post": {
        "operationId": "digital_money_glossary",
        "summary": "Digital money for HR: glossary",
        "description": "Looks up plain-language definitions of 60 digital-money terms for HR, finance and compliance teams (stablecoin, e-money token, payment token, multi-issuance, redemption, MiCA, GENIUS Act, Wage Protection System, Pay Transparency Directive, token grant, vesting and more), each with why it matters…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "term": {
                    "type": "string",
                    "description": "Term or word to look up, e.g. multi-issuance (optional)"
                  },
                  "lang": {
                    "type": "string",
                    "description": "en or es (default en)"
                  },
                  "limit": {
                    "type": "number",
                    "description": "Maximum terms to return, 1-60 (default 20)"
                  },
                  "offset": {
                    "type": "number",
                    "description": "Terms to skip, for the next page (default 0)"
                  }
                },
                "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."
          }
        }
      }
    },
    "/api/digital-money-readiness-check": {
      "post": {
        "operationId": "digital_money_readiness_check",
        "summary": "HR digital-money readiness check",
        "description": "Scores a company's HR readiness for stablecoins, pay transparency and AI rules on 10 questions (jobs, pay, payroll, pay transparency, AI accountability, pipeline, risk talent, structure, evaluation, skills). Give answers as 10 digits in question order: 2 = yes, 1 = partly, 0 = no (e.g.…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "answers": {
                    "type": "string",
                    "description": "10 digits, each 0, 1 or 2, in question order (optional)"
                  },
                  "lang": {
                    "type": "string",
                    "description": "en or es (default en)"
                  }
                },
                "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."
          }
        }
      }
    },
    "/api/salary-tax-comparator": {
      "post": {
        "operationId": "salary_tax_comparator",
        "summary": "Salary tax comparator (20 countries)",
        "description": "Compares take-home pay, income tax, employee social security, employer cost and the total tax wedge for the same gross salary in 20 countries under 2026 rules (single employee, no children, standard deductions): Spain, Portugal, France (Paris), Germany, Italy (Milan), Netherlands, Belgium,…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the salary (default EUR)"
                  },
                  "expat": {
                    "type": "boolean",
                    "description": "Foreign professional (default false)"
                  },
                  "country": {
                    "type": "string",
                    "description": "Optional country code: es, pt, fr, de, it, nl, be, ie, uk, ch, se, pl, us, ca, mx, ae, sg, jp, ru, cn"
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/take-home-pay-by-country": {
      "post": {
        "operationId": "take_home_pay_by_country",
        "summary": "Take-home pay by country: UAE, Saudi Arabia, Qatar, Spain, Portugal, UK, US, Canada, India (2026)",
        "description": "Net (take-home) pay for the same gross annual salary in nine countries under 2026 rules, for a single employee with no children: UAE, Saudi Arabia and Qatar (no income tax for expatriates), Spain (normal regime and the 24% Beckham Law regime), Portugal, United Kingdom (England), United States…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "gross": {
                    "type": "number",
                    "description": "Gross annual salary (e.g. 60000)"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the salary. Default EUR",
                    "enum": [
                      "EUR",
                      "USD",
                      "GBP",
                      "AED",
                      "SAR",
                      "QAR",
                      "INR",
                      "CAD"
                    ]
                  }
                },
                "required": [
                  "gross"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/spain-minimum-wage-2027": {
      "post": {
        "operationId": "spain_minimum_wage_2027",
        "summary": "Spain minimum wage 2027",
        "description": "Spain's minimum wage (SMI) from 1 January 2027 under Real Decreto 1013/2026: EUR 1,286 a month in 14 payments, EUR 18,004 a year, EUR 42.87 a day; net after 6.52% employee Social Security; no income tax thanks to the EUR 1,033.58 deduction of Real Decreto-ley 38/2026 (phased out at EUR 23,171.89).…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "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."
          }
        }
      }
    },
    "/api/spain-pension": {
      "post": {
        "operationId": "spain_pension",
        "summary": "Spain retirement pension 2026",
        "description": "Spain's state retirement pension (pension de jubilacion contributiva, Regimen General) in 2026: percentage of the base reguladora earned by the years contributed (50% at 15 years; in 2026 +0.21% a month for 49 months then +0.19%; from 2027 +0.19% for 248 months then +0.18%; 100% at 36 years 6…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "base": {
                    "type": "number",
                    "description": "Average monthly contribution base in euros (base de cotizacion), e.g. 2000. Max 5101.20."
                  },
                  "years": {
                    "type": "number",
                    "description": "Years contributed, 15 to 50 (decimals allowed, e.g. 36.5)."
                  },
                  "retire_year": {
                    "type": "number",
                    "description": "Year of retirement: 2026, or 2027 or later (different scale). Default 2026."
                  }
                },
                "required": [
                  "base",
                  "years"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/spain-visa-income": {
      "post": {
        "operationId": "spain_visa_income",
        "summary": "Spain visa income checker 2026 (digital nomad and non-lucrative)",
        "description": "Checks income and savings against Spain's 2026 thresholds: digital nomad visa (200% of the minimum wage a month, EUR 2,442 official or EUR 2,849 prorated, plus family) and non-lucrative visa (400% of the IPREM, EUR 28,800 a year, plus EUR 7,200 per family member). Accepts EUR, USD, GBP, CAD or…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monthly_income": {
                    "type": "number",
                    "description": "Monthly income in the chosen currency"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "EUR",
                      "USD",
                      "GBP",
                      "CAD",
                      "AED"
                    ],
                    "description": "Default EUR"
                  },
                  "income_type": {
                    "type": "string",
                    "enum": [
                      "work",
                      "passive"
                    ],
                    "description": "work = remote work for companies/clients outside Spain (digital nomad); passive = pensions, rents, dividends (non-lucrative). Default work"
                  },
                  "savings": {
                    "type": "number",
                    "description": "Savings in the chosen currency (counts for the non-lucrative visa)"
                  },
                  "family_members": {
                    "type": "number",
                    "description": "Family members joining, 0-12"
                  }
                },
                "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."
          }
        }
      }
    },
    "/api/uae-golden-visa": {
      "post": {
        "operationId": "uae_golden_visa",
        "summary": "UAE Golden Visa and Green Visa checker",
        "description": "Checks which UAE long-term visa routes a person meets: Golden Visa (property or investment of AED 2 million; skilled professional with a degree, MOHRE level 1-2 and AED 30,000 a month), Green Visa (skilled employee AED 15,000 a month; freelancer AED 360,000 a year) and the remote work visa…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monthly_salary": {
                    "type": "number",
                    "description": "Monthly salary in the chosen currency"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "AED",
                      "EUR",
                      "USD",
                      "GBP",
                      "CAD"
                    ],
                    "description": "Default AED"
                  },
                  "work": {
                    "type": "string",
                    "enum": [
                      "uae",
                      "remote",
                      "free",
                      "none"
                    ],
                    "description": "uae = employed by a UAE company; remote = works for an employer/clients abroad; free = freelancer; none"
                  },
                  "education": {
                    "type": "string",
                    "enum": [
                      "degree",
                      "diploma",
                      "none"
                    ]
                  },
                  "mohre_level": {
                    "type": "string",
                    "enum": [
                      "12",
                      "3",
                      "other"
                    ],
                    "description": "MOHRE skill level of the UAE job: 12 = level 1 or 2, 3 = level 3"
                  },
                  "property_aed": {
                    "type": "number"
                  },
                  "investment_aed": {
                    "type": "number"
                  },
                  "freelance_income_aed": {
                    "type": "number",
                    "description": "Yearly freelance income in AED"
                  }
                },
                "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."
          }
        }
      }
    },
    "/api/tax-residency-days": {
      "post": {
        "operationId": "tax_residency_days",
        "summary": "Tax-residency day counter (Spain, UAE, Portugal, US)",
        "description": "Counts days per country from a list of trips and applies each day test: Spain more than 183 days in the calendar year, UAE 183 days in any 12 months (or 90 with residence and home/job), Portugal more than 183 days in any 12 months, US substantial presence test. Trips as…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "number",
                    "description": "Tax year, e.g. 2026"
                  },
                  "trips": {
                    "type": "string",
                    "description": "Comma-separated COUNTRY_YYYYMMDD_YYYYMMDD (countries ES, AE, PT, US); in MCP or POST also an array of {country, from: 'YYYY-MM-DD', to: 'YYYY-MM-DD'}"
                  }
                },
                "required": [
                  "trips"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/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."
          }
        }
      }
    },
    "/api/spain-crypto-tax": {
      "post": {
        "operationId": "spain_crypto_tax",
        "summary": "Spain crypto tax calculator (FIFO, swaps, Modelo 721)",
        "description": "Spanish tax on crypto gains for one year, common regime (not Basque Country or Navarre). Takes a list of trades (buy, sell, swap) with their EUR values and fees, applies FIFO per crypto across all wallets (DGT criterion), treats crypto-to-crypto swaps as disposals at market value, adds fees to…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "trades": {
                    "type": "array",
                    "description": "Trades: objects {date:'YYYY-MM-DD', type:'buy'|'sell'|'swap', asset, amount, eur (total EUR market value, excluding fee), fee (EUR), toAsset and toAmount (swaps only)}",
                    "items": {
                      "type": "object"
                    }
                  },
                  "csv": {
                    "type": "string",
                    "description": "Alternative to trades: CSV text with header date,type,asset,amount,eur,fee,toAsset,toAmount (Spanish headers and ; also accepted). In a URL, separate lines with |"
                  },
                  "year": {
                    "type": "number",
                    "description": "Tax year. Default: the latest year with a sale or swap"
                  },
                  "foreign_balance_eur": {
                    "type": "number",
                    "description": "Optional: EUR value of crypto held with providers outside Spain on 31 Dec of that year (for the Modelo 721 check)"
                  },
                  "last_721_eur": {
                    "type": "number",
                    "description": "Optional: value declared in your last Modelo 721"
                  }
                },
                "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."
          }
        }
      }
    },
    "/api/employer-cost": {
      "post": {
        "operationId": "employer_cost",
        "summary": "Employer cost of an employee in 17 countries (2026)",
        "description": "What an employee costs the employer on top of the salary, with 2026 rules, in the UAE, Singapore, United Kingdom, Spain, Italy, France, Germany, Switzerland, Poland, United States, Canada, Portugal, Netherlands, Uruguay, Thailand, India and Denmark. Adds employer social security and payroll taxes,…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countries": {
                    "type": "string",
                    "description": "Comma-separated codes: ae,sg,gb,es,it,fr,de,ch,pl,us,ca,pt,nl,uy,th,in,dk, or 'all'. Default all"
                  },
                  "salary": {
                    "type": "number",
                    "description": "Annual gross salary, including any 13th/14th month or holiday allowance (e.g. 60000)"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the salary. Default USD",
                    "enum": [
                      "USD",
                      "EUR",
                      "GBP",
                      "AED",
                      "CHF",
                      "SGD",
                      "CAD",
                      "PLN",
                      "DKK",
                      "INR",
                      "THB",
                      "UYU"
                    ]
                  },
                  "uae_employee": {
                    "type": "string",
                    "enum": [
                      "expat",
                      "emirati"
                    ]
                  },
                  "uae_basic_pct": {
                    "type": "number"
                  },
                  "sg_employee": {
                    "type": "string",
                    "enum": [
                      "local",
                      "foreign"
                    ]
                  },
                  "ch_age": {
                    "type": "string",
                    "enum": [
                      "35-44",
                      "25-34",
                      "45-54",
                      "55-65"
                    ]
                  }
                },
                "required": [
                  "salary"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/relocation-cost": {
      "post": {
        "operationId": "relocation_cost",
        "summary": "Cost of relocating an employee between 17 countries (2026)",
        "description": "Total cost to the company of moving an employee from one country to another (UAE, Singapore, United Kingdom, Spain, Italy, France, Germany, Switzerland, Poland, United States, Canada, Portugal, Netherlands, Uruguay, Thailand, India, Denmark), for three package types: local transfer (host salary…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Home country code: ae,sg,gb,es,it,fr,de,ch,pl,us,ca,pt,nl,uy,th,in,dk"
                  },
                  "to": {
                    "type": "string",
                    "description": "Host country code (same list)"
                  },
                  "salary": {
                    "type": "number",
                    "description": "Annual gross salary"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "USD",
                      "EUR",
                      "GBP",
                      "AED",
                      "CHF",
                      "SGD",
                      "CAD",
                      "PLN",
                      "DKK",
                      "INR",
                      "THB",
                      "UYU"
                    ],
                    "description": "Default USD"
                  },
                  "adults": {
                    "type": "number",
                    "description": "1 or 2 adults moving. Default 1"
                  },
                  "kids": {
                    "type": "number",
                    "description": "Children, 0 to 6. Default 0"
                  },
                  "years": {
                    "type": "number",
                    "description": "Length of the move, 1 to 5 years. Default 3"
                  },
                  "housing": {
                    "type": "number",
                    "description": "Housing allowance per month, in the currency. Default 0"
                  },
                  "school": {
                    "type": "number",
                    "description": "School fees per child per year, in the currency. Default 0"
                  },
                  "tax": {
                    "type": "number",
                    "description": "Host tax rate % for the gross-up. Default: host top rate"
                  }
                },
                "required": [
                  "from",
                  "to",
                  "salary"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/uae-gpssa-contribution": {
      "post": {
        "operationId": "uae_gpssa_contribution",
        "summary": "UAE GPSSA pension contribution for an Emirati employee",
        "description": "Monthly GPSSA pension contributions for a UAE national in the private sector (all emirates except Abu Dhabi). 2023 law (first registered on or after 31 Oct 2023): employee 11%, employer 15%, of which the government pays 2.5 points when the contribution salary is under AED 20,000. 1999 law…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "salary": {
                    "type": "number",
                    "description": "Monthly contribution salary in AED (contract salary)"
                  },
                  "law": {
                    "type": "string",
                    "enum": [
                      "2023",
                      "1999"
                    ],
                    "description": "Default 2023"
                  }
                },
                "required": [
                  "salary"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/savings-inflation-bitcoin": {
      "post": {
        "operationId": "savings_inflation_bitcoin",
        "summary": "Savings vs inflation vs Bitcoin calculator",
        "description": "Shows what a sum (once, or every month) kept in cash lost to inflation since a start month, and what it would be worth in Bitcoin, using monthly Bitcoin closes and Spain HICP (EUR) or US CPI (USD) since 2013, with the worst Bitcoin drawdown on the way. Source:…",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "description": "Amount saved (once or each month)"
                  },
                  "start": {
                    "type": "string",
                    "description": "Start month YYYY-MM (from 2013-01)"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "EUR",
                      "USD"
                    ]
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "once",
                      "monthly"
                    ],
                    "description": "Default once"
                  }
                },
                "required": [
                  "amount",
                  "start"
                ]
              }
            }
          }
        },
        "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."
          }
        }
      }
    },
    "/api/ai-agent-accountability-check": {
      "post": {
        "operationId": "ai_agent_accountability_check",
        "summary": "AI agent accountability check",
        "description": "Checks whether a company can say who answers for each AI agent it runs, on 10 questions (list of agents, named owner, written limits, sign-off above limits, log, off-switch, notice to staff and candidates, human review, cost, training), based on the Air Canada chatbot ruling, UAE data protection law",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "answers": {
                    "type": "string",
                    "description": "10 digits, each 0, 1 or 2, in question order (optional)"
                  },
                  "lang": {
                    "type": "string",
                    "description": "en, es or ar (default en)"
                  }
                },
                "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."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  },
  "externalDocs": {
    "url": "https://borbur.net/developers/",
    "description": "borbur.net API and MCP docs"
  }
}