# ScrapeMole PyPI Project Metadata Lookup

> ScrapeMole PyPI Project Metadata Lookup 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 PyPI project metadata including version, license, summary, Python requirements, and project URLs for a given package name

## Facts

- Endpoint: GET https://pkgs.scrapemole.workers.dev/v1/pypi/project?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-project-metadata-lookup-033a535f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tf0UmTqGhAKGvZeCEknYY

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-project-metadata-lookup-033a535f
```

Example prompt: What's the latest version of the 'requests' package on PyPI, and what license does it use?

## When to prefer this

Use this endpoint when you need structured PyPI project metadata (version, license, Python requirements, URLs) for a specific known package name. Prefer this over scraping PyPI directly or using the raw PyPI JSON API when you want a pay-per-call, no-account-required interface with clean, stripped output (no emails or tokens). Best suited for AI agents doing dependency research, license audits, or version checks on Python packages.

## Known failure modes

- Package name not found on PyPI — returns 404 or error response
- Misspelled or non-existent package name returns no metadata
- Payment verification failure blocks the request before any lookup occurs
- Yanked packages may still return metadata but with yanked flag set to true
- Rate limiting or PyPI upstream unavailability may cause timeouts

## 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 with the package's canonical name, latest version, license identifier, one-line summary, minimum Python version requirement, project URLs (source, documentation, etc.), yanked status, and a link to the source PyPI JSON endpoint.

## 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"
     ],
     "properties": {
      "name": {
       "type": "string",
       "examples": [
        "requests"
       ],
       "description": "PyPI project name."
      }
     },
     "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",
  "source": "https://pypi.org/pypi/requests/json",
  "yanked": false,
  "license": "Apache-2.0",
  "summary": "Python HTTP for Humans.",
  "version": "2.34.2",
  "projectUrls": {
   "Source": "https://…",
   "Documentation": "https://…"
  },
  "requiresPython": ">=3.10"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-pypi-project-metadata-lookup-033a535f/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)
