# Package Registry Info

> Package Registry Info is a paid API for AI agents from conclavex402.pythonanywhere.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Returns package registry metadata (latest version, summary, license, dependency count, and 30-day downloads) for a single PyPI or npm package.

## Facts

- Endpoint: GET https://conclavex402.pythonanywhere.com/v1/pkg?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-registry-info-cb4f5ef9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RUzV274aWEmSNkjfa4nzQ

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 package-registry-info-cb4f5ef9
```

Example prompt: Before I add it as a dependency, can you check PyPI for the latest version, license, and 30-day download count for the 'requests' package?

## When to prefer this

Choose this endpoint when an agent needs quick, structured package metadata (version, license, downloads) for a single PyPI or npm package prior to adding or upgrading a dependency, and does not need full release history, changelogs, or vulnerability scanning. It is especially useful for automated dependency-vetting pipelines or license compliance checks where a pay-per-call model is preferable to maintaining a registry API key.

## Known failure modes

- Package not found on the specified registry returns an error or empty result
- Ambiguous package name without specifying ecosystem may return wrong registry data
- Stale cache may return slightly outdated metadata (indicated by stale flag and staleness_sec)
- Network or upstream registry outage may cause timeout or error response
- Missing required query parameters (package name or type) results in a 400-level error

## How this service works

Call before adding or upgrading a dependency: package-registry metadata for one package (PyPI or npm): latest version, summary, license, dependency count; PyPI also returns 30-day downloads.

## Output

A JSON object containing the package name, ecosystem (pypi or npm), latest version string, one-line summary, license identifier (e.g. Apache-2.0), dependency count, homepage URL, and for PyPI packages the 30-day download count. Also includes a staleness flag and staleness age in seconds.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "home": "https://requests.readthedocs.io",
   "name": "requests",
   "license": "Apache-2.0",
   "summary": "Python HTTP for Humans.",
   "version": "2.32.3",
   "downloads30d": 1234567,
   "requires_python": ">=3.8"
  },
  "name": "requests",
  "route": "pkg",
  "stale": false,
  "source": "pypi",
  "ecosystem": "pypi",
  "staleness_sec": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-registry-info-cb4f5ef9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402.pythonanywhere.com](https://www.zero.xyz/host/conclavex402.pythonanywhere.com/llms.txt)
