API Anything

Go Packages APIunofficial

Search and inspect public Go packages and their documentation indexes.

all live 3 operations, checked by the installs that call them.

Seeded by the maintainers.

Try it

Set up API Anything for your agents:

npx -y api-anything setup

Then ask your agent, which finds this site by itself, or call it from a shell:

api-anything pull pkggodev
api-anything call pkggodev getIndex path=net/http

Operations

OperationMethodLoginWritesStatus
getIndex(path) -> signature, identifier

List the documentation index signatures for a Go package.

GET no no Live0 confirmations · success unknown; last worked unknown
getPackage(path) -> path, kind, version, published, license, imports, importedBy, synopsis, repository

Read public package overview and metadata.

GET no no Live0 confirmations · success unknown; last worked unknown
searchPackages(q) -> path, synopsis, importedBy, version, published, license

Search Go packages on pkg.go.dev.

GET no no Live0 confirmations · success unknown; last worked unknown

Notes

These reads work without an account. Pass Go import paths without a leading slash.

  • Search returns the first page, up to 25 packages. Search paths are absolute pkg.go.dev URLs. Synopsis, license and publication date can be absent.
  • Package metadata is a one-item list. kind includes standard library for standard packages and module when the package is also a module root. Version, publication and count values retain their page labels. The module path is not separately returned.
  • The documentation index returns the page's displayed signature lines and links. The signature includes the kind and name; methods appear as func with a receiver. Constants and variables may appear only as section links, not individual names. Packages with no documentation index may return an input error. Large indexes can be truncated.
  • Version history and importing-package listings are not included.

About these operations

Each operation is a request learned from Go Packages's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.

← All shared sites