# 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.

- Page: https://fous.com/methods/pkg.go.dev/get-module
- Method: `pkg.go.dev/get_module`, version 1
- Website: pkg.go.dev
- Returns: module path, latest version, published date, license, imported-by count, repository, synopsis
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `module` | string | yes | `"cobra"` | Go module path, pkg.go.dev link, or familiar name, such as github.com/gin-gonic/gin or cobra. |

## Output

From a run on Oct 23, 2026. Its input:

```json
{
  "module": "cobra"
}
```

Its output:

```json
{
  "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
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
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"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## 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.

## Input schema

```json
{
  "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

```json
{
  "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"
      ]
    }
  }
}
```

## See more

- [npm API: Get package](https://fous.com/methods/npmjs.com/get-package.md): Looks up a public npm package by name or npm link. Returns its latest version, weekly downloads, maintainers, links, dates and version count.
- [NuGet API: Get package](https://fous.com/methods/nuget.org/get-package.md): Looks 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.
- [PyPI API: Get package](https://fous.com/methods/pypi.org/get-package.md): Gets 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.
- [sonatype.com API: Get latest Maven Central version](https://fous.com/methods/central.sonatype.com/get-latest-version.md): Finds 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.
- [crates.io API: Get crate details](https://fous.com/methods/crates.io/get-crate.md): Looks up a Rust crate by name or crates.io link and returns its latest version, downloads, links, dates, license and 10 most recent releases.
- [Visual Studio Marketplace API: Get VS Code extension](https://fous.com/methods/marketplace.visualstudio.com/get-extension.md): Finds 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.
- [npm API: Search packages](https://fous.com/methods/npmjs.com/search-packages.md): Searches 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.
- [GitHub API: Get repository facts](https://fous.com/methods/github.com/get-repository.md): Looks up a public GitHub repository by name, owner/name, or link and returns its stars, forks, release, commit and contributor facts.
