The Go team has officially launched the pkg.go.dev API, a programmatic interface for querying metadata about published Go modules and packages. Previously, developers building tools or IDE integrations had to rely on web scraping. The new API uses a stateless GET-only architecture under a /v1beta path, with endpoints covering package info, module info, versions, symbols, search, imported-by relationships, and vulnerability data. A key design principle is 'precision over convenience' — ambiguous package paths require explicit module specification. Version queries support semantic versions and master/main branch names. A reference CLI client (pkgsite-cli) is provided to demonstrate usage. The API is currently in beta with a v1 release planned after community feedback, and backward compatibility is committed.
Table of contents
The service interface ¶The pkgsite-cli reference implementation ¶Stability and the future ¶Sort: