# Go modules on Onekey > 2 endpoints for Go modules (2 stable, 0 beta), 1 credit each. Category: Developer platforms. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/goproxy Reference (Markdown): https://onekey.dev/docs/api/goproxy.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped Go modules endpoints return each: - `entity.createdAt` (ISO 8601 date): 2 - `package.repositoryUrl` (URL): 2 - `package.version` (string): 2 - plus 1 platform-specific field under `ext.` ## Endpoints ### goproxy.latest Latest version of a Go module (proxy.golang.org). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/goproxy/latest?module=github.com%2Fgin-gonic%2Fgin` with header `x-api-key: YOUR_API_KEY` - Parameters: - `module` (string, required): Go module path (lowercase only), e.g. github.com/gin-gonic/gin - Fields returned: `package.version`, `entity.createdAt`, `package.repositoryUrl`, `ext.commit` - Reference: https://onekey.dev/docs/api/goproxy/latest.md ### goproxy.version Info of one Go module version. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/goproxy/version?module=github.com%2Fgin-gonic%2Fgin&version=v1.9.1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `module` (string, required): Go module path (lowercase only), e.g. github.com/gin-gonic/gin - `version` (string, required): Semantic version with v prefix - Fields returned: `package.version`, `entity.createdAt`, `package.repositoryUrl`, `ext.commit` - Reference: https://onekey.dev/docs/api/goproxy/version.md ## Sample request ```bash curl "https://api.onekey.dev/v1/goproxy/latest?module=github.com%2Fgin-gonic%2Fgin" \ -H "x-api-key: YOUR_API_KEY" ```