{"openapi": "3.1.0", "info": {"title": "シルギア 児童手当API", "version": "1.0.0", "description": "登録不要・無料の児童手当のAPI。児童手当の月額（3歳未満・3歳以上の区分と第何子かごと）、支給の対象年齢、第3子以降の数え方、支払の月（2024年10月分からは偶数月の年6回）、2024年9月分までの所得制限限度額・所得上限限度額と特例給付を、月の分で区切った時期ごと（2012年4月分から）に返します。児童手当法・同施行令（e-Gov）とこども家庭庁の案内から作成し、照合した日を data_version で返します。説明: https://api.shirugear.com/jidou/ 。v1 の中では項目を足すことはあっても、名前や意味は変えません（知らない項目は無視してください）。", "termsOfService": "https://api.shirugear.com/terms/", "contact": {"name": "アナライズギア株式会社（シルギア）", "url": "https://shirugear.com/contact"}}, "servers": [{"url": "https://api.shirugear.com"}], "paths": {"/jidou/v1/rates.json": {"get": {"summary": "時期ごとの月額・支払の月・所得制限と決まり", "operationId": "getRates", "responses": {"200": {"description": "児童手当の月額など", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Rates"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/jidou/v1/meta.json": {"get": {"summary": "データの版・時期の一覧・出典", "operationId": "getMeta", "responses": {"200": {"description": "データの版", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Meta"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}}, "components": {"schemas": {"Band": {"type": "object", "properties": {"band": {"type": "string", "enum": ["under3", "3to18", "3to12", "12to15"]}, "label": {"type": "string"}, "ends": {"type": "object", "properties": {"age": {"type": "integer"}, "at": {"type": "string", "enum": ["birth_month", "march31"]}}, "required": ["age", "at"], "description": "この区分の最後の月の決め方"}, "amount": {"type": "integer", "description": "第1子・第2子の月額（円）"}, "third_plus": {"type": "integer", "description": "第3子以降の月額（円）"}}, "required": ["band", "label", "ends", "amount", "third_plus"], "example": {"band": "under3", "label": "3歳未満", "ends": {"age": 3, "at": "birth_month"}, "amount": 15000, "third_plus": 30000}}, "LimitTable": {"type": "object", "properties": {"base": {"type": "integer"}, "per_person": {"type": "integer"}, "per_elderly": {"type": "integer"}, "examples": {"type": "array", "items": {"type": "object", "properties": {"persons": {"type": "integer"}, "limit": {"type": "integer"}}}}}, "required": ["base", "per_person", "per_elderly", "examples"]}, "Period": {"type": "object", "properties": {"key": {"type": "string"}, "from": {"type": "string", "format": "date"}, "until": {"type": ["string", "null"], "format": "date"}, "label": {"type": "string"}, "target": {"type": "object", "properties": {"until_age": {"type": "integer"}, "rule": {"type": "string"}}, "description": "支給の対象の年齢"}, "count": {"type": "object", "properties": {"until_age": {"type": "integer"}, "rule": {"type": "string"}}, "description": "第何子かを数える範囲"}, "amounts": {"type": "array", "items": {"$ref": "#/components/schemas/Band"}}, "income_limit": {"oneOf": [{"$ref": "#/components/schemas/LimitTable"}, {"type": "null"}]}, "income_cap": {"oneOf": [{"$ref": "#/components/schemas/LimitTable"}, {"type": "null"}]}, "special_benefit": {"oneOf": [{"type": "object", "properties": {"amount": {"type": "integer"}, "rule": {"type": "string"}}}, {"type": "null"}]}, "payment": {"type": "object", "properties": {"months": {"type": "array", "items": {"type": "integer"}}, "times": {"type": "integer"}, "months_per_payment": {"type": "integer"}, "rule": {"type": "string"}}}, "note": {"type": "string"}, "law": {"type": "string"}}, "required": ["key", "from", "until", "label", "target", "count", "amounts", "income_limit", "income_cap", "special_benefit", "payment", "note", "law"]}, "Rates": {"type": "object", "properties": {"name": {"type": "string"}, "currency": {"type": "string", "const": "JPY"}, "periods": {"type": "array", "items": {"$ref": "#/components/schemas/Period"}}, "rules": {"type": "object", "description": "第3子以降の数え方・年齢の区切り・所得の判定・支給の始まりと終わり（文で説明）"}, "data_version": {"type": "string"}}, "required": ["name", "currency", "periods", "rules", "data_version"]}, "Meta": {"type": "object", "properties": {"data_version": {"type": "string"}, "checked_at": {"type": "string"}, "files": {"type": "array", "items": {"type": "string"}}, "periods": {"type": "array", "items": {"type": "object", "properties": {"key": {"type": "string"}, "from": {"type": "string"}, "until": {"type": ["string", "null"]}}}}, "scope": {"type": "string"}, "sources": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string"}, "url": {"type": "string"}}, "required": ["label", "url"]}}, "notice": {"type": "string"}}, "required": ["data_version", "checked_at", "files", "periods", "scope", "sources", "notice"]}, "Error": {"type": "object", "properties": {"error": {"type": "object", "properties": {"status": {"type": "integer"}, "code": {"type": "string", "enum": ["invalid_request", "not_found", "region_not_allowed", "method_not_allowed"]}, "message": {"type": "string"}}, "required": ["status", "code", "message"]}}, "required": ["error"]}}}}
