{"id":15635940,"url":"https://github.com/westy92/holiday-event-api-go","last_synced_at":"2026-01-27T18:38:43.758Z","repository":{"id":64230623,"uuid":"531371222","full_name":"westy92/holiday-event-api-go","owner":"westy92","description":"The Official Holiday and Event API for Go","archived":false,"fork":false,"pushed_at":"2024-11-25T04:26:49.000Z","size":90,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T13:04:32.921Z","etag":null,"topics":["api","calendar","celebration","checkiday","date","day","event","events","federal","go","golang","holiday-api","holiday-calculation","holidays","holidays-api","list","month","occurrence","public","year"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/westy92/holiday-event-api-go","language":"Go","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-09-01T05:08:23.000Z","updated_at":"2024-08-14T02:07:28.000Z","dependencies_parsed_at":"2024-03-04T06:23:53.249Z","dependency_job_id":"3247df1c-87a6-46b0-97db-8dc2aedb7320","html_url":"https://github.com/westy92/holiday-event-api-go","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westy92","download_url":"https://codeload.github.com/westy92/holiday-event-api-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251646038,"owners_count":21620855,"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","events","federal","go","golang","holiday-api","holiday-calculation","holidays","holidays-api","list","month","occurrence","public","year"],"created_at":"2024-10-03T11:01:26.709Z","updated_at":"2026-01-27T18:38:38.722Z","avatar_url":"https://github.com/westy92.png","language":"Go","funding_links":["https://github.com/sponsors/westy92"],"categories":[],"sub_categories":[],"readme":"# The Official Holiday and Event API for Go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/westy92/holiday-event-api-go.svg)](https://pkg.go.dev/github.com/westy92/holiday-event-api-go)\n[![Build Status](https://github.com/westy92/holiday-event-api-go/actions/workflows/github-actions.yml/badge.svg)](https://github.com/westy92/holiday-event-api-go/actions)\n[![Code Coverage](https://codecov.io/gh/westy92/holiday-event-api-go/branch/main/graph/badge.svg)](https://codecov.io/gh/westy92/holiday-event-api-go)\n[![Funding Status](https://img.shields.io/github/sponsors/westy92)](https://github.com/sponsors/westy92)\n\nIndustry-leading Holiday and Event API for Go. 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 Go Versions\n\nLatest version of the the Holiday and Event API supports last two Go major [releases](https://go.dev/doc/devel/release#policy) and might work with older versions.\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\n```console\ngo get github.com/westy92/holiday-event-api-go\n```\n\n## Example\n\n```go\nimport (\n\t\"fmt\"\n\n\tholidays \"github.com/westy92/holiday-event-api-go\"\n)\n\nfunc main() {\n\t// Get a FREE API key from https://apilayer.com/marketplace/checkiday-api#pricing\n\tclient, err := holidays.New(\"\u003cyour API key\u003e\")\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\t// Get Events for a given Date\n\tevents, err := client.GetEvents(holidays.GetEventsRequest{\n\t\t// These parameters are the defaults but can be specified:\n\t\t// Date:     \"today\",\n\t\t// Timezone: \"America/Chicago\",\n\t\t// Adult:    false,\n\t})\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tevent := events.Events[0]\n\tfmt.Printf(\"Today is %s! Find more information at: %s.\\n\", event.Name, event.Url)\n\tfmt.Printf(\"Rate limit remaining: %d/%d (month).\\n\", events.RateLimit.RemainingMonth, events.RateLimit.LimitMonth)\n\n\t// Get Event Information\n\teventInfo, err := client.GetEventInfo(holidays.GetEventInfoRequest{\n\t\tId: event.Id,\n\t\t// These parameters can be specified to calculate the range of eventInfo.Event.Occurrences\n\t\t// Start: 2020,\n\t\t// End: 2030,\n\t})\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tfmt.Printf(\"The Event's hashtags are %q.\\n\", eventInfo.Event.Hashtags)\n\n\t// Search for Events\n\tquery := \"pizza day\"\n\tsearch, err := client.Search(holidays.SearchRequest{\n\t\tQuery: query,\n\t\t// These parameters are the defaults but can be specified:\n\t\t// Adult: false,\n\t})\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\tfmt.Printf(\"Found %d events, including %s, that match the query \\\"%s\\\".\\n\", len(search.Events), search.Events[0].Name, query)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesty92%2Fholiday-event-api-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-go/lists"}