Check whether a specific date is a statutory holiday through API calls

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.