{"uid":"cap_Ce3zjJLkQq6rxtRQcbMbe","slug":"weblens-package-lookup-api-94a9f1f0","name":"WebLens Package Lookup API","description":"# WebLens - Web Intelligence API, pay per call\n\nScrape, crawl, map and extract the web. No account, no API key, no monthly\nminimum — you pay for the calls you make and nothing else.\n\n## Pricing\nPage fetching starts at **$0.002**, whole-site crawling at\n**$0.0015/page**, and sitemap discovery at **$0.004**.\nComparable services bill $0.007-0.008 per request, or reach a lower per-page\nrate only on a $99/month commitment. WebLens has no commitment to reach.\n\n## Payment Protocol\nAll paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native\nmicropayments (USDC on Base).\n\n## Cache Discount\nCached responses are **70% cheaper** than fresh fetches.","url":"https://api.weblens.dev/package?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"name":{"type":"string","description":"Package name, e.g. \"express\" or \"@scope/pkg\""},"registry":{"enum":["npm","pypi"],"type":"string","description":"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.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_IgkgQ6YFVdiD1nzJpLyim","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":"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-10-02T06:39:16.805Z","isFirstParty":false,"canonicalSlug":"weblens-package-lookup-api-94a9f1f0"}