Api Endpoint

NPM Package Lookup

One merged call instead of two: latest-version metadata from the official npm registry plus last-week download count from api.npmjs.org (both live). Query: ?pkg=react (scoped names like @scope/name accepted). Returns version, license, deps_count + dependency names, engines, weekly_downloads. No personal maintainer data. 1h cache.

Open interactive test console

Offering

Provider
data.greeneris.io
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://data.greeneris.io/v1/npm/package
MIME type
application/json
First seen
2026-10-16T01:50:14.534Z
Last seen
Tags
npm, javascript, package, dependencies, devtools

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x6ab8efe305cce67daa48c97bde29c04402822dff"
  }
]

Observed health

Status
Healthy
Latest latency
123 ms
Average latency
106 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "pkg": {
          "type": "string",
          "description": "npm package name, e.g. react or @types/node"
        }
      },
      "required": [
        "pkg"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "json",
  "example": {
    "source": "npm registry + api.npmjs.org downloads (live)",
    "engines": {
      "node": ">=0.10.0"
    },
    "license": "MIT",
    "package": "react",
    "version": "19.2.7",
    "homepage": "https://react.dev/",
    "deps_count": 0,
    "description": "React is a JavaScript library for building user interfaces.",
    "dependencies": [],
    "downloads_period": {
      "end": "2026-07-11",
      "start": "2026-07-05"
    },
    "weekly_downloads": 153316909
  }
}