{"openapi": "3.1.0", "info": {"title": "シルギア 割増賃金・労働時間API", "version": "1.0.0", "description": "登録不要・無料の割増賃金・労働時間のAPI。労働基準法で決まっている割増賃金の率（時間外25%・月60時間超50%・休日35%・深夜25%とその組み合わせ）、割増賃金の基礎から除く手当、法定労働時間・休憩・法定休日、36協定の上限（建設・自動車運転・医師などの2024年4月からの扱いを含む）を返します。e-Gov の法令と厚生労働省の資料から作成し、照合した日を data_version で返します。説明: https://api.shirugear.com/rodo/ 。v1 の中では項目を足すことはあっても、名前や意味は変えません（知らない項目は無視してください）。", "termsOfService": "https://api.shirugear.com/terms/", "contact": {"name": "アナライズギア株式会社（シルギア）", "url": "https://shirugear.com/contact"}}, "servers": [{"url": "https://api.shirugear.com"}], "paths": {"/rodo/v1/premium.json": {"get": {"summary": "割増賃金の率・組み合わせ・月60時間超・中小企業の範囲・算定の基礎", "operationId": "getPremium", "responses": {"200": {"description": "割増賃金の率", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Premium"}}}}, "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"}}}}}}}, "/rodo/v1/hours.json": {"get": {"summary": "法定労働時間・休憩・法定休日・36協定の上限", "operationId": "getHours", "responses": {"200": {"description": "労働時間の決まり", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Hours"}}}}, "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"}}}}}}}, "/rodo/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": {"Rate": {"type": "object", "properties": {"key": {"type": "string", "enum": ["overtime", "overtime_over_60h", "holiday", "night"]}, "label": {"type": "string"}, "rate": {"type": "number", "description": "法定の最低限の割増率（0.25 = 25%）", "examples": [0.25]}, "law": {"type": "string"}}, "required": ["key", "label", "rate", "law"]}, "Combination": {"type": "object", "properties": {"key": {"type": "string", "enum": ["overtime_night", "overtime_over_60h_night", "holiday_night", "holiday_over_8h"]}, "label": {"type": "string"}, "parts": {"type": "array", "items": {"type": "string"}}, "rate": {"type": "number", "description": "合わせた率（parts の率の合計）", "examples": [0.5]}, "note": {"type": "string"}, "law": {"type": "string"}}, "required": ["key", "label", "parts", "rate", "law"]}, "Premium": {"type": "object", "properties": {"name": {"type": "string"}, "rates": {"type": "array", "items": {"$ref": "#/components/schemas/Rate"}}, "combinations": {"type": "array", "items": {"$ref": "#/components/schemas/Combination"}}, "night": {"type": "object", "description": "深夜の時間帯（22:00〜05:00）", "properties": {"from": {"type": "string", "examples": ["22:00"]}, "until": {"type": "string", "examples": ["05:00"]}}}, "over_60h": {"type": "object", "description": "月60時間を超える時間外労働の50%（大企業2010-04-01・中小企業2023-04-01から）", "properties": {"threshold_hours": {"type": "integer", "examples": [60]}, "applies": {"type": "array", "items": {"type": "object", "properties": {"company": {"type": "string", "enum": ["large", "sme"]}, "label": {"type": "string"}, "from": {"type": "string", "format": "date"}, "before": {"type": "string"}}, "required": ["company", "label", "from"]}}}}, "sme": {"type": "object", "description": "中小企業の範囲（資本金か労働者数のどちらか）"}, "base_wage": {"type": "object", "description": "1時間あたりの賃金の出し方と、割増賃金の基礎から除く7つの手当"}, "data_version": {"type": "string"}}, "required": ["name", "rates", "combinations", "night", "over_60h", "sme", "base_wage", "data_version"]}, "Hours": {"type": "object", "properties": {"name": {"type": "string"}, "statutory": {"type": "object", "description": "法定労働時間", "properties": {"day_hours": {"type": "integer", "examples": [8]}, "week_hours": {"type": "integer", "examples": [40]}}}, "special_week": {"type": "object", "description": "特例措置対象事業場（常時10人未満の商業・興行・保健衛生・接客娯楽）の週44時間", "properties": {"week_hours": {"type": "integer", "examples": [44]}, "workers_lt": {"type": "integer", "examples": [10]}}}, "break": {"type": "object", "description": "休憩（6時間超で45分以上・8時間超で1時間以上）"}, "holiday": {"type": "object", "description": "法定休日（毎週1回または4週4日）"}, "agreement36": {"type": "object", "description": "36協定の上限（原則 月45時間・年360時間、特別条項 年720時間・月100時間未満・2〜6か月平均80時間以内・月45時間超は年6か月まで）", "properties": {"limit": {"type": "object", "properties": {"month": {"type": "integer", "examples": [45]}, "year": {"type": "integer", "examples": [360]}}}, "special": {"type": "object", "properties": {"year_overtime_max": {"type": "integer", "examples": [720]}, "month_total_lt": {"type": "integer", "examples": [100]}, "avg_total_max": {"type": "integer", "examples": [80]}, "months_over_limit_max": {"type": "integer", "examples": [6]}}}, "applies": {"type": "array", "items": {"type": "object", "properties": {"company": {"type": "string", "enum": ["large", "sme"]}, "label": {"type": "string"}, "from": {"type": "string", "format": "date"}, "before": {"type": "string"}}, "required": ["company", "label", "from"]}}}}, "industries": {"type": "array", "description": "建設・自動車運転・医師・砂糖製造の2024年4月からの扱い（null はその決まりが当てはまらない）", "items": {"type": "object", "properties": {"key": {"type": "string", "enum": ["construction", "driving", "doctor", "sugar"]}, "label": {"type": "string"}, "from": {"type": "string", "format": "date"}, "year_overtime_max": {"type": ["integer", "null"]}, "month_total_lt": {"type": ["integer", "null"]}, "avg_total_max": {"type": ["integer", "null"]}, "months_over_limit_max": {"type": ["integer", "null"]}}, "required": ["key", "label", "from"]}}, "industries_before": {"type": "string"}, "exempt": {"type": "object"}, "data_version": {"type": "string"}}, "required": ["name", "statutory", "special_week", "break", "holiday", "agreement36", "industries", "data_version"]}, "Meta": {"type": "object", "properties": {"data_version": {"type": "string"}, "checked_at": {"type": "string"}, "files": {"type": "array", "items": {"type": "string", "enum": ["premium", "hours"]}}, "law": {"type": "object", "description": "照合した法令の版（施行日）", "properties": {"labor_standards_act": {"type": "string"}, "enforcement_regulations": {"type": "string"}, "premium_order": {"type": "string"}}}, "scope": {"type": "string"}, "sources": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string"}, "url": {"type": "string"}}, "required": ["label", "url"]}}}, "required": ["data_version", "checked_at", "files", "law", "scope", "sources"]}, "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"]}}}}