{"uid":"cap_yka40BZuV8K-b-c4qjcSv","slug":"stride20k-pypi-package-health-api-b4762587","name":"Stride20k PyPI Package Health API","description":"Agent data gateway plus the live x402 market feed. Normalized, schema-stable JSON for crypto prices, DeFi TVL, on-chain DEX pools, gas, FX, US Treasury yields, US weather, WHOIS, DNS, email validation, web-page extraction, tech news, Wikipedia, npm/PyPI package health, ERC-20 token-risk scoring, and composed domain dossiers, plus x402 ecosystem analytics and metered LLM inference. Pay per call with USDC via the x402 protocol; no accounts, no API keys.","url":"https://gateway.stride20k.com/dev/pypi/%7BpackageName%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"yanked":false,"license":"Apache-2.0","package":"requests","summary":"Python HTTP for Humans.","versionCount":163,"latestVersion":"2.34.2","requiresPython":">=3.10","dependencyCount":6,"weeklyDownloads":380362015,"latestUploadedAt":"2026-05-14T19:25:26.443000Z"},"meta":{"cached":false,"source":"PyPI JSON API + pypistats","fetchedAt":"2026-07-04T00:00:00.000Z","attribution":null},"endpoint":"/dev/pypi/:packageName"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_--OzUa-4-0snQHQVgRwlA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches normalized health and metadata for a PyPI Python package, including latest version, license, download stats, dependency count, and yanked status.","exampleAgentPrompt":"Can you pull the PyPI health stats for the 'requests' package — I want to know the latest version, weekly downloads, license, and whether it's been yanked?","exampleUseCases":[{"title":"Vetting a new Python dependency","prompt":"Before I add 'httpx' to my project, can you check its PyPI stats — latest version, weekly downloads, license, and whether it's been yanked?"},{"title":"Auditing Python package license compliance","prompt":"I need to verify the license of the 'cryptography' package on PyPI — can you look it up and tell me what license it uses?"},{"title":"Checking Python version compatibility","prompt":"Does the 'pydantic' package on PyPI require a minimum Python version, and what's the latest release? I'm running Python 3.10."}],"resultDescription":"Returns a JSON object with package metadata including: package name, latest version, yanked status, license, summary, version count, required Python version, dependency count, weekly download count, and the timestamp of the latest upload. Also includes cache status, data source attribution, and fetch timestamp in a meta field.","failureModes":["Package name not found on PyPI — returns an error or empty result","Yanked or deleted package may return incomplete data","PyPI or pypistats API downtime may cause fetch failures","Malformed packageName parameter may result in 400-level errors","Stale cached data if cached:true is returned"],"whenToPreferThis":"Use this endpoint when you need quick, normalized Python package health data from PyPI without setting up an API key or account. It's ideal for dependency auditing, license checks, popularity assessment, or automated supply-chain hygiene checks in agent workflows. Prefer this over direct PyPI API calls when you need metered, pay-per-use access with no auth setup, or when aggregating with other Stride20k data endpoints in a single pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:01.654Z","isFirstParty":false}