{"uid":"cap_Nja5tJcgg3S0oU9SJkrEP","slug":"pypi-package-stats-221cb8f4","name":"PyPI Package Stats","description":"Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.","url":"https://x402.agentutility.ai/pypi-package-stats","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["package"],"properties":{"package":{"type":"string","description":"PyPI package name. Case-insensitive; PEP 503 normalization applied internally."},"recent_versions":{"type":"number","description":"How many most-recent versions to include. 1-20. Default 5."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"package":{"type":"string"},"age_days":{"type":"integer"},"downloads":{"type":"object","properties":{"last_day":{"type":"integer"},"last_week":{"type":"integer"},"last_month":{"type":"integer"}}},"latest_version":{"type":"string"},"total_versions":{"type":"integer"},"normalized_name":{"type":"string"},"days_since_last_release":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"package":"requests","age_days":5300,"downloads":{"last_day":4800000,"last_week":33500000,"last_month":142000000},"latest_version":"2.31.0","total_versions":152,"normalized_name":"requests","days_since_last_release":220}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.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_CRXRLp9dauRdtodXG4CdM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns download counts, version history, age, and release metadata for a PyPI Python package by name.","exampleAgentPrompt":"Can you pull the PyPI download stats for the 'httpx' package — I want to know how many downloads it got last week and last month, plus the latest version and how recently it was released?","exampleUseCases":null,"resultDescription":"A JSON object containing the package name, normalized name, age in days, download counts broken down by last day/week/month, latest version string, total number of published versions, and days since the last release.","failureModes":["Package not found on PyPI — returns an error or empty result","Misspelled package name yields no data","PyPI stats API upstream outage causes timeout or error","Private/internal packages not listed on PyPI return no results"],"whenToPreferThis":"Use this endpoint when you need programmatic, machine-readable PyPI download and version metadata for a specific package — especially useful for agents assessing library popularity, maintenance activity, or version currency without scraping the PyPI website directly. Prefer this over web scraping or manual PyPI browsing when integrating into automated workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:08:20.843Z","isFirstParty":false}