{"id":15636002,"url":"https://github.com/westy92/holiday-event-api-python","last_synced_at":"2025-07-16T18:03:59.909Z","repository":{"id":137620639,"uuid":"575663322","full_name":"westy92/holiday-event-api-python","owner":"westy92","description":"The Official Holiday and Event API for Python","archived":false,"fork":false,"pushed_at":"2024-05-21T22:42:27.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-07T02:42:49.472Z","etag":null,"topics":["api","calendar","celebration","checkiday","date","day","event","federal","free","holiday","holidays","list","month","occurrence","official","public","python","python3","unofficial","year"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/holiday-event-api/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/westy92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-08T02:42:30.000Z","updated_at":"2024-05-21T22:42:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"18d49653-d179-4420-8e6b-b68f9bd3c539","html_url":"https://github.com/westy92/holiday-event-api-python","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/westy92/holiday-event-api-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westy92","download_url":"https://codeload.github.com/westy92/holiday-event-api-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265528735,"owners_count":23782744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","calendar","celebration","checkiday","date","day","event","federal","free","holiday","holidays","list","month","occurrence","official","public","python","python3","unofficial","year"],"created_at":"2024-10-03T11:01:38.470Z","updated_at":"2025-07-16T18:03:59.862Z","avatar_url":"https://github.com/westy92.png","language":"Python","funding_links":["https://github.com/sponsors/westy92"],"categories":[],"sub_categories":[],"readme":"# The Official Holiday and Event API for Python\n\n[![PyPI](https://img.shields.io/pypi/v/holiday-event-api)](https://pypi.org/project/holiday-event-api)\n[![Supported Versions](https://img.shields.io/pypi/pyversions/holiday-event-api.svg)](https://pypi.org/project/holiday-event-api)\n[![Build Status](https://github.com/westy92/holiday-event-api-python/actions/workflows/github-actions.yml/badge.svg)](https://github.com/westy92/holiday-event-api-python/actions)\n[![Code Coverage](https://codecov.io/gh/westy92/holiday-event-api-python/branch/main/graph/badge.svg)](https://codecov.io/gh/westy92/holiday-event-api-python)\n[![Known Vulnerabilities](https://snyk.io/test/github/westy92/holiday-event-api-python/badge.svg)](https://snyk.io/test/github/westy92/holiday-event-api-python)\n[![Funding Status](https://img.shields.io/github/sponsors/westy92)](https://github.com/sponsors/westy92)\n\nIndustry-leading Holiday and Event API for Python. Over 5,000 holidays and thousands of descriptions. Trusted by the World’s leading companies. Built by developers for developers since 2011.\n\n## Supported Python Versions\nLatest version of the the Holiday and Event API supports all actively-maintained Python [releases](https://devguide.python.org/versions/) and might work with older versions. It also supports PyPy.\n\n## Authentication\n\nAccess to the Holiday and Event API requires an API Key. You can get for one for FREE [here](https://apilayer.com/marketplace/checkiday-api#pricing), no credit card required! Note that free plans are limited. To access more data and have more requests, a paid plan is required.\n\n## Installation\n\nThe Holiday and Event API is available on PyPI:\n```console\n$ python -m pip install holiday-event-api\n```\n\n## Example\n\n```python\nimport holidays\n\n\ntry:\n    # Get a FREE API key from https://apilayer.com/marketplace/checkiday-api#pricing\n    client = holidays.client('\u003cYour API Key Here\u003e')\n\n    # Get Events for a given Date\n    events = client.getEvents(\n        # These parameters are the defaults but can be specified:\n        # date='today',\n        # timezone='America/Chicago',\n        # adult=False,\n    )\n\n    event = events.events[0]\n    print(f\"Today is {event.name}! Find more information at: {event.url}.\")\n    print(f\"Rate limits remaining: {events.rateLimit.remainingMonth}/{events.rateLimit.limitMonth} (month).\")\n\n    # Get Event Information\n    eventInfo = client.getEventInfo(\n        id=event.id,\n        # These parameters can be specified to calculate the range of eventInfo.Event.Occurrences\n        # start=2020,\n        # end=2030,\n    )\n\n    print(f\"The Event's hashtags are {eventInfo.event.hashtags}.\")\n\n    # Search for Events\n    query = \"pizza day\"\n    search = client.search(\n        query=query,\n        # These parameters are the defaults but can be specified:\n        # adult=False,\n    )\n\n    print(f\"Found {len(search.events)} events, including {search.events[0].name}, that match the query '{query}'.\")\nexcept Exception as e:\n    print(f\"There was an error: {e}\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesty92%2Fholiday-event-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-python/lists"}