祝日カレンダーを作ることになり、海外の祝日が取得できるフリーのAPIを探してましたところ、見つけました。
Home URL : https://date.nager.at/
Usage URL : https://date.nager.at/Api
APIKeyなし、リミットなし無償です。
< 出力例 >
[????@??????? ~]# http https://date.nager.at/api/v2/publicholidays/2020/JP
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: application/json; charset=utf-8
Date: Tue, 26 May 2020 01:59:57 GMT
Server: Microsoft-IIS/10.0
Strict-Transport-Security: max-age=2592000
Transfer-Encoding: chunked
Vary: Accept-Encoding
[
{
"counties": null,
"countryCode": "JP",
"date": "2020-01-01",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "元日",
"name": "New Year's Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-01-13",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "成人の日",
"name": "Coming of Age Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-02-11",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "建国記念の日",
"name": "Foundation Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-04-29",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "昭和の日",
"name": "Shōwa Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-05-04",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "憲法記念日",
"name": "Constitution Memorial Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-05-04",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "みどりの日",
"name": "Greenery Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-05-05",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "こどもの日",
"name": "Children's Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-07-20",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "海の日",
"name": "Marine Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-08-11",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "山の日",
"name": "Mountain Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-09-21",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "(敬老の日",
"name": "Respect for the Aged Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-10-12",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "体育の日",
"name": "Health and Sports Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-11-03",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "文化の日",
"name": "Culture Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-11-23",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "勤労感謝の日",
"name": "Labour Thanksgiving Day",
"type": "Public"
},
{
"counties": null,
"countryCode": "JP",
"date": "2020-12-23",
"fixed": false,
"global": true,
"launchYear": null,
"localName": "天皇誕生日",
"name": "The Emperor's Birthday",
"type": "Public"
}
]
コメントを投稿するにはログインしてください。