The Go team has launched a new official API for pkg.go.dev, providing structured programmatic access to Go ecosystem metadata. Previously, developers had to rely on fragile web scraping. The new API uses a stateless, GET-only architecture under a v1beta path and exposes endpoints for package info, module info, search, symbols, versions, imported-by relationships, and vulnerability data. A reference CLI tool (pkgsite-cli) is also provided to demonstrate usage. The API is designed to support tool builders, IDE integrations, automated workflows, and AI-assisted coding agents that need precise context about Go packages.
Table of contents
Empowering Tool BuildersThe Service InterfaceA Reference ImplementationLooking Ahead156.4K Impressions