{"uid":"cap_a9j-F5Zfs7vUYHKFrigO8","slug":"pypi-package-preflight-check-1a2ff108","name":"PyPI Package Preflight Check","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/software/pypi-package-preflight","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","pattern":"^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,198}[A-Za-z0-9])?$","description":"PyPI project name."},"version":{"type":"string","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","properties":{"network":{"type":"string"},"product":{"type":"string"},"activity":{"type":"object"},"identity":{"type":"object"},"assessment":{"type":"object"},"provenance":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"pypi-package-preflight","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DtOU4SyZ23CY8F21NntZk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks a PyPI package's metadata, release age, yanked status, Python requirements, dependencies, license, and known OSV vulnerabilities.","exampleAgentPrompt":"Before I add it to my project, can you run a preflight check on the PyPI package 'requests' version 2.31.0 — I want to know if it has any OSV vulnerabilities, whether it's been yanked, what license it uses, and what Python versions it supports?","exampleUseCases":null,"resultDescription":"Returns structured assessment including package metadata (name, version, release date, age), yanked/deprecation status, supported Python version requirements, declared dependencies, license type, and any known OSV security vulnerabilities linked to that package version.","failureModes":["Package not found on PyPI — returns error if the package name is misspelled or does not exist","Version not found — if a specific version string is invalid or not published, returns an error","OSV lookup failure — vulnerability data may be unavailable if OSV service is unreachable","Invalid package name pattern — returns validation error if name does not match PyPI naming rules","Network timeout — Cloudflare Worker may time out fetching upstream PyPI or OSV data"],"whenToPreferThis":"Use this endpoint when you need a comprehensive, machine-readable preflight safety and metadata check for a specific PyPI package before installing or depending on it — especially when you want vulnerability data (OSV), license compliance, yanked status, and Python compatibility all in one call. Prefer this over manual PyPI browsing or separate OSV queries when automating dependency auditing in CI/CD pipelines or agent-driven software workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:37.239Z","isFirstParty":false}