# PyPI Yanked Status Check

> PyPI Yanked Status Check is a paid API for AI agents from package-health.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Checks whether a specific PyPI package version has been yanked, returning the maintainer's reason, upload date, and file count.

## Facts

- Endpoint: GET https://package-health.x402tookit.com/pypi-yanked?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pypi-yanked-status-check-1d49b400
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EYAYH9-9xxNECj_5o7LT7

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-yanked-status-check-1d49b400
```

Example prompt: Check if requests version 2.19.0 on PyPI has been yanked — I need to know if it's safe to use, why it was yanked if so, when it was uploaded, and how many files are in that release.

## When to prefer this

Use this endpoint when you need to check a single, exact PyPI package version for yanked status — particularly in CI/CD pipelines, dependency audits, or supply chain security workflows. Prefer this over generic package health endpoints when the yanked/yank-reason signal is the primary concern, rather than license, provenance, or adoption metrics.

## Known failure modes

- Package name or version not found on PyPI — returns null fields or an appropriate error
- Yanked reason not provided by maintainer — yankedReason field may be null even when yanked is true
- PyPI API unavailable — degraded flag set to true with partial data
- Invalid version string format — query returns no match
- Rate limiting or upstream timeout from PyPI

## How this service works

Was a PyPI release yanked? Exact version check with the maintainer's reason, upload date and file count.

## Output

Returns a structured object with: yanked (boolean), yankedReason (the maintainer's stated reason), uploaded (ISO date of the release), files (count of distribution files), requiresPython (version constraint), verdict (human-readable summary), summary, sourceUrl, and degraded/notChecked flags if the check was partial.

## 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",
       "description": "PyPI project name"
      },
      "version": {
       "type": "string",
       "description": "Exact version, e.g. 2.19.0"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "files": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "yanked": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "version": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "uploaded": {
       "type": [
        "null",
        "string"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "yankedReason": {},
      "requiresPython": {
       "type": [
        "null",
        "string"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pypi-yanked-status-check-1d49b400/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from package-health.x402tookit.com](https://www.zero.xyz/host/package-health.x402tookit.com/llms.txt)
