# Foundry NPM Package Info

> Foundry NPM Package Info is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns the latest version, license, dependency count, and weekly downloads for a given npm package name.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/npm-package?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-npm-package-info-0e3e2ebd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bZpa4FwOjHlt9sZLVDOPy

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 foundry-npm-package-info-0e3e2ebd -d '<json body>'
```

Example prompt: What's the latest version of lodash on npm, what license does it use, and how many weekly downloads does it get?

## When to prefer this

Choose this endpoint when you need a quick, structured summary of an npm package's current state — version, license, popularity, and dependency footprint — without having to scrape the npm website or call the full npm registry API directly. Ideal for agents doing dependency vetting, license compliance checks, or package popularity comparisons.

## Known failure modes

- Package name not found on npm registry — may return an error or empty result
- Misspelled or scoped package names (e.g. missing @scope/ prefix) may fail to resolve
- Data may be slightly stale if the npm registry cache has not refreshed
- Very new packages with no download history may return zero weekly downloads

## How this service works

npm package info: latest version, license, dependencies count and weekly downloads. Input: a package name.

## Output

A JSON object containing the package name, current latest version, SPDX license string, homepage URL, repository URL, short description, total number of dependencies, and weekly download count from npm.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "An npm package name"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "axios",
  "license": "MIT",
  "version": "1.21.0",
  "homepage": "https://axios-http.com",
  "repository": "git+https://github.com/axios/axios.git",
  "description": "Promise based HTTP client for the browser and node.js",
  "dependencies": 4,
  "weekly_downloads": 145579892
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-npm-package-info-0e3e2ebd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
