# Package Metadata Lookup (npm/PyPI/crates)

> Package Metadata Lookup (npm/PyPI/crates) is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.006/call, status unknown (last checked 2026-11-07).

Fetches metadata and details for a named software package from npm, PyPI, or crates.io ecosystems.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/dev/package?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-metadata-lookup-npm-pypi-crates-5dfe109d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tk1nd0G84HC7-BMulloe8

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-metadata-lookup-npm-pypi-crates-5dfe109d
```

Example prompt: Can you look up the npm package @babel/core and give me its metadata?

## When to prefer this

Use this endpoint when you need quick, pay-per-call package metadata lookups across npm, PyPI, or crates.io without setting up API keys for each registry. Particularly useful for agents that need on-demand dependency information at low cost ($0.006 per call) via x402 micropayments.

## Known failure modes

- Package not found in the specified ecosystem — returns success:false or empty result
- Invalid or unsupported ecosystem value — schema validation error
- Missing required query parameters (ecosystem or name) — request rejected
- Network timeout or upstream registry unavailable — server error response
- Scoped package name malformed — lookup fails silently or returns error

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with a 'result' field containing package metadata (e.g., name, version, description, and other ecosystem-specific details) and a 'success' boolean indicating whether the lookup succeeded.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ecosystem",
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "default": null,
       "description": "Package name (npm scoped @scope/name allowed)"
      },
      "ecosystem": {
       "enum": [
        "npm",
        "pypi",
        "crates"
       ],
       "type": "string",
       "default": null,
       "description": "Package ecosystem (aliases: pip/python, cargo/rust, node)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-metadata-lookup-npm-pypi-crates-5dfe109d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
