{"id":15295182,"url":"https://github.com/westy92/holiday-event-api-rust","last_synced_at":"2026-02-13T18:32:11.748Z","repository":{"id":154011937,"uuid":"631284898","full_name":"westy92/holiday-event-api-rust","owner":"westy92","description":"The Official Holiday and Event API for Rust","archived":false,"fork":false,"pushed_at":"2024-04-26T03:18:08.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T13:07:20.803Z","etag":null,"topics":["api","calendar","celebration","checkiday","date","day","event","events","federal","holiday-api","holiday-calculation","holidays","holidays-api","list","month","occurrence","public","rust","rustlang","year"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/holiday_event_api","language":"Rust","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":".github/FUNDING.yml","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},"funding":{"github":["westy92"]}},"created_at":"2023-04-22T14:34:32.000Z","updated_at":"2024-04-26T03:17:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8b1d928-e8c8-454e-b432-ed35ac7189c1","html_url":"https://github.com/westy92/holiday-event-api-rust","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/westy92/holiday-event-api-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westy92","download_url":"https://codeload.github.com/westy92/holiday-event-api-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29414278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","holiday-api","holiday-calculation","holidays","holidays-api","list","month","occurrence","public","rust","rustlang","year"],"created_at":"2024-09-30T17:08:59.002Z","updated_at":"2026-02-13T18:32:11.726Z","avatar_url":"https://github.com/westy92.png","language":"Rust","funding_links":["https://github.com/sponsors/westy92"],"categories":[],"sub_categories":[],"readme":"# The Official Holiday and Event API for Rust\n\n[![Crates.io](https://img.shields.io/crates/v/holiday_event_api)](https://crates.io/crates/holiday_event_api)\n[![Build Status](https://github.com/westy92/holiday-event-api-rust/actions/workflows/ci.yml/badge.svg)](https://github.com/westy92/holiday-event-api-rust/actions)\n[![docs.rs](https://img.shields.io/docsrs/holiday_event_api)](https://docs.rs/holiday_event_api)\n[![Code Coverage](https://codecov.io/gh/westy92/holiday-event-api-rust/branch/main/graph/badge.svg)](https://codecov.io/gh/westy92/holiday-event-api-rust)\n[![Funding Status](https://img.shields.io/github/sponsors/westy92)](https://github.com/sponsors/westy92)\n\nIndustry-leading Holiday and Event API for Rust. Over 5,000 holidays and thousands of descriptions. Trusted by the World’s leading companies. Built by developers for developers since 2011.\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\ncargo add holiday_event_api\n```\n\n## Example\n\n```rust\nuse holiday_event_api::{\n    model::{GetEventInfoRequest, GetEventsRequest, SearchRequest},\n    HolidayEventApi,\n};\n\n#[tokio::main]\nasync fn main() {\n    // Get a FREE API key from https://apilayer.com/marketplace/checkiday-api#pricing\n    let client = HolidayEventApi::new(\"\u003cyour API key\u003e\");\n\n    if client.is_err() {\n        println!(\"{}\", client.unwrap_err());\n        return;\n    }\n\n    let client = client.unwrap();\n    // Get Events for a given Date\n    let events = client\n        .get_events(GetEventsRequest {\n            // These parameters are all optional. These are their defaults:\n            date: Some(\"today\".into()),\n            adult: Some(false),\n            timezone: Some(\"America/Chicago\".into()),\n        })\n        .await;\n\n    if events.is_err() {\n        println!(\"{}\", events.unwrap_err());\n        return;\n    }\n\n    let events = events.unwrap();\n    let event = events.events.get(0).unwrap();\n    println!(\n        \"Today is {}! Find more information at: {}.\",\n        event.name, event.url\n    );\n    println!(\n        \"Rate limit remaining: {}/{} (month).\",\n        events.rate_limit.remaining_month, events.rate_limit.limit_month\n    );\n\n    // Get Event Information\n    let event_info = client\n        .get_event_info(GetEventInfoRequest {\n            id: event.id.to_string(),\n            // These parameters can be specified to calculate the range of event_info.event.occurrences\n            start: None, // Some(2020),\n            end: None,   // Some(2030),\n        })\n        .await;\n\n    if event_info.is_err() {\n        println!(\"{}\", event_info.unwrap_err());\n        return;\n    }\n\n    let event_info = event_info.unwrap();\n\n    println!(\"The Event's hashtags are {:?}.\", event_info.event.hashtags);\n\n    // Search for Events\n    let query = \"pizza day\";\n    let search = client\n        .search(SearchRequest {\n            query: query.into(),\n            // These parameters are the defaults but can be specified:\n            adult: None, // Some(true),\n        })\n        .await;\n\n    if search.is_err() {\n        println!(\"{}\", search.unwrap_err());\n        return;\n    }\n\n    let search = search.unwrap();\n    println!(\n        \"Found {} events, including {}, that match the query \\\"{}\\\".\",\n        search.events.len(),\n        search.events.first().unwrap().name,\n        query\n    )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesty92%2Fholiday-event-api-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-rust/lists"}