Code Monkey home page Code Monkey logo

Comments (2)

devrkd avatar devrkd commented on August 24, 2024

Found few apis which could be used for fetching holidays.

  1. Google calendar API - The api results all holidays for a country. However there is no differentiation wether the holiday return is an public holiday or regional holiday.
    List of google holiday calendar cuntrywise:
    https://gist.github.com/mattn/1438183

API for fetching holiday :
GET https://www.googleapis.com/calendar/v3/users/me/calendarList?key=[YOUR_API_KEY]

try the api here:
https://developers.google.com/calendar/v3/reference/events/list?apix_params=%7B%22calendarId%22%3A%22en.indian%23holiday%40group.v.calendar.google.com%22%7D

  1. Holiday API website
    API : https://holidayapi.com/v1/holidays?country=IN&year=2018&month=11&day=7&key=
  • There are few limitation with this api, for free version it returns only last year public holiday list.
    List of countries supported:
    https://holidayapi.com/countries
  1. https://calendarific.com/api-documentation
    This seems quite good. And have a proper documentation too. But they have a limit of 1000 Request per day for free account. For a start it look like good candidate. However only one draw back i see, the holiday information doesnt returns the details as if its and gazetted holiday or normal regional holiday, hence making Republic day and pongal both as public holiday. Seems like it picking up bank holidays.

from ispublicholiday.

devrkd avatar devrkd commented on August 24, 2024

Planning to implement the last option

from ispublicholiday.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.