# PyPI Package Profile Lookup

> PyPI Package Profile Lookup is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Fetches a Python package's full profile from PyPI including latest version, license, author, dependencies, download stats, and yanked status.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/pypi-package?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-package-profile-lookup-2766862e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oC5NSUobfW4ZYkhhn9Syp

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-package-profile-lookup-2766862e -d '<json body>'
```

Example prompt: What's the latest version of the 'requests' package on PyPI, how many downloads did it get last month, and what Python version does it require?

## When to prefer this

Use this endpoint when you need a comprehensive snapshot of a Python package's metadata from PyPI — including version, license, dependencies, and download popularity — in a single call. Prefer this over scraping PyPI directly or using the raw PyPI JSON API when you also need download statistics, since it aggregates both PyPI and pypistats data together.

## Known failure modes

- Package not found on PyPI returns an error or null fields
- Yanked packages may have limited metadata
- Download stats may have slight delays from pypistats aggregation
- Author field may be null for packages with only maintainer info
- Links object may have null values if not provided by the package maintainer

## How this service works

Python package profile from PyPI: latest version and date, summary, license, required Python, links, dependencies, number of versions and yanked flag.

## Output

Returns a JSON object with the package name, latest version string, publish date, short summary, license identifier, required Python version, author info, source and documentation URLs, list of dependencies, total version count, recent download counts (day/week/month), and a boolean indicating if the latest version was yanked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "links": {
   "Source": "https://github.com/psf/requests",
   "Documentation": "https://requests.readthedocs.io"
  },
  "source": "PyPI (pypi.org, Python Software Foundation)",
  "license": "Apache-2.0",
  "package": "requests",
  "summary": "Python HTTP for Humans.",
  "versions": 163,
  "published": "2026-05-14T19:25:26.443000Z",
  "withdrawal": false,
  "dependencies": [
   "charset_normalizer<4,>=2",
   "idna<4,>=2.5"
  ],
  "last_version": "2.34.2",
  "required_python": ">=3.10"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-package-profile-lookup-2766862e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
