# ScrapeMole PyPI Release Metadata

> ScrapeMole PyPI Release Metadata is a paid API for AI agents from pkgs.scrapemole.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Fetches file-level metadata for a specific PyPI package release, including filenames, sizes, digests, upload timestamps, and package types.

## Facts

- Endpoint: GET https://pkgs.scrapemole.workers.dev/v1/pypi/release?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapemole-pypi-release-metadata-3a44b12e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YQUsPkudfDSrd5o7StC4N

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 scrapemole-pypi-release-metadata-3a44b12e
```

Example prompt: Can you pull the release details for the requests package version 2.32.3 on PyPI — I need the file names, sizes, and SHA256 digests for each distribution file.

## When to prefer this

Use this endpoint when you need file-level details for a specific PyPI release — file names, digests, sizes, upload times, and package types. Prefer it over general PyPI metadata endpoints when you need to verify integrity (SHA256), determine available distribution formats (wheel vs sdist), or audit what files shipped in a particular version.

## Known failure modes

- Package name not found on PyPI returns an error
- Exact version string not found returns an error
- Specifying 'latest' may resolve to an unexpected version
- Malformed version string causes query failure
- Payment not settled before response results in 402 rejection

## How this service works

Pay-per-call package registry lookups: npm package metadata, version details, search, and download counts; PyPI project metadata, releases, and name lookup. Public registry data only (no auth, no private packages, no scraping of user profiles). Emails and tokens are stripped. USDC via x402, no accounts.

Payments: x402 v2, scheme "exact", USDC on Base (eip155:8453). The payment is verified before the work and settled only when the response is 200. Terms: https://pkgs.scrapemole.workers.dev/terms

## Output

Returns a JSON object containing the package name, version, a list of release files (each with filename, size in bytes, SHA256 digest, upload timestamp, and package type such as bdist_wheel or sdist), file count, and the source PyPI URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name",
      "version"
     ],
     "properties": {
      "name": {
       "type": "string",
       "examples": [
        "requests"
       ],
       "description": "PyPI project name."
      },
      "version": {
       "type": "string",
       "examples": [
        "2.32.3"
       ],
       "description": "Exact version or \"latest\"."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "requests",
  "files": [
   {
    "size": 64558,
    "digests": {
     "sha256": "…"
    },
    "filename": "requests-2.32.3-py3-none-any.whl",
    "uploadTime": "2024-…",
    "packagetype": "bdist_wheel"
   }
  ],
  "source": "https://pypi.org/pypi/requests/json",
  "version": "2.32.3",
  "fileCount": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-pypi-release-metadata-3a44b12e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pkgs.scrapemole.workers.dev](https://www.zero.xyz/host/pkgs.scrapemole.workers.dev/llms.txt)
