Google Open Source Blog
Read post

A new pkg.go.dev API for Go

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.

    #devtools#golang#rest-api
Jun 12•3m read time•From opensource.googleblog.com
Post cover image
Table of contents
Empowering Tool BuildersThe Service InterfaceA Reference ImplementationLooking Ahead
156.4K Impressions
Google Open Source Blog's image
Google Open Source Blog

Google Open Source is Google's initiative for promoting open-source software development and collabo...

988 Followers

•

1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard