# Foundry PyPI Package Info

> Foundry PyPI 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).

Retrieves PyPI package metadata including latest version, license, Python requirement, and recent download counts for a given package name.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/pypi-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-pypi-package-info-4744c759
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FHsQYCKnG8522Yq010jZr

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-pypi-package-info-4744c759 -d '<json body>'
```

Example prompt: What's the latest version of the requests library on PyPI, what license does it use, and how many downloads did it get last week?

## When to prefer this

Use this endpoint when you need quick, structured PyPI metadata — version, license, download stats, and Python compatibility — for a single package without scraping PyPI directly or parsing RSS feeds. Prefer it over web search when you need machine-readable fields like download counts or SPDX license identifiers for automation, compliance checks, or dependency audits.

## Known failure modes

- Package name not found on PyPI — returns an error or empty result
- Typo in package name yields no match
- PyPI API unavailable or rate-limited — upstream failure
- Private or unlisted packages return no data
- Package exists but has no license or Python requirement metadata — fields may be null

## How this service works

PyPI package info: latest version, license, Python requirement and recent downloads. Input: a package name.

## Output

Returns a JSON object with the package's canonical name, latest version string, SPDX license identifier, one-line summary description, home page URL, minimum Python version requirement, download count for the last week, and download count for the last month.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "httpx",
  "license": "BSD-3-Clause",
  "summary": "The next generation HTTP client.",
  "version": "0.28.1",
  "home_page": "https://github.com/encode/httpx",
  "requires_python": ">=3.8",
  "downloads_last_week": 178937914,
  "downloads_last_month": 618500392
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-pypi-package-info-4744c759/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)
