{"uid":"cap_2clbft-5ECGr989qoLjxl","slug":"pypi-package-preflight-check-ed445288","name":"PyPI Package Preflight Check","description":"Check PyPI package metadata, release age, yanked status, Python requirements, dependencies, license, and OSV vulnerabilities.","url":"https://nohands-coinbase-bazaar.bytoken2023.workers.dev/v1/x402/software/pypi-package-preflight?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["package"],"properties":{"package":{"type":"string","example":"requests","pattern":"^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,198}[A-Za-z0-9])?$","description":"PyPI project name."},"version":{"type":"string","example":"latest","pattern":"^(?:latest|[A-Za-z0-9][A-Za-z0-9._+!-]{0,99})$","description":"Exact PyPI version or latest. Defaults to latest."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","x-schema-family":"STRUCTURED_PRODUCT_RESULT","x-schema-authority":"STRUCTURED_PRODUCT_RESULT","additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005011","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cj8R_SKqLBDYRcrasmw8a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005011","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and analyzes PyPI package metadata including release age, yanked status, Python requirements, dependencies, license, and known OSV vulnerabilities before installation or use.","exampleAgentPrompt":"Before I add requests 2.31.0 to my project, can you do a preflight check on that PyPI package — I want to know if it has any OSV vulnerabilities, whether it's been yanked, what Python versions it supports, and what its license is?","exampleUseCases":[{"title":"Security audit before dependency install","prompt":"I'm about to add cryptography 41.0.3 to my requirements.txt — can you check PyPI for any known OSV vulnerabilities, whether it's been yanked, and what license it uses?"},{"title":"Checking freshness of a stale package","prompt":"Is the PyPI package Pillow 9.0.0 still current and safe to use? I want to know its release age, whether it's been yanked, and if there are any open security advisories."},{"title":"Validating Python compatibility for a package","prompt":"Does the latest version of numpy on PyPI support Python 3.12? Also tell me if it has any known vulnerabilities and what its dependencies look like."}],"resultDescription":"Returns structured metadata about the requested PyPI package including: release timestamp and age, yanked status and reason, declared Python version requirements, direct dependencies, SPDX license identifier, and a list of OSV vulnerability advisories with severity and CVE references where available.","failureModes":["Package name not found on PyPI — returns 404-style error","Specific version not found — falls back to latest or returns error","PyPI API unavailable — upstream timeout or service error","Malformed package name input — validation error","OSV database query fails — vulnerabilities field may be empty or flagged as unavailable"],"whenToPreferThis":"Use this endpoint when an AI agent or developer workflow needs to vet a Python package before installation or inclusion in a project — especially when security, licensing compliance, or maintenance health are concerns. Prefer this over manual PyPI browsing when you need a structured, machine-readable preflight signal that combines metadata, vulnerability data (OSV), and yanked status in a single call. Ideal for CI/CD pipeline agents, dependency review bots, or autonomous coding agents that install packages on behalf of users.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:08.002Z","isFirstParty":false,"canonicalSlug":"pypi-package-preflight-check-ed445288"}