# ForgeMesh Python Package Version Lookup

> ForgeMesh Python Package Version Lookup is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns the latest version, license, Python version constraint, declared dependencies, and yank status for any PyPI package — a quick pre-install metadata check for Python coding agents.

## Facts

- Endpoint: POST https://x402.forgemesh.io/python-package-version
- 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/forgemesh-python-package-version-lookup-27dc03e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KpHGLoho42ggyBL3Sv2Qu

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 forgemesh-python-package-version-lookup-27dc03e0 -d '<json body>'
```

Example prompt: Before I add httpx to my requirements.txt, can you check what the latest PyPI version is, whether it's been yanked, what license it uses, and what Python version it requires?

## When to prefer this

Use this endpoint when a coding agent needs to verify a Python package's current version, license compatibility, Python version requirements, or dependency tree before committing to using it — particularly useful for automated dependency resolution, security audits, or CI pipeline checks. Prefer this over scraping PyPI directly or using pip commands when operating in an agentic, serverless, or sandboxed environment.

## Known failure modes

- Package name not found on PyPI — returns an error or empty result
- Typo in package name leads to wrong or missing package
- PyPI API temporarily unavailable — upstream timeout or 5xx error
- Package exists but has no metadata fields (e.g. no license declared) — fields may be null or absent

## How this service works

Returns the latest version, summary, license, and required Python version constraint for any package on the Python Package Index, plus its declared dependencies and yank status. A quick pre-install check for coding agents working in Python before they commit to a dependency.

## Output

Returns the latest published version, a short summary, SPDX license identifier, requires-python constraint, list of declared dependencies, and whether the package has been yanked from PyPI — all in a single response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "package": {
   "type": "string",
   "description": "package name, e.g. requests"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "name": "requests",
   "summary": "Python HTTP for Humans.",
   "version": "2.32.3",
   "requires_python": ">=3.8"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-python-package-version-lookup-27dc03e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
