{"uid":"cap_IPs5chNr48DifpWimz-LP","slug":"package-registry-info-d7655575","name":"Package Registry Info","description":"Call before adding or upgrading a dependency: package-registry metadata for one package (PyPI or npm): latest version, summary, license, dependency count; PyPI also returns 30-day downloads.","url":"https://conclavex402p04.pythonanywhere.com/v1/pkg?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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"pathParams":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"home":"https://requests.readthedocs.io","name":"requests","license":"Apache-2.0","summary":"Python HTTP for Humans.","version":"2.32.3","downloads30d":1234567,"requires_python":">=3.8"},"name":"requests","route":"pkg","stale":false,"source":"pypi","ecosystem":"pypi","staleness_sec":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lx6Ip8vWzojSay5TEVmXN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches metadata for a single PyPI or npm package: latest version, summary, license, dependency count, and (for PyPI) 30-day download stats.","exampleAgentPrompt":"Before I add it to my project, look up the PyPI registry info for the 'httpx' package — I need the latest version, license, and how many downloads it got in the last 30 days.","exampleUseCases":[{"title":"Pre-upgrade dependency audit","prompt":"I'm about to upgrade 'django' in my Python project — can you pull its current PyPI metadata so I can see the latest version, license, and whether it requires a newer Python version?"},{"title":"License compliance check","prompt":"Our legal team needs to know the license for the 'lodash' npm package before we ship — can you look that up for me?"},{"title":"Popularity sanity check before adopting a library","prompt":"I'm considering using 'aiohttp' in a new service — how many downloads did it get on PyPI in the last 30 days and is it still being maintained?"}],"resultDescription":"Returns a JSON object with the package name, ecosystem (pypi or npm), latest version, one-line summary, SPDX license identifier, dependency count, home page URL, and (for PyPI packages) 30-day download count, plus a staleness flag and cache age in seconds.","failureModes":["Package not found on the specified registry — returns an error or empty result","Wrong ecosystem specified (e.g. querying npm for a PyPI-only package)","Registry upstream timeout or outage causing stale or failed response","Stale cache returning an outdated version if the registry was recently updated","Missing required query parameters causing a 400-level error"],"whenToPreferThis":"Use this endpoint when an agent needs quick, structured package metadata (version, license, downloads) from PyPI or npm before adding, auditing, or upgrading a dependency — especially in automated dependency-management or compliance workflows where structured JSON output is required. Prefer this over scraping registry web pages or calling the raw registry APIs directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:43:54.533Z","isFirstParty":false,"canonicalSlug":"package-registry-info-d7655575"}