# PennyRail npm Latest Package Info

> PennyRail npm Latest Package Info is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches the latest package metadata from npm for a given package name, delivered as a paid machine-readable settlement service.

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/npm.latest--npm-latest-package-info
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-npm-latest-package-info-c771755d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BtQLOrrFqOZKtDm3kkwcQ

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 pennyrail-npm-latest-package-info-c771755d -d '<json body>'
```

Example prompt: Can you look up the latest npm package info for 'react' — I need to know the current version and package metadata?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically fetch the latest npm package metadata as part of a paid, metered workflow — especially in automated pipelines where a lightweight per-call cost ($0.003 USDC) is acceptable and a machine-readable settlement mechanism (x402) is required. Prefer alternatives like direct npm registry API calls when authentication and payment infrastructure are not in place.

## Known failure modes

- Package name not found on npm registry — returns error or empty result
- Malformed or empty input string — validation error
- npm registry is unreachable or rate-limited — service may return timeout or upstream error
- Payment failure via x402 protocol — request not processed

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the latest npm registry metadata for the requested package, which may include fields such as the current version number, package description, author, repository URL, dependencies, and publication timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-npm-latest-package-info-c771755d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
