APIs / Go Modules / Latest module version
Go Modules: Latest module version
A Go module's latest version from the module mirror: publish time, VCS origin, licences, and deprecation or retraction notes.
GET /v1/go-modules/module-latest
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
module | string | Required | Up to 300 characters Module path, for example github.com/BurntSushi/toml. |
Example request
Go Modules
GET/v1/go-modules/module-latest?module=github.com%2Fgin-gonic%2Fgin
{
"success": true,
"data": {
"module": "github.com/gin-gonic/gin",
"version": "v1.12.0",
"published_at": "2026-02-28T10:10:09Z",
"origin": {
"vcs": "git",
"url": "https://github.com/gin-gonic/gin",
"ref": "refs/tags/v1.12.0",
"hash": "73726dc606796a025971fe451f0aa6f1b9b847f6"
},
"repo_url": "https://github.com/gin-gonic/gin",
"deprecated": false,
"retracted": false,
"licenses": [
"MIT"
],
"redistributable": true,
"has_go_mod": true,
"url": "https://pkg.go.dev/github.com/gin-gonic/gin"
},
"meta": {
"request_id": "req_e3297318cb05405da38d6e7cf9b845cd",
"credits_charged": 1,
"credits_remaining": 491
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 11 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
module | string |
version | string |
published_at | string |
origin | object |
repo_url | url |
deprecated | boolean |
retracted | boolean |
licenses | string[] |
redistributable | boolean |
has_go_mod | boolean |
url | url |