# A new pkg.go.dev API for Go

DevFeed: [A new pkg.go.dev API for Go](<https://devfeed.tech/articles/a-new-pkg-go-dev-api-for-go-34305.md>)

Original publisher: [Read original article](<http://opensource.googleblog.com/2026/06/a-new-pkggodev-api-for-go.html>)

Author: Google Open Source (noreply@blogger.com)

Published: 2026-06-12T18:30:00Z

Content type: release

Language: en

Sources: [Google Open Source Blog](<https://devfeed.tech/sources/google-open-source-blog.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [JSON](<https://devfeed.tech/topics/json.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai-assisted-coding](<https://devfeed.tech/tags/ai-assisted-coding.md>), [api](<https://devfeed.tech/tags/api.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [go](<https://devfeed.tech/tags/go.md>), [json](<https://devfeed.tech/tags/json.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [pkg-go-dev](<https://devfeed.tech/tags/pkg-go-dev.md>)

## AI overview

The Go Team introduces a structured API for pkg.go.dev, providing programmatic access to Go package metadata. The stateless, GET-only API returns JSON metadata, is currently available under a v1beta path, and is intended to evolve toward a formal v1 release after community feedback and stability validation.

## Source excerpt

by Ethan Lee, Jonathan Amsterdam & Hana Kim, Go Team Access to Go metadata has been an everpresent need for the Go community. Since its launch, pkg.go.dev has served as a central hub for Go package documentation and discovery. While we initially prioritized providing this comprehensive access via a web interface, the need for streamlined programmatic access has become increasingly clear. Structured API access has been one of the most highly requested features for pkg.go.dev for a while now. Developers building tools, IDE integrations, automated workflows, and other systems have had to rely on inconsistent and fragile scraping methods. By providing a formal API, we can provide fast and efficient access to required data. This foundation also sets Go up for the future of AI-assisted coding. Large language models and agents can access the context necessary to reason about the Go ecosystem with greater precision and accuracy. Empowering Tool Builders Our goal with this API is to reduce the technical churn for builders and innovators. By offering structured JSON metadata, we address the following use cases: Search and Discovery: The API enables fast and efficient search across the entire Go module ecosystem. Driving AI Innovation: As AI-assisted coding evolves, LLMs and agents need precise context. This API provides the data required for agents and models to reason deterministically about Go packages. The Service Interface Built for stability and efficient caching, the API uses a stateless, GET-only architecture. Primary endpoints are currently hosted under the v1beta path. Following a period of feedback from the Go community and confirmed stability, we intend to transition toward a formal v1 release. For a complete interactive reference of all endpoints, query parameters, and response shapes, see pkg.go.dev/api. The machine-readable API contract is also published directly at pkg.go.dev/v1beta/openapi.yaml. Endpoint Description /v1beta/imported-by/{path} Paths of packages