# CodePulse API – Golang Module Registry Lookup

> CodePulse API – Golang Module Registry Lookup is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Looks up a Golang module in the registry to return its supported versions, support status, and confidence level.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/registry/golang
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-golang-module-registry-lookup-fb1fd8fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gayK7skygdUN4hCgl5sK7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability codepulse-api-golang-module-registry-lookup-fb1fd8fc -d '<json body>'
```

Example prompt: Can you check the Golang module registry for github.com/gin-gonic/gin and tell me what versions are available and whether it's supported?

## When to prefer this

Use this endpoint when you need to programmatically verify the existence, support status, or available versions of a specific Golang module without manually browsing pkg.go.dev or the module proxy. It is ideal for AI agents performing dependency audits, evaluating unfamiliar packages, or automating Go project setup. Prefer this over general web scraping when you specifically need structured module metadata in a single call.

## Known failure modes

- Module not found in registry — may return supported: false with low confidence
- Invalid or malformed module URL input — may return validation error
- Registry data may be stale — data_as_of field indicates freshness
- Network or worker timeout on the Cloudflare edge — transient 5xx error
- Unknown or private modules not indexed — returns unsupported with warnings

## How this service works

Queries Go release tags and modules list from proxy.golang.org.

## Output

Returns a JSON object containing the module URL, a list of available version strings, a boolean indicating whether the module is supported, a confidence rating (e.g. 'high'), the date the data was last known accurate, and an informational disclaimer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "module"
     ],
     "properties": {
      "module": {
       "type": "string",
       "description": "Golang module URL (e.g. github.com/gin-gonic/gin)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "module": "github.com/gin-gonic/gin",
   "versions": [
    "v1.9.1"
   ]
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-golang-module-registry-lookup-fb1fd8fc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
