LobstersFriday · May 22, 2026FREE

Introducing the pkg.go.dev API

goapipackage-discoverytooling

The Go team announced the release of the pkg.go.dev API, providing programmatic access to the package documentation site. The API is available at https://api.pkg.go.dev/ and supports endpoints for fetching package details, documentation, versions, and imports. Developers can query by package path and module path, with responses in JSON format. The API is free to use without authentication for read-only access, though rate limits apply. This eliminates the need for web scraping, enabling reliable integration into IDEs, CI/CD pipelines, and custom tooling. The API is built on the same backend as the website, ensuring consistency. The Go blog post includes examples and documentation for common use cases. This launch follows community requests for a stable API to support automated workflows and tooling around Go package discovery.

// why it matters

Developers can now automate package discovery and documentation retrieval without scraping.

Sources

Primary · Lobsters
▸ Read original at go.dev

Like this? Get the next digest.