{
  "openapi": "3.1.0",
  "info": {
    "title": "シルギア 所得税・住民税の数値API",
    "version": "1.0.0",
    "description": "登録不要・無料の所得税・住民税の数値API。所得の年ごとに、その年分の所得税（税率の速算表・復興特別所得税・給与所得控除と年末調整等のための給与所得の表の作り方・基礎控除・配偶者控除・配偶者特別控除・扶養控除・特定親族特別控除・障害者・寡婦・ひとり親・勤労学生の控除）と、その所得にかかる個人住民税（翌年度分。所得割の税率・均等割と森林環境税・基礎控除・人的控除・調整控除・非課税の限度額）の数値を返します。国税庁の年末調整のしかた・タックスアンサー、財務省・総務省の資料と照らし合わせて作成し、照合した日を data_version で返します。区分の表は「over を超え upto 以下」。説明: https://api.shirugear.com/tax/ 。v1 の中では項目や年を足すことはあっても、名前や意味は変えません（知らない項目は無視してください）。",
    "termsOfService": "https://api.shirugear.com/terms/",
    "contact": {
      "name": "アナライズギア株式会社（シルギア）",
      "url": "https://shirugear.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://api.shirugear.com"
    }
  ],
  "paths": {
    "/tax/v1/{year}.json": {
      "get": {
        "summary": "1年分（所得の年）の所得税と住民税の数値",
        "operationId": "getYear",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "enum": [
                2025,
                2026
              ]
            },
            "description": "所得の年（2025＝令和7年分の所得税・令和8年度の住民税）"
          }
        ],
        "responses": {
          "200": {
            "description": "1年分",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Year"
                }
              }
            }
          },
          "400": {
            "description": "URLの形が違う",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "無い年",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "日本国内以外から",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "GET/HEAD以外",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tax/v1/all.json": {
      "get": {
        "summary": "全部の年",
        "operationId": "getAll",
        "responses": {
          "200": {
            "description": "全部の年",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/All"
                }
              }
            }
          },
          "403": {
            "description": "日本国内以外から",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "GET/HEAD以外",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tax/v1/meta.json": {
      "get": {
        "summary": "データの版・出典・年の一覧",
        "operationId": "getMeta",
        "responses": {
          "200": {
            "description": "版",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Meta"
                }
              }
            }
          },
          "403": {
            "description": "日本国内以外から",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "GET/HEAD以外",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Year": {
        "type": "object",
        "required": [
          "year",
          "income_tax",
          "resident_tax"
        ],
        "properties": {
          "year": {
            "type": "integer"
          },
          "income_tax": {
            "type": "object",
            "description": "その年分の所得税の数値（項目は説明ページと型定義 https://api.shirugear.com/tax/types.d.ts を参照）"
          },
          "resident_tax": {
            "type": "object",
            "description": "その所得にかかる住民税（翌年度分）の数値"
          },
          "currency": {
            "const": "JPY"
          },
          "data_version": {
            "type": "string",
            "format": "date"
          }
        },
        "examples": [
          {
            "year": 2026,
            "income_tax": {
              "label": "令和8年分",
              "period": "2026年1月1日〜12月31日の所得",
              "taxable_income_rounding": 1000,
              "rates": [
                {
                  "over": null,
                  "upto": 1950000,
                  "rate_percent": 5,
                  "deduction": 0
                },
                {
                  "over": 1950000,
                  "upto": 3300000,
                  "rate_percent": 10,
                  "deduction": 97500
                },
                {
                  "over": 3300000,
                  "upto": 6950000,
                  "rate_percent": 20,
                  "deduction": 427500
                },
                {
                  "over": 6950000,
                  "upto": 9000000,
                  "rate_percent": 23,
                  "deduction": 636000
                },
                {
                  "over": 9000000,
                  "upto": 18000000,
                  "rate_percent": 33,
                  "deduction": 1536000
                },
                {
                  "over": 18000000,
                  "upto": 40000000,
                  "rate_percent": 40,
                  "deduction": 2796000
                },
                {
                  "over": 40000000,
                  "upto": null,
                  "rate_percent": 45,
                  "deduction": 4796000
                }
              ],
              "surtax": {
                "reconstruction_percent": 2.1,
                "defense_percent": 0,
                "total_percent": 2.1,
                "note": "復興特別所得税（基準所得税額×2.1%）。令和9年分から復興特別所得税1.1%＋防衛特別所得税1%（合計2.1%は同じ）"
              },
              "salary_income_deduction": [
                {
                  "over": null,
                  "upto": 2200000,
                  "kind": "fixed",
                  "amount": 740000
                },
                {
                  "over": 2200000,
                  "upto": 3600000,
                  "kind": "rate",
                  "rate_percent": 30,
                  "add": 80000
                },
                {
                  "over": 3600000,
                  "upto": 6600000,
                  "kind": "rate",
                  "rate_percent": 20,
                  "add": 440000
                },
                {
                  "over": 6600000,
                  "upto": 8500000,
                  "kind": "rate",
                  "rate_percent": 10,
                  "add": 1100000
                },
                {
                  "over": 8500000,
                  "upto": null,
                  "kind": "fixed",
                  "amount": 1950000
                }
              ],
              "salary_income_table": {
                "applies_below": 6600000,
                "zero_below": 741000,
                "minus_minimum_below": 2191000,
                "minimum": 740000,
                "fixed": [
                  {
                    "from": 2191000,
                    "below": 2193000,
                    "income": 1451000
                  },
                  {
                    "from": 2193000,
                    "below": 2196000,
                    "income": 1453000
                  },
                  {
                    "from": 2196000,
                    "below": 2200000,
                    "income": 1456000
                  }
                ],
                "step": 4000,
                "step_formulas": [
                  {
                    "from": 2200000,
                    "below": 3600000,
                    "rate_percent": 70,
                    "subtract": 80000
                  },
                  {
                    "from": 3600000,
                    "below": 6600000,
                    "rate_percent": 80,
                    "subtract": 440000
                  }
                ],
                "over_table": "660万円以上は 収入×90%−110万円（850万円未満）、収入−195万円（850万円以上）。1円未満切り捨て"
              },
              "basic_deduction": {
                "brackets": [
                  {
                    "upto": 4890000,
                    "amount": 1040000
                  },
                  {
                    "upto": 6550000,
                    "amount": 670000
                  },
                  {
                    "upto": 23500000,
                    "amount": 620000
                  },
                  {
                    "upto": 24000000,
                    "amount": 480000
                  },
                  {
                    "upto": 24500000,
                    "amount": 320000
                  },
                  {
                    "upto": 25000000,
                    "amount": 160000
                  },
                  {
                    "upto": null,
                    "amount": 0
                  }
                ],
                "main_amount": 620000,
                "note": "本則62万円（所得税法第86条）＋措置法第41条の16の2の加算（42万・5万円。令和8・9年分・居住者のみ）"
              },
              "spouse": {
                "spouse_income_limit": 620000,
                "self_income_columns": [
                  9000000,
                  9500000,
                  10000000
                ],
                "general": [
                  380000,
                  260000,
                  130000
                ],
                "elderly": [
                  480000,
                  320000,
                  160000
                ]
              },
              "spouse_special": {
                "self_income_columns": [
                  9000000,
                  9500000,
                  10000000
                ],
                "brackets": [
                  {
                    "over": 620000,
                    "upto": 950000,
                    "amounts": [
                      380000,
                      260000,
                      130000
                    ]
                  },
                  {
                    "over": 950000,
                    "upto": 1000000,
                    "amounts": [
                      360000,
                      240000,
                      120000
                    ]
                  },
                  {
                    "over": 1000000,
                    "upto": 1050000,
                    "amounts": [
                      310000,
                      210000,
                      110000
                    ]
                  },
                  {
                    "over": 1050000,
                    "upto": 1100000,
                    "amounts": [
                      260000,
                      180000,
                      90000
                    ]
                  },
                  {
                    "over": 1100000,
                    "upto": 1150000,
                    "amounts": [
                      210000,
                      140000,
                      70000
                    ]
                  },
                  {
                    "over": 1150000,
                    "upto": 1200000,
                    "amounts": [
                      160000,
                      110000,
                      60000
                    ]
                  },
                  {
                    "over": 1200000,
                    "upto": 1250000,
                    "amounts": [
                      110000,
                      80000,
                      40000
                    ]
                  },
                  {
                    "over": 1250000,
                    "upto": 1300000,
                    "amounts": [
                      60000,
                      40000,
                      20000
                    ]
                  },
                  {
                    "over": 1300000,
                    "upto": 1330000,
                    "amounts": [
                      30000,
                      20000,
                      10000
                    ]
                  }
                ]
              },
              "dependent": {
                "income_limit": 620000,
                "min_age": 16,
                "general": 380000,
                "specific": 630000,
                "elderly": 480000,
                "elderly_cohabiting_parent": 580000
              },
              "specific_relative": {
                "age_from": 19,
                "age_below": 23,
                "brackets": [
                  {
                    "over": 620000,
                    "upto": 850000,
                    "amount": 630000
                  },
                  {
                    "over": 850000,
                    "upto": 900000,
                    "amount": 610000
                  },
                  {
                    "over": 900000,
                    "upto": 950000,
                    "amount": 510000
                  },
                  {
                    "over": 950000,
                    "upto": 1000000,
                    "amount": 410000
                  },
                  {
                    "over": 1000000,
                    "upto": 1050000,
                    "amount": 310000
                  },
                  {
                    "over": 1050000,
                    "upto": 1100000,
                    "amount": 210000
                  },
                  {
                    "over": 1100000,
                    "upto": 1150000,
                    "amount": 110000
                  },
                  {
                    "over": 1150000,
                    "upto": 1200000,
                    "amount": 60000
                  },
                  {
                    "over": 1200000,
                    "upto": 1230000,
                    "amount": 30000
                  }
                ]
              },
              "disability": {
                "general": 270000,
                "special": 400000,
                "special_cohabiting": 750000
              },
              "widow": {
                "amount": 270000,
                "self_income_limit": 5000000
              },
              "single_parent": {
                "amount": 350000,
                "self_income_limit": 5000000,
                "child_income_limit": 620000
              },
              "working_student": {
                "amount": 270000,
                "income_limit": 890000
              },
              "salary_only_tax_free_upto": 1780000
            },
            "resident_tax": {
              "label": "令和9年度",
              "fiscal_year": 2027,
              "period": "2027年6月〜2028年5月（2026年の所得にかかる）",
              "income_levy_percent": {
                "municipal": 6,
                "prefectural": 4,
                "designated_city_municipal": 8,
                "designated_city_prefectural": 2
              },
              "per_capita": {
                "municipal": 3000,
                "prefectural": 1000,
                "forest_environment_tax": 1000,
                "total": 5000
              },
              "basic_deduction": {
                "brackets": [
                  {
                    "upto": 24000000,
                    "amount": 430000
                  },
                  {
                    "upto": 24500000,
                    "amount": 290000
                  },
                  {
                    "upto": 25000000,
                    "amount": 150000
                  },
                  {
                    "upto": null,
                    "amount": 0
                  }
                ]
              },
              "salary_income": "所得税の同じ年分の計算の例による（salary_income_deduction・salary_income_table と同じ）",
              "salary_income_deduction_minimum": 740000,
              "spouse": {
                "spouse_income_limit": 620000,
                "self_income_columns": [
                  9000000,
                  9500000,
                  10000000
                ],
                "general": [
                  330000,
                  220000,
                  110000
                ],
                "elderly": [
                  380000,
                  260000,
                  130000
                ]
              },
              "spouse_special": {
                "self_income_columns": [
                  9000000,
                  9500000,
                  10000000
                ],
                "brackets": [
                  {
                    "over": 620000,
                    "upto": 1000000,
                    "amounts": [
                      330000,
                      220000,
                      110000
                    ]
                  },
                  {
                    "over": 1000000,
                    "upto": 1050000,
                    "amounts": [
                      310000,
                      210000,
                      110000
                    ]
                  },
                  {
                    "over": 1050000,
                    "upto": 1100000,
                    "amounts": [
                      260000,
                      180000,
                      90000
                    ]
                  },
                  {
                    "over": 1100000,
                    "upto": 1150000,
                    "amounts": [
                      210000,
                      140000,
                      70000
                    ]
                  },
                  {
                    "over": 1150000,
                    "upto": 1200000,
                    "amounts": [
                      160000,
                      110000,
                      60000
                    ]
                  },
                  {
                    "over": 1200000,
                    "upto": 1250000,
                    "amounts": [
                      110000,
                      80000,
                      40000
                    ]
                  },
                  {
                    "over": 1250000,
                    "upto": 1300000,
                    "amounts": [
                      60000,
                      40000,
                      20000
                    ]
                  },
                  {
                    "over": 1300000,
                    "upto": 1330000,
                    "amounts": [
                      30000,
                      20000,
                      10000
                    ]
                  }
                ],
                "note": "地方税法第314条の2の規定による額を、配偶者の合計所得金額の区分ごとの表にしたもの"
              },
              "dependent": {
                "income_limit": 620000,
                "min_age": 16,
                "general": 330000,
                "specific": 450000,
                "elderly": 380000,
                "elderly_cohabiting_parent": 450000
              },
              "specific_relative": {
                "age_from": 19,
                "age_below": 23,
                "brackets": [
                  {
                    "over": 620000,
                    "upto": 950000,
                    "amount": 450000
                  },
                  {
                    "over": 950000,
                    "upto": 1000000,
                    "amount": 410000
                  },
                  {
                    "over": 1000000,
                    "upto": 1050000,
                    "amount": 310000
                  },
                  {
                    "over": 1050000,
                    "upto": 1100000,
                    "amount": 210000
                  },
                  {
                    "over": 1100000,
                    "upto": 1150000,
                    "amount": 110000
                  },
                  {
                    "over": 1150000,
                    "upto": 1200000,
                    "amount": 60000
                  },
                  {
                    "over": 1200000,
                    "upto": 1230000,
                    "amount": 30000
                  }
                ],
                "note": "地方税法第314条の2の規定による額を、特定親族の合計所得金額の区分ごとの表にしたもの"
              },
              "disability": {
                "general": 260000,
                "special": 300000,
                "special_cohabiting": 530000
              },
              "widow": {
                "amount": 260000
              },
              "single_parent": {
                "amount": 300000
              },
              "working_student": {
                "amount": 260000,
                "income_limit": 890000
              },
              "adjustment_credit": {
                "total_income_limit": 25000000,
                "le_2m": "min(人的控除額の差の合計, 合計課税所得金額)×5%",
                "gt_2m": "max(人的控除額の差の合計 −(合計課税所得金額 − 200万円), 5万円)×5%",
                "percent": {
                  "municipal": 3,
                  "prefectural": 2,
                  "designated_city_municipal": 4,
                  "designated_city_prefectural": 1
                },
                "diffs": {
                  "basic": 50000,
                  "spouse_general": [
                    50000,
                    40000,
                    20000
                  ],
                  "spouse_elderly": [
                    100000,
                    60000,
                    30000
                  ],
                  "dependent_general": 50000,
                  "dependent_specific": 180000,
                  "dependent_elderly": 100000,
                  "dependent_elderly_cohabiting_parent": 130000,
                  "disability_general": 10000,
                  "disability_special": 100000,
                  "disability_special_cohabiting": 220000,
                  "widow": 10000,
                  "single_parent_mother": 50000,
                  "single_parent_father": 10000,
                  "working_student": 10000
                }
              },
              "non_taxable": {
                "by_status_income_limit": 1350000,
                "income_levy": {
                  "per_person": 350000,
                  "add": 100000,
                  "add_with_dependents": 320000,
                  "formula": "総所得金額等 ≦ 35万円×(本人＋同一生計配偶者＋扶養親族)＋10万円（同一生計配偶者・扶養親族がいれば さらに＋32万円）"
                },
                "per_capita_standard": {
                  "per_person": 350000,
                  "add": 100000,
                  "add_with_dependents": 210000,
                  "grade_factor": {
                    "1": 1.0,
                    "2": 0.9,
                    "3": 0.8
                  },
                  "formula": "合計所得金額 ≦ 35万円×率×(本人＋同一生計配偶者＋扶養親族)＋10万円（同一生計配偶者・扶養親族がいれば さらに＋21万円×率）を目安に市町村の条例で定める（率は1級地1.0・2級地0.9・3級地0.8）"
                },
                "salary_only_single_upto": 1190000
              }
            },
            "currency": "JPY",
            "data_version": "2026-11-27"
          }
        ]
      },
      "All": {
        "type": "object",
        "properties": {
          "years": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Year"
            }
          },
          "currency": {
            "const": "JPY"
          },
          "data_version": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "Meta": {
        "type": "object",
        "properties": {
          "data_version": {
            "type": "string"
          },
          "checked_at": {
            "type": "string"
          },
          "years": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "latest": {
            "type": "integer"
          },
          "scope": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "status": {
                "type": "integer"
              },
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
