{"uid":"cap_yY4r35axI6X0jaAZ-oUY-","slug":"package-intelligence-api-npm-pypi-crates-2b10ac66","name":"Package Intelligence API (npm / PyPI / crates)","description":"Package intelligence across npm / PyPI / crates: latest version, age, release cadence, deprecation/yank, license, and download stats (last day/week/month) with a rising/falling trend. Aggregates the official registry + downloads API + deps.dev.","url":"https://api.agentstools.dev/dev/package?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"},"queryParams":{"type":"object","required":["ecosystem","name"],"properties":{"name":{"type":"string","description":"Package name (npm scoped @scope/name allowed)"},"ecosystem":{"enum":["npm","pypi","crates"],"type":"string","description":"Package ecosystem (aliases: pip/python, cargo/rust, node)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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":{"p10Cents":"0.5000","medianCents":"0.5000","p90Cents":"0.5000","minCents":"0.5000","maxCents":"0.5000","p95Cents":"0.5000","sampleCount":1,"varies":false,"failureChargeRate":1},"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_5ulbdx7nB6VncwIIzVa9q","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":"Returns version, age, release cadence, deprecation/yank status, license, and download stats with trend for a package on npm, PyPI, or crates.io","exampleAgentPrompt":"What's the latest version of the 'axios' npm package, is it deprecated, and is its download trend rising or falling over the last month?","exampleUseCases":null,"resultDescription":"A structured object containing the latest version, package age, release cadence (time between releases), deprecation or yank flag, SPDX license string, and download counts for the last day, week, and month along with a rising/falling trend indicator — aggregated from the official registry, downloads API, and deps.dev.","failureModes":["Package not found in the specified ecosystem returns a 404 or empty result","Misspelled package name returns no data","Ecosystem alias mismatch (e.g. using 'pip' when 'pypi' is required) causes a validation error","Download stats may lag real-time by 24–48 hours","Rate limiting or payment failure returns a 402 or 429 error"],"whenToPreferThis":"Use this endpoint when you need a fast, aggregated snapshot of a package's health and popularity across npm, PyPI, or crates.io — especially when you want version, deprecation, license, and download trend data in a single call without hitting multiple registry APIs yourself. Prefer this over manual registry lookups when building dependency auditing tools, security scanners, or developer dashboards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:20.158Z","isFirstParty":false,"canonicalSlug":"package-intelligence-api-npm-pypi-crates-2b10ac66"}