Check whether a specific date is a statutory holiday through API calls
Check API through Chinese holidays,
Http://www.easybots.cn/holiday_api.net
Functional characteristics
Check whether the specific date is a holiday, the corresponding result of the weekday is 0, the corresponding result of the rest day is 1, the result of the holiday is 2;
Get the holiday situation under the specific month, only return the corresponding result of the rest day or holiday;
One or more dates (months) can be passed at the same time;
Support China's statutory holidays from 2010, subject to the announcement issued by the State Council, and adjust and increase at any time;
Parameters can be passed as GET or POST, returning the result in JSON format.
Examples of usage
-
Check whether a date is a holiday http://www.easybots.cn/api/holiday.php?d=20130101
-
Check if multiple dates are holidays http://www.easybots.cn/api/holiday.php?d=20130101,20130103,20130105,20130201
-
Get January 2012 Holidays http://www.easybots.cn/api/holiday.php?m=201201
-
Get 2013 1/2 month holiday http:// www.easybots.cn/api/holiday.php?m=201301,201302