{"uid":"cap_vEmnKQUhtNWuUWP6vog5I","slug":"npm-package-version-metadata-lookup-c70fb0cc","name":"npm Package Version & Metadata Lookup","description":"Looks up the latest published version of any npm package along with its license, declared dependencies, publish date, and deprecation status, the check a coding agent should run before adding a dependency to a project. Remember to URL-encode the slash in scoped package names.","url":"https://x402.forgemesh.io/npm-version-lookup","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"package":{"type":"string","description":"package name, e.g. express"}}},"responseSchema":{"type":"json","example":{"data":{"name":"express","license":"MIT","version":"4.21.2","dependencies":{"accepts":"~1.3.8"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.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_8mxLnDxIyAIKbO0xMwMF3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest published version, license, dependencies, publish date, and deprecation status for any npm package by name.","exampleAgentPrompt":"Before I add it to the project, can you check the latest npm version, license, and whether it's deprecated for the package 'express'?","exampleUseCases":null,"resultDescription":"Returns the latest published version number, SPDX license identifier, list of declared dependencies, publish date of the latest release, and whether the package has been marked as deprecated on the npm registry.","failureModes":["Package not found on npm registry — returns error or empty result","Scoped package name (e.g. @scope/package) not URL-encoded — may cause routing failure","Package exists but has no published versions — metadata may be incomplete","Network or registry timeout — transient error requiring retry","Malformed package name input — validation error"],"whenToPreferThis":"Use this endpoint when a coding agent or developer needs to vet an npm package before adding it as a dependency — specifically to check the current version, license compatibility, dependency footprint, recency, and deprecation status in a single call. Prefer this over scraping npm's website or running CLI commands in an agent context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:07:52.024Z","isFirstParty":false}