Go Packages API: Get Go module
Looks up a Go module on pkg.go.dev by path, link or name. For a name, it uses the module of the top package search result.
Unofficial. Not affiliated with or endorsed by Go Packages.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Module, required
module Go module path, pkg.go.dev link, or familiar name, such as github.com/gin-gonic/gin or cobra.
cobra
Input as JSON
{ "module": "cobra"}Output
{ "stable": true, "license": "Apache-2.0", "synopsis": "Package cobra is a commander providing a simple interface to create powerful modern CLI interfaces.\nIn addition to providing an interface, Cobra simultaneously provides a controller to organize your application code.", "module_path": "github.com/spf13/cobra" , "latest_version": "v1.10.2", "published_date": "2025-12-03", "pkg_go_dev_link": "https://pkg.go.dev/github.com/spf13/cobra" , "repository_link": "https://github.com/spf13/cobra" , "imported_by_count": 195884}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"pkg.go.dev/get_module","input":{"module":"cobra"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "pkg.go.dev/get_module" , "input": { "module": "cobra" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "pkg.go.dev/get_module" , "input": { "module": "cobra" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run pkg.go.dev/get_module# with {"module":"cobra"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "module" ], "properties": { "module": { "type": "string", "minLength": 1, "description": "Go module path, pkg.go.dev link, or familiar name, such as github.com/gin-gonic/gin or cobra." } }}Output schema
{ "type": "object", "required": [ "module_path", "stable", "pkg_go_dev_link" ], "properties": { "stable": { "type": "boolean" }, "license": { "type": [ "string", "null" ] }, "synopsis": { "type": [ "string", "null" ] }, "module_path": { "type": "string" }, "latest_version": { "type": [ "string", "null" ] }, "published_date": { "type": [ "string", "null" ] }, "pkg_go_dev_link": { "type": "string" }, "repository_link": { "type": [ "string", "null" ] }, "imported_by_count": { "type": [ "integer", "null" ] } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
pkg.go.dev/get_module- Returns
- module path, latest version, published date, license, imported-by count, repository, synopsis
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method pkg.go.dev/get_module with the inputs above.
Ask your agent
- What's the latest version of github.com/gin-gonic/gin and when was it published?
- Look up the cobra Go module and tell me its license and how many packages import it.
- Can you find the module at https://pkg.go.dev/github.com/spf13/viper and give me its repository and synopsis?
- I need the current release date and license for the go-redis module on pkg.go.dev.
- Check the Go module golang.org/x/net and report its imported-by count and latest version.
See more
Looks up a public npm package by name or npm link. Returns its latest version, weekly downloads, maintainers, links, dates and version count.
npmjs.com/get_packageLooks up a NuGet package by name or nuget.org link. Inexact names match the top search result. Returns the latest stable release's details and the 10 most recent versions, including prereleases.
nuget.org/get_packageGets a PyPI package's current version, release date, metadata, project links and its 10 most recently published versions from a package name or PyPI link.
pypi.org/get_packageFinds the best matching Maven Central library from its name or group:artifact coordinates and returns its current release, release date, version count and dependency snippets.
central.sonatype.com/get_latest_versionLooks up a Rust crate by name or crates.io link and returns its latest version, downloads, links, dates, license and 10 most recent releases.
crates.io/get_crateFinds a VS Code Marketplace extension by name or marketplace link and returns its publisher, installs, rating, version, categories and update date. For a name search it picks the most-installed close match.
marketplace.visualstudio.com/get_extensionSearches the npm registry for JavaScript packages by description or keywords, in npm's search order, and returns each package's latest version, weekly downloads and publish date.
npmjs.com/search_packagesLooks up a public GitHub repository by name, owner/name, or link and returns its stars, forks, release, commit and contributor facts.
github.com/get_repository