{"uid":"cap_v4F3fspfM6zbS166vX8GO","slug":"npm-package-info-api-0e1a7b05","name":"NPM Package Info API","description":"NPM package info API: package registry lookup for npm, PyPI and Cargo with latest version, age, license, deprecation, weekly downloads and OSV vulnerabilities. Dependency check before install.","url":"https://dominion-data.x402-evm-math.workers.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"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"flags":[],"exists":true,"verdict":"ok","latestVersion":"4.17.21"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DZmp769pe07COUxg1ovww","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up npm, PyPI, or Cargo package metadata including latest version, age, license, deprecation status, weekly downloads, and known vulnerabilities (OSV) before install.","exampleAgentPrompt":"Before I add lodash to my project, can you check the npm registry for its latest version, license, weekly downloads, deprecation status, and any known vulnerabilities?","exampleUseCases":[{"title":"Vulnerability check before install","prompt":"I'm about to install the 'colors' npm package — can you check if it has any known OSV vulnerabilities, whether it's deprecated, and what its latest version is?"},{"title":"License compliance review","prompt":"What license does the 'requests' PyPI package use, and is it still actively maintained? I need to know before including it in a commercial project."},{"title":"Cargo crate dependency audit","prompt":"Can you look up the 'serde' Cargo crate and tell me the latest version, how many weekly downloads it gets, and whether there are any known security issues?"}],"resultDescription":"Returns a JSON object with fields: exists (boolean), verdict (ok/warn/error), latestVersion (string), flags (array of issues such as deprecation or vulnerabilities), license, weekly downloads, and age information about the package.","failureModes":["Package not found on the specified registry — exists: false returned","Unknown or unsupported registry type causes an error response","Network timeout reaching the upstream registry","Stale vulnerability data if OSV database is not up to date","Missing query parameters cause a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a quick pre-install dependency check covering version, license, deprecation, downloads, and OSV vulnerability data across npm, PyPI, and Cargo registries in a single call. Prefer it over manual registry browsing or separate security scanners when building automated dependency auditing workflows or agent-driven package evaluation pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:02:25.000Z","isFirstParty":false,"canonicalSlug":"npm-package-info-api-0e1a7b05"}