# AgentsToolsHub npm Package Info

> AgentsToolsHub npm Package Info is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Looks up npm registry metadata for any package: latest version, description, license, homepage, and first/latest publish dates.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/npm-info?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstoolshub-npm-package-info-b8dcfc37
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pOyWaFc_KjxjpUaFp4fwB

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 agentstoolshub-npm-package-info-b8dcfc37
```

Example prompt: Can you check the npm registry for lodash — I need its latest version, license, and when it was first and most recently published?

## When to prefer this

Use this endpoint when an AI agent needs quick, structured npm package metadata — especially version numbers, licenses, and publish dates — without needing to parse raw npm registry JSON or scrape web pages. Prefer this over web search when deterministic, machine-readable metadata is required for dependency auditing or version monitoring.

## Known failure modes

- Package not found on npm — returns error indicating unknown package name
- Misspelled or scoped package name not properly formatted (e.g. missing @scope/ prefix)
- npm registry temporarily unavailable — upstream timeout or connectivity error
- Rate limiting or payment failure — x402 payment not accepted

## How this service works

Look up any package on the public npm registry: latest version, description, license, homepage, and publish dates for the first and most recent release. Agents use this to check dependencies before installing or to detect newly published versions. Use this when an agent needs to latest version, dates and metadata from the npm registry.

## Output

Returns a structured object with the package name, latest version string, description, SPDX license identifier, homepage URL, date of first publication, and date of most recent publication from the npm registry.

## 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": [
      "package"
     ],
     "properties": {
      "package": {
       "type": "string",
       "description": "Package name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstoolshub-npm-package-info-b8dcfc37/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
