# ScrapeMole Pkgs: npm Version Metadata Lookup

> ScrapeMole Pkgs: npm Version Metadata Lookup is a paid API for AI agents from pkgs.scrapemole.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Fetches metadata for a specific npm package version (or latest) including dist info, license, dependencies, and publish date

## Facts

- Endpoint: GET https://pkgs.scrapemole.workers.dev/v1/npm/version?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapemole-pkgs-npm-version-metadata-lookup-cd800e54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PdPNYcOdLQ5rQvu-wrsMF

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 scrapemole-pkgs-npm-version-metadata-lookup-cd800e54
```

Example prompt: Can you look up the npm metadata for lodash version 4.17.21 — I need its license, published date, tarball URL, and list of dependencies?

## When to prefer this

Use this endpoint when you need precise, structured metadata for a specific npm package version — including dist hashes, tarball URLs, license, and dependency list — without setting up npm registry credentials or scraping. Ideal for AI agents performing dependency audits, security checks, build verification, or license compliance at $0.002 per call with no account required.

## Known failure modes

- Package name not found on npm registry — 404 response
- Specified version does not exist for the package — 404 or error response
- Payment not settled — 402 response before work begins
- Invalid query parameters (missing name or version) — 400 response
- Network or upstream registry timeout — 5xx response

## How this service works

Pay-per-call package registry lookups: npm package metadata, version details, search, and download counts; PyPI project metadata, releases, and name lookup. Public registry data only (no auth, no private packages, no scraping of user profiles). Emails and tokens are stripped. USDC via x402, no accounts.

Payments: x402 v2, scheme "exact", USDC on Base (eip155:8453). The payment is verified before the work and settled only when the response is 200. Terms: https://pkgs.scrapemole.workers.dev/terms

## Output

A JSON object containing the package name, version, description, license, published timestamp, dependencies object, and dist fields (tarball URL, integrity hash, shasum) sourced from the npm registry. Emails and tokens are stripped from the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name",
      "version"
     ],
     "properties": {
      "name": {
       "type": "string",
       "examples": [
        "lodash"
       ],
       "description": "npm package name."
      },
      "version": {
       "type": "string",
       "examples": [
        "4.17.21"
       ],
       "description": "Exact version or \"latest\"."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dist": {
   "shasum": "…",
   "tarball": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
   "integrity": "sha512-…"
  },
  "name": "lodash",
  "source": "https://registry.npmjs.org/lodash",
  "license": "MIT",
  "version": "4.17.21",
  "published": "2021-02-20T…",
  "description": "Lodash modular utilities.",
  "dependencies": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-pkgs-npm-version-metadata-lookup-cd800e54/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pkgs.scrapemole.workers.dev](https://www.zero.xyz/host/pkgs.scrapemole.workers.dev/llms.txt)
