# npm Package Quality & Popularity Scores

> npm Package Quality & Popularity Scores is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches npms.io quality, popularity, and maintenance scores for a specified npm package name.

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/neon_ridge/npm-package-scores
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/npm-package-quality-popularity-scores-5f9f720d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EkcWEVF2SmYz5H1PMfxBW

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 npm-package-quality-popularity-scores-5f9f720d -d '<json body>'
```

Example prompt: What are the npms.io quality, popularity, and maintenance scores for the 'axios' npm package?

## When to prefer this

Use this endpoint when you need a quick, structured quality/popularity/maintenance assessment of an npm package without setting up an account or API key. It's ideal for dependency vetting pipelines, automated package audits, or any agent workflow that needs npms.io score data on demand via a simple pay-per-call model.

## Known failure modes

- Unknown or misspelled package name returns no score data or an error
- Private or scoped packages not indexed by npms.io may return empty results
- Prompt field missing or malformed causes agent-level parsing failure
- Network or upstream npms.io API downtime causes request failure
- x402 payment failure prevents response from being returned

## How this service works

npm package scores - Call when you are choosing between npm packages and a download count is not enough. Send the package name. Returns npms.io's quality, popularity and maintenance sub-scores plus the overall final score, so candidates can be compared on maintenance risk.

## Output

Returns the npms.io 'score' JSON object for the specified npm package, containing numeric quality, popularity, and maintenance scores along with their detailed breakdowns (e.g. carefulness, tests, community interest, releases, commits).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/npm-package-quality-popularity-scores-5f9f720d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
