{"uid":"cap_Ce3zjJLkQq6rxtRQcbMbe","slug":"weblens-package-lookup-api-94a9f1f0","name":"WebLens Package Lookup API","description":"Should you depend on this package? Version, license, deprecation (with the maintainer's reason), weekly and monthly downloads, last release date, maintainer count, npm quality/popularity/maintenance scores, and health signals — npm or PyPI, one call.","url":"https://api.weblens.dev/package?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"name":{"type":"string","example":"express","maxLength":214,"minLength":1,"description":"Package name, e.g. \"express\" or \"@scope/pkg\" (npm), \"requests\" (PyPI)"},"registry":{"enum":["npm","pypi"],"type":"string","default":"npm","example":"npm","description":"Which registry to look in (default npm)"}}},"responseSchema":{"type":"json","example":{"name":"express","found":true,"license":"MIT","signals":[],"version":"5.2.1","registry":"npm","checkedAt":"2026-08-02T12:00:00.000Z","downloads":{"lastWeek":127864826,"lastMonth":548000000},"requestId":"req_pkg123","deprecated":false,"repository":"https://github.com/expressjs/express","description":"Fast, unopinionated, minimalist web framework","maintenance":{"scores":{"quality":1,"popularity":1,"maintenance":1},"maintainers":5,"lastPublishedAt":"2025-12-01T00:00:00.000Z","daysSinceRelease":244},"dependencies":28}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IgkgQ6YFVdiD1nzJpLyim","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up metadata for a software package by name, returning version, license, downloads, maintenance scores, repository, and deprecation status","exampleAgentPrompt":"Can you look up the express npm package for me — I want to know the latest version, whether it's deprecated, the license, and how many downloads it got last week?","exampleUseCases":[{"title":"Dependency audit for a Node.js project","prompt":"I'm auditing my project's dependencies — can you pull up the package info for lodash on npm, including its license, latest version, download stats, and whether it's still actively maintained?"},{"title":"Checking if a library is safe to use","prompt":"Before I add axios to my project, can you check if it's deprecated, who maintains it, when it was last published, and what its quality and maintenance scores look like?"},{"title":"Comparing package health before migrating","prompt":"I'm considering switching from request to got for HTTP calls — can you look up got on npm and tell me its version, weekly downloads, number of maintainers, and overall maintenance score?"}],"resultDescription":"A JSON object containing the package name, whether it was found, current version, license type, registry name, description, repository URL, weekly and monthly download counts, number of dependencies, number of maintainers, last published date, days since last release, quality/popularity/maintenance scores, deprecation status, and a requestId for tracing.","failureModes":["Package not found — `found: false` returned with no metadata populated","Invalid or misspelled package name resulting in a not-found response","Payment failure via x402 protocol if insufficient USDC balance","Network timeout if the upstream registry is slow or unavailable","Registry-specific errors if the queried registry is unsupported"],"whenToPreferThis":"Choose this endpoint when you need rich, structured package metadata including download statistics, maintenance health scores, license, and deprecation status in a single call — especially when you want pay-per-call pricing with no monthly commitment. Prefer it over manual registry API calls when you need normalized data across registries or when operating in an agent context that supports x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T14:48:29.134Z","isFirstParty":false,"canonicalSlug":"weblens-package-lookup-api-94a9f1f0"}