{"id":49359427,"url":"https://github.com/exileed/uptimerobotapi","last_synced_at":"2026-04-27T15:37:05.738Z","repository":{"id":57635696,"uuid":"417126931","full_name":"exileed/uptimerobotapi","owner":"exileed","description":"UptimeRobot API golang sdk","archived":false,"fork":false,"pushed_at":"2022-11-11T09:33:23.000Z","size":16,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-07-27T22:05:58.066Z","etag":null,"topics":["api","uptimerobotapi"],"latest_commit_sha":null,"homepage":"","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/exileed.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}},"created_at":"2021-10-14T12:45:34.000Z","updated_at":"2022-11-10T00:32:17.000Z","dependencies_parsed_at":"2023-01-21T15:48:27.556Z","dependency_job_id":null,"html_url":"https://github.com/exileed/uptimerobotapi","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/exileed/uptimerobotapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exileed%2Fuptimerobotapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exileed%2Fuptimerobotapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exileed%2Fuptimerobotapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exileed%2Fuptimerobotapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exileed","download_url":"https://codeload.github.com/exileed/uptimerobotapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exileed%2Fuptimerobotapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32343563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["api","uptimerobotapi"],"created_at":"2026-04-27T15:37:04.486Z","updated_at":"2026-04-27T15:37:05.729Z","avatar_url":"https://github.com/exileed.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uptimerobotapi [![Build Status](https://github.com/exileed/uptimerobotapi/workflows/test/badge.svg)](https://github.com/exileed/uptimerobotapi/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/exileed/uptimerobotapi.svg)](https://pkg.go.dev/github.com/exileed/uptimerobotapi) [![Go Report Card](https://goreportcard.com/badge/github.com/exileed/uptimerobotapi)](https://goreportcard.com/report/github.com/exileed/uptimerobotapi)\n\n\nA Go client for [UptimeRobot API](https://uptimerobot.com/api/).\n\n## Usage\n\nSee the [full API reference on Go.dev](https://pkg.go.dev/github.com/exileed/uptimerobotapi).\n\n### Client initialization\n\nAll API requests are made through [`uptimerobotapi.Client`](https://pkg.go.dev/github.com/exileed/uptimerobotapi#Client). Make sure to include an API token:\n\n``` go\npackage main\nimport (\n\t\"os\"\n\t\n\t\"github.com/exileed/uptimerobotapi\"\n)\nfunc main() {\n\tclient := uptimerobotapi.NewClient(os.Getenv(\"UPTIMEROBOT_API_TOKEN\"))\n\t...\n}\n```\n\n### Making API requests\n\nUse an initialized client to make API requests:\n\n``` go\npackage main\nimport (\n\t\"os\"\n\t\n\t\"github.com/exileed/uptimerobotapi\"\n)\nfunc main() {\n\tclient := uptimerobotapi.NewClient(os.Getenv(\"UPTIMEROBOT_API_TOKEN\"))\n\t\n\taccounts, err := client.Account.GetAccountDetails()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t...\n}\n```\n\n\n#### API Error Responses\n\nFor cases where your request results in an error from the API, you can use the\n`errors.As()` function from the standard library to extract the\n`uptimerobotapi.APIError` error value and inspect more details about the error,\nincluding the HTTP response code and UptimeRobot API Error Code.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\n\t\"github.com/exileed/uptimerobotapi\"\n)\n\n\nfunc main() {\n\tclient := uptimerobotapi.NewClient(\"\")\n\taccount, err := client.Account.GetAccountDetails()\n\tvar apiErr uptimerobotapi.APIError\n\t\t\n\t\n\t\tif errors.As(err, \u0026apiErr){\n\t\t\tif apiErr.RateLimited() {\n\t\t\t\tfmt.Println(\"rate limited\")\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tfmt.Println(\"unknown status code:\", apiErr.StatusCode)\n\t\t}\n\n\t\tpanic(err)\n\t}\n\tfmt.Println(account)\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexileed%2Fuptimerobotapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexileed%2Fuptimerobotapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexileed%2Fuptimerobotapi/lists"}