Vercel の Edge Functions で日本の祝日を検索するサービスを作ってみた
Base URL: https://jp-holidays.vercel.app
Endpoint | Return |
---|---|
/api/v1/holidays | { date(yyyymmdd): name_of_holiday } |
/api/v1/holidays-count | number of holidays |
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
from | string | △ | start date * required if offset is not set |
|
to | string | end date * will be from+13 days if not set (2 weeks) |
||
offset | string | △ | offset from today (exp: 4 days) * required if from is not set |
|
only_weekday | boolean | false | only return holidays in weekdays |
-
holidays from 20220101 to 20221231
https://jp-holidays.vercel.app/api/v1/holidays?from=20220101&to=20221231 -
holidays from 1 week later to 3 weeks later
https://jp-holidays.vercel.app/api/v1/holidays?offset=7%20days
This project is licensed under the terms of the MIT license.