# PyPI Version Lookup

> PyPI Version Lookup is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the latest released version string of a Python package from PyPI's JSON API.

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/sturdy_elm/pypi-version-lookup
- 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/pypi-version-lookup-21e52a97
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a09DMNZKkUWXSDq44xaAq

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 pypi-version-lookup-21e52a97 -d '<json body>'
```

Example prompt: What's the latest version of the 'httpx' package on PyPI? I need to pin it in my requirements file.

## When to prefer this

Use this endpoint when you need a quick, single-call lookup of a Python package's latest PyPI version without querying PyPI directly. Ideal for automating dependency pinning, CI checks, or version conflict resolution inside an agent workflow.

## Known failure modes

- Package name not found on PyPI — returns an error or empty result
- Typo in package name leads to wrong or missing version
- PyPI API temporarily unavailable — upstream timeout or error
- Package exists but has no stable release — may return pre-release or unexpected version

## How this service works

PyPI Version Lookup - Call when you need the latest released version of a Python package on PyPI - pinning a requirement, checking whether an upgrade exists, or resolving a version conflict. Send the package name. Returns the current version string from PyPI's JSON API.

## Output

Returns the current version string of the requested Python package as published on PyPI (e.g. '2.31.0'), sourced directly from PyPI's JSON API.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     },
     "required": [
      "prompt"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-version-lookup-21e52a97/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
