pkg-go API for agents (unofficial) — JSON over curl
pkg.go.dev is the Go package and module index. This CLI uses its public JSON API (/v1) to search packages and to look up package and module metadata, versions, symbols, importers and vulnerabilities. It also reads a few server-rendered pages: package docs, the standard library listing and the golang.org/x sub-repositories.
Host: pkg.go.dev. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Start with San Francisco and U.S. agent tasks: events, startup jobs, BART and Muni departures, Craigslist listings, local news, public datasets and prediction markets. Example: curl 'https://clify-dev.netlify.app/search?q=SF+tech+events'. Responses are one JSON object. The hosted MCP and GitHub repo are also available.
Machine-readable command schema · Source website
Commands
search-packages
Search Go packages by keyword, with an optional filter expression (e.g. on import counts) and cursor paging Params: q*, limit_value, filter, token Read-only
curl 'https://clify-dev.netlify.app/pkg-go/search-packages?q=http+router&limit_value=10&filter=importedByCounts.packages+%3E+1000'
get-package
Get metadata for a Go package (module, version, name, synopsis, latest flag, std flag), optionally at a specific version Params: path*, version, module Read-only
curl 'https://clify-dev.netlify.app/pkg-go/get-package?path=github.com%2Fgorilla%2Fmux&version=v1.7.0'
get-module
Get metadata for a Go module (latest or given version, commit time, repo URL, go.mod presence) Params: path*, version Read-only
curl 'https://clify-dev.netlify.app/pkg-go/get-module?path=github.com%2Fgorilla%2Fmux'
list-module-packages
List the packages contained in a Go module, with an optional filter (e.g. name == "main") Params: path*, version, filter, token Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-module-packages?path=github.com%2Fgorilla%2Fmux'
list-versions
List all versions of a Go module, with commit time, deprecation and retraction status Params: path*, filter, token Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-versions?path=github.com%2Fgorilla%2Fmux'
list-symbols
List exported symbols (types, funcs, methods, fields, consts, vars) of a Go package, optionally for a GOOS/GOARCH build context and filter Params: path*, version, GOOS, GOARCH, filter, token Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-symbols?path=net%2Fhttp&GOOS=windows&GOARCH=amd64&filter=hasPrefix%28name%2C+%22Server%22%29'
list-importers
List import paths of packages that import a given Go package (excluding packages in the same module), paged by cursor Params: path*, filter, token Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-importers?path=github.com%2Fgorilla%2Fmux'
list-vulns
List known Go vulnerabilities (from the Go vuln DB) affecting a module at a given version (latest by default) Params: path*, version, token Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-vulns?path=golang.org%2Fx%2Fnet&version=v0.1.0'
get-package-doc
Fetch the rendered documentation page of a package (README, doc text, repo link), optionally at a version (path@version) and GOOS Params: path*, GOOS Read-only
curl 'https://clify-dev.netlify.app/pkg-go/get-package-doc?path=github.com%2Fgorilla%2Fmux'
list-std-packages
List the Go standard library packages with links and synopses Params: none Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-std-packages'
list-subrepos
List the official Go sub-repositories (golang.org/x/...) with short descriptions Params: none Read-only
curl 'https://clify-dev.netlify.app/pkg-go/list-subrepos'