# WebLens Package Lookup API

> WebLens Package Lookup API is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-29).

Looks up metadata for a software package by name, returning version, license, downloads, maintenance scores, repository, and deprecation status

## Facts

- Endpoint: POST https://api.weblens.dev/package?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-package-lookup-api-94a9f1f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ce3zjJLkQq6rxtRQcbMbe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability weblens-package-lookup-api-94a9f1f0 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-package-lookup-api-94a9f1f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
