Free public API for UK tax calculations and cost-of-living data. No authentication required for read endpoints. HMRC 2025/26 rates. 29 UK cities.
Base URL
https://luxenta.polsia.app
/api/regions
List all UK cities
Returns all 29 UK cities with cost-of-living summary indices.
{
"success": true,
"regions": [
{
"id": 1,
"slug": "london",
"name": "London",
"country": "England",
"region_group": "London",
"is_featured": true,
"rent_1bed": 1850.00,
"cpi_index": 100,
"public_transport": 165.00,
"groceries_single": 320.00
},
...
]
}
/api/regions/:slug/detail
City detail with related cities
Returns full stats for one city, plus other cities in the same region.
| Param | In | Description |
|---|---|---|
| slug | path | City slug (e.g. london, manchester) |
GET /api/regions/manchester/detail
/api/tax-bands
HMRC income tax bands
Returns HMRC income tax bands with rates and thresholds for the specified tax year and country.
| Param | Default | Options |
|---|---|---|
| tax_year | 2025-26 | e.g. 2025-26 |
| country | England/Wales/NI | England/Wales/NI or Scotland |
{
"success": true,
"tax_year": "2025-26",
"country": "England/Wales/NI",
"bands": [
{ "band_name": "Personal Allowance", "lower_limit": 0, "upper_limit": 12570, "rate": 0 },
{ "band_name": "Basic Rate", "lower_limit": 12571, "upper_limit": 50270, "rate": 0.20 },
{ "band_name": "Higher Rate", "lower_limit": 50271, "upper_limit": 125140, "rate": 0.40 },
{ "band_name": "Additional Rate", "lower_limit": 125141, "upper_limit": null, "rate": 0.45 }
]
}
/api/tax/calculate
Calculate take-home pay
Returns a full tax breakdown for a given salary. Income tax, National Insurance, student loan, pension, and net monthly take-home.
| Param | Required | Description |
|---|---|---|
| salary | ✓ | Gross annual salary in GBP (e.g. 50000) |
| employment_type | — | paye (default) or freelance |
| region | — | City slug for COL breakdown (e.g. manchester) |
| student_loan_plan | — | none, plan1, plan2, plan4, plan5, postgrad |
| pension_percent | — | Pension contribution % (e.g. 5) |
| country | — | england (default) or scotland |
GET /api/tax/calculate?salary=50000®ion=manchester&student_loan_plan=plan2&pension_percent=5
{
"success": true,
"salary": 50000,
"tax_year": "2025-26",
"income_tax": 7486,
"national_insurance": 3228,
"student_loan": 2048,
"pension": 2500,
"total_deductions": 15262,
"net_annual": 34738,
"net_monthly": 2895,
"effective_rate": 30.5
}
/api/scenario
Full scenario with COL breakdown
Returns a complete life scenario: full tax breakdown + city cost of living + monthly surplus. Supports optional city comparison.
{
"salary": 50000,
"region": "manchester",
"employment_type": "paye",
"student_loan_plan": "plan2",
"pension_percent": 5,
"household_type": "single",
"comparison_region": "london" // optional
}
/api/reverse-calculator
Rank cities by affordability
Returns all 29 UK cities ranked by monthly surplus for a given salary. Useful for "where can I afford to live?" queries.
| Param | Required | Description |
|---|---|---|
| salary | ✓ | Gross annual salary |
| employment_type | — | paye or freelance |
| household_type | — | single, couple, family |
| min_surplus | — | Minimum monthly surplus filter (GBP) |
| max_rent | — | Maximum monthly rent filter (GBP) |
GET /api/reverse-calculator?salary=40000&employment_type=paye&household_type=single
/api/house-prices
ONS regional house prices
Returns ONS Q4 2024 average house prices by region. Optional region filter.
GET /api/house-prices?region=manchester
/api/mortgage/calculate
Mortgage + stamp duty calculator
Returns monthly mortgage payments, stamp duty (SDLT/LBTT/LTT), total interest, and amortisation schedule.
{
"house_price": 250000,
"deposit": 25000,
"term_years": 25,
"rate": 4.75,
"is_ftb": true,
"country": "england"
}
/api/discretionary-costs
City lifestyle costs
Returns discretionary spending costs for a city: pint of beer, flat white, restaurant meal, cinema ticket, gym membership, takeaway.
GET /api/discretionary-costs?region=edinburgh