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: SwitchWize Data Compute API
version: '2026-10-23'
description: Read access to SwitchWize verified data. Every response carries its as-of date and attribution. Services read data through this API, never from the database.
servers:
- url: https://www.switchwize.com/api/v1
tags:
- name: Compute
paths:
/compute/post-tax-yield:
post:
summary: Post-tax yield on cash
description: Federal tax, the 3.8% net investment income tax, state and local tax on interest, and the break-even yield for a Treasury-backed fund.
operationId: compute_post_tax_yield
tags:
- Compute
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PostTaxYieldRequest'
responses:
'200':
description: The computed result.
'400':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
PostTaxYieldRequest:
type: object
required:
- balance
- apy
- grossIncome
- filingStatus
properties:
balance:
type: number
minimum: 0
description: Cash balance in dollars.
apy:
type: number
minimum: 0
description: Headline APY as a decimal, 0.05 for 5%.
grossIncome:
type: number
minimum: 0
filingStatus:
enum:
- single
- married
- hoh
stateCode:
type:
- string
- 'null'
description: Two-letter state code, or null for federal only.
usTreasuryPct:
type: number
minimum: 0
maximum: 1
description: 0 for a bank account, 1 for a T-bill.
localTaxRate:
type: number
minimum: 0
maximum: 1
otherNetInvestmentIncome:
type: number
minimum: 0
compareBankApy:
type: number
minimum: 0
description: With usTreasuryPct, also returns the fund yield needed to match a bank paying this APY after tax.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: API key starting swk_. Also accepted in the X-API-Key header.