# PyPI Package Metadata Lookup

> PyPI Package Metadata Lookup is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-10-09).

Fetches metadata for a Python package from PyPI, including version, dependencies, Python compatibility, release history, and license.

## Facts

- Endpoint: GET https://api.strale.io/x402/pypi-package-info?utm_source=zero.xyz
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-b68ce490
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EBjeU3wlK-Z1i2YGtNPuM

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 api-strale-io-b68ce490
```

Example prompt: What's the latest version of the 'httpx' package on PyPI, and what are its dependencies and supported Python versions?

## When to prefer this

Use this endpoint when you need structured, parsed Python package metadata from PyPI without scraping the website yourself. Ideal for dependency analysis, compatibility checking, license auditing, or checking the latest release of any public PyPI package.

## Known failure modes

- Package not found on PyPI — returns error if the package name does not exist
- Misspelled package name — returns not found rather than a fuzzy match
- Private or internal packages not published to PyPI cannot be resolved
- Network or upstream PyPI API unavailability

## How this service works

Fetch Python package metadata from PyPI: version, dependencies, Python compatibility, release history, license.

## Output

Returns structured metadata for the specified Python package including: current version, list of dependencies, Python version compatibility range, release history with dates, and the package license.

## Example request

```json
{
 "package": "requests"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "package"
 ],
 "properties": {
  "package": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "name": {
  "type": "string"
 },
 "summary": {
  "type": "string"
 },
 "version": {
  "type": "string"
 },
 "dependencies": {
  "type": "array"
 },
 "recent_releases": {
  "type": "array"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-b68ce490/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
