# deps.dev Package Metadata Lookup

> deps.dev Package Metadata Lookup is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches open-source package metadata (version, license, advisories, scorecard, GitHub stars) from deps.dev (Google Open Source Insights) for npm, PyPI, Go, Maven, Cargo, and NuGet packages.

## Facts

- Endpoint: GET https://data.greeneris.io/v1/dev/deps
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deps-dev-package-metadata-lookup-89a28538
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8nmPLuNJoivKu6qNm-ILI

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 deps-dev-package-metadata-lookup-89a28538
```

Example prompt: Can you check the latest version of the react npm package, confirm its license, and tell me if there are any known security advisories or its OpenSSF scorecard score?

## When to prefer this

Use this endpoint when you need authoritative, up-to-date open-source package metadata including license compliance, security advisories, and supply-chain scorecard data sourced directly from Google's deps.dev. Prefer this over scraping npm/PyPI registry pages directly when you need a unified multi-ecosystem API with structured JSON output and no API key setup.

## Known failure modes

- Package not found in the specified ecosystem — returns 404 or empty result
- Invalid ecosystem enum value — request rejected with schema validation error
- Version string does not exist for the package — returns error or empty advisories
- Payment not made — HTTP 402 returned with machine-readable price quote requiring USDC payment on Base via x402 protocol
- Network timeout or upstream deps.dev unavailability

## How this service works

Package intelligence from deps.dev (Google Open Source Insights, data CC-BY 4.0): resolved license list, known advisory ids, source project, GitHub stars and OpenSSF Scorecard overall score. Query: ?system=npm&pkg=react&version=latest (systems: npm, pypi, go, maven, cargo, nuget; version defaults to the registry default release). Refreshed upstream continuously; served with a 6h cache.

## Output

A JSON object containing the package name, resolved version, ecosystem, license(s), list of security advisories, OpenSSF scorecard score and date, GitHub stars, whether this is the default/latest version, publication timestamp, and upstream project URL (e.g. github.com/facebook/react).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pkg"
     ],
     "properties": {
      "pkg": {
       "type": "string",
       "description": "Package name, e.g. react or @types/node"
      },
      "system": {
       "enum": [
        "npm",
        "pypi",
        "go",
        "maven",
        "cargo",
        "nuget"
       ],
       "type": "string",
       "default": "npm",
       "description": "Package ecosystem"
      },
      "version": {
       "type": "string",
       "default": "latest",
       "description": "Exact version, or 'latest' for the registry default"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "stars": 246457,
  "source": "deps.dev (Google Open Source Insights), data licensed CC-BY 4.0",
  "system": "npm",
  "package": "react",
  "project": "github.com/facebook/react",
  "version": "19.2.7",
  "licenses": [
   "MIT"
  ],
  "advisories": [],
  "is_default": true,
  "published_at": "2026-06-01T18:00:48Z",
  "scorecard_date": "2026-06-29T00:00:00Z",
  "scorecard_score": 6.6
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deps-dev-package-metadata-lookup-89a28538/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
