{"uid":"cap_1-z_CLn48xl9hvXk66bj-","slug":"toll402-npm-package-info-4a1b9a7a","name":"Toll402 NPM Package Info","description":"Latest version, description, license, weekly downloads (via api.npmjs.org) and homepage for an npm package","url":"https://toll402.dev/v1/t/npm_package_info","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_iyST_GbRGLQWliQAmmNNN","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 version, description, license, weekly downloads, and homepage URL for a given npm package name","exampleAgentPrompt":"What is the latest version, license, and weekly download count for the lodash npm package?","exampleUseCases":[{"title":"Check package version before upgrading","prompt":"What is the current published version of the webpack npm package, and how many weekly downloads does it get?"},{"title":"Verify open source license compatibility","prompt":"What license does the moment npm package use? I need to check if it's MIT-compatible before adding it to my project."},{"title":"Evaluate package popularity and maintenance","prompt":"Can you look up the npm info for the fastify package — I want to see its description, homepage, and how many weekly downloads it has to gauge how active it is?"}],"resultDescription":"Returns a structured object containing the package's latest published version string, a short description, the license identifier (e.g. MIT, ISC), the weekly download count sourced from api.npmjs.org, and the homepage URL if provided by the package author.","failureModes":["Package name not found on npm registry — returns error or empty result","Typo in package name — may return null or 404-equivalent response","Scoped package names (e.g. @babel/core) may need special formatting","npm registry downtime or rate limiting could cause request failure","Private or unlisted packages will not be found"],"whenToPreferThis":"Choose this endpoint when you need quick, structured npm package metadata — version, license, download stats, and homepage — without having to parse the full npm registry JSON yourself. Ideal for dependency audits, license checks, popularity assessments, and developer tooling agents. Prefer this over scraping npmjs.com or calling api.npmjs.org directly when you want a clean, pay-per-call interface with no API key needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:50:29.395Z","isFirstParty":false}