{"uid":"cap_061EZoN6mFx5JtI6AFX6Y","slug":"pypi-package-metadata-lookup-673b199a","name":"PyPI Package Metadata Lookup","description":"Latest-release metadata from the official PyPI JSON API (live): version, license, requires_python compatibility, requires_dist dependency specs (max 100), yanked flag, last upload time and project URLs. Query: ?pkg=requests. No personal author/maintainer data. 1h cache.","url":"https://x402-datashop-production.up.railway.app/v1/pypi/package","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["pkg"],"properties":{"pkg":{"type":"string","description":"PyPI package name, e.g. requests"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WKTZWkm0b0CdaXADoscOz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches latest-release metadata for a PyPI package including version, license, Python compatibility, dependencies, yanked status, upload time, and project URLs.","exampleAgentPrompt":"Can you look up the latest PyPI metadata for the 'httpx' package — I want to know its current version, license, Python version requirements, and whether it's been yanked?","exampleUseCases":null,"resultDescription":"Returns latest-release metadata for the queried PyPI package: current version string, SPDX license identifier, requires_python compatibility constraint, up to 100 requires_dist dependency specifiers, yanked boolean flag, last upload timestamp, and project URL map (homepage, source, documentation, etc.). Data is live from the PyPI JSON API with a 1-hour cache.","failureModes":["Package not found on PyPI — returns 404 or error response","Misspelled package name produces no results","Package exists but has no releases — metadata may be sparse","Cache may serve data up to 1 hour old if package was just updated","Network timeout reaching PyPI upstream API"],"whenToPreferThis":"Use this endpoint when you need authoritative, structured PyPI release metadata — version, license, Python compatibility, and dependency specs — for a single package. Prefer it over scraping PyPI HTML or calling PyPI directly when you need a metered, cached, pay-per-call interface. Best for agent workflows that need to verify package details, audit dependencies, or check compatibility constraints programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:40:10.217Z","isFirstParty":false}