{"id":40133229,"url":"https://github.com/daloman/regru-api-go","last_synced_at":"2026-01-19T13:36:34.350Z","repository":{"id":65661897,"uuid":"554436356","full_name":"daloman/regru-api-go","owner":"daloman","description":"regru-api-go module for Reg.ru API v2","archived":false,"fork":false,"pushed_at":"2023-02-03T14:42:48.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T09:38:05.392Z","etag":null,"topics":["golang-package","regru-api"],"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/daloman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-10-19T20:13:05.000Z","updated_at":"2023-01-31T20:53:38.000Z","dependencies_parsed_at":"2023-02-16T23:31:34.651Z","dependency_job_id":null,"html_url":"https://github.com/daloman/regru-api-go","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.03125,"last_synced_commit":"8b33d8ac6d74cc40eb946f7bfdb86dd72a5af418"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/daloman/regru-api-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daloman%2Fregru-api-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daloman%2Fregru-api-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daloman%2Fregru-api-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daloman%2Fregru-api-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daloman","download_url":"https://codeload.github.com/daloman/regru-api-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daloman%2Fregru-api-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28569413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T12:50:50.164Z","status":"ssl_error","status_checked_at":"2026-01-19T12:50:42.704Z","response_time":67,"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":["golang-package","regru-api"],"created_at":"2026-01-19T13:36:34.292Z","updated_at":"2026-01-19T13:36:34.343Z","avatar_url":"https://github.com/daloman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regru-api-go module for Reg.ru API v2\n\nhttps://www.reg.ru provide API access to control users, billing, domains etc.\n\nCurrently only several zone (domain) control functions implemented in this module.\n```bash\n\"zone/get_resource_records\"\n\"zone/add_txt\"\n\"zone/remove_record\"\n```\nAPI documentation https://www.reg.ru/reseller/api2doc#common\n\n# Access from known IP-address only\n\nAccess configuration https://www.reg.ru/user/account/#/settings/api/\n\n```json\n{\n   \"charset\" : \"utf-8\",\n   \"error_code\" : \"ACCESS_DENIED_FROM_IP\",\n   \"error_params\" : {\n      \"command_name\" : \"zone/get_resource_records\"\n   },\n   \"error_text\" : \"Access to API from this IP denied\",\n   \"messagestore\" : null,\n   \"result\" : \"error\"\n}\n```\n\n## Examples\n\n```go\n// Get domain information\npackage main\n\nimport (\n\t\"os\"\n\t\"github.com/daloman/regru-api-go/zonecontrol\"\n)\n\nvar username, password, domainName string\n\nfunc main() {\n\n\tusername = os.Getenv(\"API_USERNAME\")\n\tpassword = os.Getenv(\"API_PASSWORD\")\n\tdomainName = \"mydomain.com\"\n\t\n   zonecontrol.GetZones(username, password, domainName)\n   \n   // Create TXT resource record\n   //zonecontrol.AddTxtRr(username, password, domainName, \"_acme_foo_bar\", \"txt-record-content\")\n   // Remove TXT resource record\n\t//zonecontrol.RmTxtRr(username, password, domainName, \"_acme_example\", \"TXT\", \"\")\n}\n\n```\n\n# Known Issues\nTest API returns some fields as strings for test access and as int for real data, and vice versa.\n\nResponse for real account:\n```json\n{\n   \"answer\" : {\n      \"domains\" : [\n         {\n            \"dname\" : \"example.xyz\",\n            \"result\" : \"success\",\n            \"rrs\" : [\n               {\n                  \"content\" : \"111.222.111.222\",\n                  \"prio\" : 0,\n                  \"rectype\" : \"A\",\n                  \"state\" : \"A\",\n                  \"subname\" : \"@\"\n               },\n            ],\n            \"service_id\" : \"12345678\",\n            \"servtype\" : \"domain\",\n            \"soa\" : {\n               \"minimum_ttl\" : \"10m\",\n               \"ttl\" : \"10m\"\n            }\n         }\n      ]\n   },\n   \"charset\" : \"utf-8\",\n   \"messagestore\" : null,\n   \"result\" : \"success\"\n}\n\n```\nResponse for test account:\n```json\n{\n   \"answer\" : {\n      \"domains\" : [\n         {\n            \"dname\" : \"example.com\",\n            \"result\" : \"success\",\n            \"rrs\" : [\n               {\n                  \"content\" : \"111.222.111.222\",\n                  \"prio\" : \"0\",\n                  \"rectype\" : \"A\",\n                  \"state\" : \"A\",\n                  \"subname\" : \"www\"\n               }\n            ],\n            \"service_id\" : 12345,\n            \"servtype\" : \"domain\",\n            \"soa\" : {\n               \"minimum_ttl\" : \"12h\",\n               \"ttl\" : \"1d\"\n            }\n         }\n      ]\n   },\n   \"charset\" : \"utf-8\",\n   \"messagestore\" : null,\n   \"result\" : \"success\"\n}\n\n```\n\n```json\nWARN[0000] Could not unmarshal json: json: cannot unmarshal string into Go struct field rrsData.answer.Domains.Rrs.Prio of type int \nINFO[0000] The answer is: {Answer:{Domains:[{Dname:mydomain.pro ErrorCode: ErrorText: ErrorParams:map[] Result:success Rrs:[{Content:111.222.111.222 Prio:0 Rectype:A State:A Subname:www}] ServiceId: Servtype:domain Soa:map[minimum_ttl:12h ttl:1d]}]} Charset:utf-8 Messagestore: Result:success ErrorCode: ErrorText: ErrorParams:map[]}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaloman%2Fregru-api-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaloman%2Fregru-api-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaloman%2Fregru-api-go/lists"}