{"id":15636040,"url":"https://github.com/westy92/holiday-event-api-dart","last_synced_at":"2025-04-30T05:22:54.719Z","repository":{"id":65200209,"uuid":"583966504","full_name":"westy92/holiday-event-api-dart","owner":"westy92","description":"The Official Holiday and Event API for Dart and Flutter","archived":false,"fork":false,"pushed_at":"2024-09-26T13:36:39.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T13:04:28.692Z","etag":null,"topics":["api","api-client","best","calendar","checkiday","dart","dartlang","event","events","federal","flutter","free","holiday","holiday-api","holiday-calculation","holidayapi","holidays","holidays-api","list","public"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/holiday_event_api","language":"Dart","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":"CHANGELOG.md","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":"2022-12-31T17:19:05.000Z","updated_at":"2024-09-26T13:36:40.000Z","dependencies_parsed_at":"2024-04-26T04:31:37.460Z","dependency_job_id":"02795ac0-21b0-4067-ae55-2b01d3cff0fc","html_url":"https://github.com/westy92/holiday-event-api-dart","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":0.1842105263157895,"last_synced_commit":"a3fd726960604c7d78e99b7df6b2ccacb8446d5e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westy92","download_url":"https://codeload.github.com/westy92/holiday-event-api-dart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251645991,"owners_count":21620849,"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","api-client","best","calendar","checkiday","dart","dartlang","event","events","federal","flutter","free","holiday","holiday-api","holiday-calculation","holidayapi","holidays","holidays-api","list","public"],"created_at":"2024-10-03T11:01:42.592Z","updated_at":"2025-04-30T05:22:54.682Z","avatar_url":"https://github.com/westy92.png","language":"Dart","funding_links":["https://github.com/sponsors/westy92"],"categories":[],"sub_categories":[],"readme":"# The Official Holiday and Event API for Dart and Flutter\n\n[![pub points](https://img.shields.io/pub/points/holiday_event_api?color=2E8B57\u0026label=pub%20points)](https://pub.dev/packages/holiday_event_api/score)\n[![pub package](https://img.shields.io/pub/v/holiday_event_api.svg)](https://pub.dev/packages/holiday_event_api)\n[![Build Status](https://github.com/westy92/holiday-event-api-dart/actions/workflows/ci.yml/badge.svg)](https://github.com/westy92/holiday-event-api-dart/actions)\n[![Code Coverage](https://codecov.io/gh/westy92/holiday-event-api-dart/branch/main/graph/badge.svg)](https://codecov.io/gh/westy92/holiday-event-api-dart)\n[![Funding Status](https://img.shields.io/github/sponsors/westy92)](https://github.com/sponsors/westy92)\n\nIndustry-leading Holiday and Event API for Dart and Flutter. 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 Dart and Flutter Versions\n\nThe latest version of the the Holiday and Event API is compatible with the [latest version of Dart](https://dart.dev/) but should work with 2.15.0 and later.\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 recommended way to install the Holiday and Event API is through [Pub](https://pub.dev/).\n\n```bash\nflutter pub add holiday_event_api\n```\n\nor\n\n```bash\ndart pub add holiday_event_api\n```\n\n## Example\n\n```dart\nimport 'package:holiday_event_api/holiday_event_api.dart';\n\nvoid main() async {\n  try {\n    // Get a FREE API key from https://apilayer.com/marketplace/checkiday-api#pricing\n    final client = HolidayEventApi('\u003cyour API key\u003e');\n\n    // Get Events for a given Date\n    final events = await 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    final event = events.events[0];\n    print(\"Today is ${event.name}! Find more information at: ${event.url}.\");\n    print(\n        \"Rate limit remaining: ${events.rateLimit.remainingMonth}/${events.rateLimit.limitMonth} (month).\");\n\n    // Get Event Information\n    final eventInfo = await 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(\"The Event's hashtags are ${eventInfo.event.hashtags}.\");\n\n    // Search for Events\n    final query = 'zucchini';\n    final search = await client.search(\n      query: query,\n      // These parameters are the defaults but can be specified:\n      // adult: false,\n    );\n\n    print(\n        \"Found ${search.events.length} events, including '${search.events[0].name}', that match the query '$query'.\");\n  } catch (e) {\n    print(e);\n  }\n}\n\n```\n\n## License\n\nThe Holiday and Event API is made available under the MIT License (MIT). Please see the [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesty92%2Fholiday-event-api-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-dart/lists"}