{"id":22915418,"url":"https://github.com/pandatix/nvdapi","last_synced_at":"2025-05-12T14:24:13.212Z","repository":{"id":48629340,"uuid":"415066682","full_name":"pandatix/nvdapi","owner":"pandatix","description":"Unofficial but convenient Go wrapper around the NVD REST JSON API","archived":false,"fork":false,"pushed_at":"2025-05-12T09:34:20.000Z","size":152,"stargazers_count":33,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T14:23:56.086Z","etag":null,"topics":["api","cpe","cve","go","nist","nvd"],"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/pandatix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-08T17:04:16.000Z","updated_at":"2025-05-12T09:34:17.000Z","dependencies_parsed_at":"2024-02-12T08:17:08.851Z","dependency_job_id":"6728cdbf-c2b3-4863-a686-6b6dba3a9628","html_url":"https://github.com/pandatix/nvdapi","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandatix%2Fnvdapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandatix%2Fnvdapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandatix%2Fnvdapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandatix%2Fnvdapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pandatix","download_url":"https://codeload.github.com/pandatix/nvdapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253754375,"owners_count":21958851,"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","cpe","cve","go","nist","nvd"],"created_at":"2024-12-14T05:26:58.716Z","updated_at":"2025-05-12T14:24:13.125Z","avatar_url":"https://github.com/pandatix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\t\u003ch1\u003eNVD API\u003c/h1\u003e\n\t\u003cp\u003e\u003cb\u003eUnofficial but convenient Go wrapper around the \u003ca href=\"https://nvd.nist.gov/developers\"\u003eNVD API\u003c/a\u003e\u003c/b\u003e\u003c/p\u003e\n\t\u003ca href=\"https://pkg.go.dev/github.com/pandatix/nvdapi\"\u003e\u003cimg src=\"https://shields.io/badge/-reference-blue?logo=go\u0026style=for-the-badge\" alt=\"reference\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://goreportcard.com/report/github.com/pandatix/nvdapi\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/pandatix/nvdapi?style=for-the-badge\" alt=\"go report\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://coveralls.io/github/pandatix/nvdapi?branch=main\"\u003e\u003cimg src=\"https://img.shields.io/coverallsCoverage/github/pandatix/nvdapi?style=for-the-badge\" alt=\"Coverage Status\"\u003e\u003c/a\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/github/license/pandatix/nvdapi?style=for-the-badge\" alt=\"License\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/pandatix/nvdapi/actions?query=workflow%3Aci+\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/pandatix/nvdapi/ci.yaml?style=for-the-badge\u0026label=CI\" alt=\"CI\"\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/pandatix/nvdapi/actions/workflows/codeql-analysis.yaml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/pandatix/nvdapi/codeql-analysis.yaml?style=for-the-badge\u0026label=CodeQL\" alt=\"CodeQL\"\u003e\u003c/a\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://securityscorecards.dev/viewer/?uri=github.com/pandatix/nvdapi\"\u003e\u003cimg src=\"https://img.shields.io/ossf-scorecard/github.com/pandatix/nvdapi?label=openssf%20scorecard\u0026style=for-the-badge\" alt=\"OpenSSF Scoreboard\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\nIt supports API v2 with full support of endpoints, and keep support of deprecated for v1 for the sake of History.\nNotice that this Go module **does not** enforce the [recommended](https://nvd.nist.gov/developers/start-here#divRateLimits) rate limiting between each request.\n\n\u003e **Warning**\n\u003e\n\u003e This product uses the NVD API but is not endorsed or certified by the NVD.\n\n## How to use\n\nThe following shows how to basically use the wrapper to get a CPE for a given wide CPE match string.\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/pandatix/nvdapi/v2\"\n)\n\nfunc main() {\n\tapiKey := \"\u003cyour_nvd_api_key\u003e\"\n\tclient, err := nvdapi.NewNVDClient(\u0026http.Client{}, apiKey)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tresp, err := nvdapi.GetCPEs(client, nvdapi.GetCPEsParams{\n\t\tCPEMatchString: ptr(\"cpe:2.3:*:microsoft\"),\n\t\tResultsPerPage: ptr(1),\n\t})\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfor _, prod := range resp.Products {\n\t\tfmt.Println(prod.CPE.CPEName)\n\t}\n}\n\nfunc ptr[T any](t T) *T {\n\treturn \u0026t\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandatix%2Fnvdapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandatix%2Fnvdapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandatix%2Fnvdapi/lists"}