# Package Intelligence API (npm/PyPI/crates)

> Package Intelligence API (npm/PyPI/crates) is a paid API for AI agents from webtools402.176-109-107-191.sslip.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns version, age, release cadence, deprecation/yank status, license, and download stats with trend for a package on npm, PyPI, or crates.io

## Facts

- Endpoint: GET https://webtools402.176-109-107-191.sslip.io/dev/package
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/package-intelligence-api-npm-pypi-crates-e5a2f41b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GJNNsNIhGIkd0Xe9cU2Yr

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-intelligence-api-npm-pypi-crates-e5a2f41b
```

Example prompt: Can you look up the latest version, license, download stats, and whether it's deprecated for the 'requests' package on PyPI?

## When to prefer this

Use this endpoint when you need a comprehensive, single-call summary of a package's health and popularity across npm, PyPI, or crates.io — including version freshness, maintenance signals (deprecation/yank), license compliance, and download momentum — without having to query multiple registry APIs separately.

## Known failure modes

- Unknown package name returns 404 or empty result
- Unsupported ecosystem value returns validation error
- Rate limit or upstream registry unavailability causes 5xx
- Scoped npm package names with incorrect formatting may fail lookup

## How this service works

Package intelligence across npm / PyPI / crates: latest version, age, release cadence, deprecation/yank, license, and download stats (last day/week/month) with a rising/falling trend. Aggregates the official registry + downloads API + deps.dev.

## Output

Returns a structured object with the package's latest version, release age, release cadence, deprecation or yank status, license identifier, and download counts for the last day, week, and month along with a rising or falling trend indicator — aggregated from the official registry, downloads API, and deps.dev.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/package-intelligence-api-npm-pypi-crates-e5a2f41b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtools402.176-109-107-191.sslip.io](https://www.zero.xyz/host/webtools402.176-109-107-191.sslip.io/llms.txt)
