{"id":18735476,"url":"https://github.com/virustotal/vt-go","last_synced_at":"2025-04-04T18:07:25.756Z","repository":{"id":35000313,"uuid":"133505189","full_name":"VirusTotal/vt-go","owner":"VirusTotal","description":"The official Go client library for VirusTotal API","archived":false,"fork":false,"pushed_at":"2024-07-11T10:26:42.000Z","size":110,"stargazers_count":198,"open_issues_count":6,"forks_count":33,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-03-28T17:09:16.581Z","etag":null,"topics":["go","library","virustotal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VirusTotal.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-15T11:19:16.000Z","updated_at":"2025-03-22T16:15:06.000Z","dependencies_parsed_at":"2023-01-16T23:01:07.205Z","dependency_job_id":"a9e3eec9-b8ef-439c-9dae-a844dc0c1dbd","html_url":"https://github.com/VirusTotal/vt-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirusTotal%2Fvt-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirusTotal%2Fvt-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirusTotal%2Fvt-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirusTotal%2Fvt-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirusTotal","download_url":"https://codeload.github.com/VirusTotal/vt-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226213,"owners_count":20904465,"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":["go","library","virustotal"],"created_at":"2024-11-07T15:17:13.810Z","updated_at":"2025-04-04T18:07:25.725Z","avatar_url":"https://github.com/VirusTotal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/VirusTotal/vt-go?status.svg)](https://godoc.org/github.com/VirusTotal/vt-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/VirusTotal/vt-go)](https://goreportcard.com/report/github.com/VirusTotal/vt-go)\n\n\n# vt-go\n\nThis is the official Go client library for VirusTotal. With this library you can\ninteract with the VirusTotal REST API v3 without having to send plain HTTP requests\nwith the standard \"http\" package.\n\n\n## Usage example\n\n```golang\npackage main\n\nimport (\n\t\"flag\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\tvt \"github.com/VirusTotal/vt-go\"\n)\n\nvar apikey = flag.String(\"apikey\", \"\", \"VirusTotal API key\")\nvar sha256 = flag.String(\"sha256\", \"\", \"SHA-256 of some file\")\n\nfunc main() {\n\n\tflag.Parse()\n\n\tif *apikey == \"\" || *sha256 == \"\" {\n\t\tfmt.Println(\"Must pass both the --apikey and --sha256 arguments.\")\n\t\tos.Exit(0)\n\t}\n\n\tclient := vt.NewClient(*apikey)\n\n\tfile, err := client.GetObject(vt.URL(\"files/%s\", *sha256))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tls, err := file.GetTime(\"last_submission_date\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Printf(\"File %s was submitted for the last time on %v\\n\", file.ID(), ls)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirustotal%2Fvt-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirustotal%2Fvt-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirustotal%2Fvt-go/lists"}