{"id":30616396,"url":"https://github.com/infinityeol/uptimerobot.js","last_synced_at":"2026-06-23T11:31:08.190Z","repository":{"id":244859240,"uuid":"816508389","full_name":"InfinityEOL/uptimerobot.js","owner":"InfinityEOL","description":"A JavaScript library for interacting with the Uptime Robot API.","archived":false,"fork":false,"pushed_at":"2024-06-17T23:10:01.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T00:58:09.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://infinity-development.github.io/uptimerobot.js/","language":"TypeScript","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/InfinityEOL.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":"2024-06-17T22:41:20.000Z","updated_at":"2024-06-17T23:10:04.000Z","dependencies_parsed_at":"2024-06-17T23:28:53.586Z","dependency_job_id":null,"html_url":"https://github.com/InfinityEOL/uptimerobot.js","commit_stats":null,"previous_names":["infinity-development/uptimerobot.js","infinityeol/uptimerobot.js"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/InfinityEOL/uptimerobot.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityEOL%2Fuptimerobot.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityEOL%2Fuptimerobot.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityEOL%2Fuptimerobot.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityEOL%2Fuptimerobot.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfinityEOL","download_url":"https://codeload.github.com/InfinityEOL/uptimerobot.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityEOL%2Fuptimerobot.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34686727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-30T09:19:38.761Z","updated_at":"2026-06-23T11:31:08.169Z","avatar_url":"https://github.com/InfinityEOL.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uptimerobot.js\nA simple and intuitive way to interact with the UptimeRobot API v2, allowing users to easily monitor their websites' uptime, downtime, and performance metrics.\n\n---\n\n## Features\n- **Easy to Use**: Designed with simplicity in mind, enabling quick integration into your projects.\n- **Event-Driven**: Supports event-based responses for real-time monitoring and handling.\n- **Promise-Based API**: Offers a promise-based approach for handling asynchronous operations, making your code cleaner and more readable.\n- **Flexible Configuration**: Allows customization of request parameters to suit your monitoring needs.\n- **Error Handling**: Emits detailed error events for robust error handling and debugging.\n\n---\n\n## Installation\nTo install `uptimerobot.js`, using npm:\n\n```bash\nnpm install uptimerobot.js\n```\n\nor you can use yarn:\n\n```bash\nyarn add uptimerobot.js\n```\n\n---\n\n## Usage\nFirst import the `URClient` class from the library:\n```js\nimport { URClient } from \"uptimerobot.js\";\n```\n\nThen initialize the client with your Uptime Robot API Key\n\u003e NOTE: read-only keys are required, any other key type will error.\n\n```js\nconst ur = new URClient({ api_key: \"ur1237348731-138175683126-39765382165\" });\n```\n\n---\n\n## Available Methods\nCurrently you can only fetch all monitors, we are working on adding more functionality and improvements over-time.\n\n### Get All Monitors\nTo retrieve all monitors with the default options:\n\n###### Promise\n\n```js\nur.getMonitors().then(monitors =\u003e {\n    console.log(`Fetched a total of: ${monitors.length} monitors`);\n}).catch((err) =\u003e {\n    console.error(`Error fetching monitors: ${err.message}`);\n});\n```\n\n###### Events\nYou can additionally listen to **all** events using our emitter.\n\n```js\nawait ur.getMonitors();\n\nur.on(\"getMonitors\", (monitors) =\u003e {\n    console.log(`Fetched a total of: ${monitors.length} monitors`)\n});\n\nur.on(\"error\", (error) =\u003e {\n    console.log(`Error fetching monitors: ${error}`)\n})\n```\n\n---\n\n## Contributing\nContributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or find any bugs.\n\n---\n\n## License\nThis project is licensed under the [MIT License](https://opensource.org/license/mit) - See [LICENSE](./LICENSE) for details! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityeol%2Fuptimerobot.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinityeol%2Fuptimerobot.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinityeol%2Fuptimerobot.js/lists"}