OSI Finance REST API v1.0
Calculate Taxes
Calculates Income, FICA, capital gains, social security, and state taxes
1 min
code examples curl location 'https //osifinance com/api/v1/all taxes' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "api key" "", "filing status" "single", "income" 100000, "salary" 100000, "federal agi" 75000, "state residence" "florida", "state occupation" "florida", "county residence" "other", "county occupation" "other", "pay periods" 24, "birth year" 1990 }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "api key" "", "filing status" "single", "income" 100000, "salary" 100000, "federal agi" 75000, "state residence" "florida", "state occupation" "florida", "county residence" "other", "county occupation" "other", "pay periods" 24, "birth year" 1990 }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //osifinance com/api/v1/all taxes", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //osifinance com/api/v1/all taxes") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "api key" "", "filing status" "single", "income" 100000, "salary" 100000, "federal agi" 75000, "state residence" "florida", "state occupation" "florida", "county residence" "other", "county occupation" "other", "pay periods" 24, "birth year" 1990 }) response = https request(request) puts response read body import requests import json url = "https //osifinance com/api/v1/all taxes" payload = json dumps({ "api key" "", "filing status" "single", "income" 100000, "salary" 100000, "federal agi" 75000, "state residence" "florida", "state occupation" "florida", "county residence" "other", "county occupation" "other", "pay periods" 24, "birth year" 1990 }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ok { "status" "", "data" { "tax type" {}, "marginal tax rate" {}, "effective tax rate" {}, "2023 taxes" {} }, "sources" {} }// bad request { "error" "" }// unauthorized { "error" "" }// not found { "error" "" }// too many requests { "error" "" }// internal server error { "error" "" }