# Strale Dependency Audit

> Strale Dependency Audit is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-10-10).

Audits npm (package.json) or Python (requirements.txt) dependencies by checking each package against its registry for latest version, deprecation status, and known vulnerabilities.

## Facts

- Endpoint: GET https://api.strale.io/x402/dependency-audit?utm_source=zero.xyz
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-547836ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wbNJqdJ8_YEt-6vFu5Ca2

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 api-strale-io-547836ec
```

Example prompt: Can you audit my Node.js project's dependencies? Here's my package.json — check each package against the npm registry for outdated versions, deprecation warnings, and known vulnerabilities.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use dependency audit without setting up a local tool like npm audit or Safety. Ideal for CI pipelines, automated agents checking project health, or one-off scans where you can pass raw package.json or requirements.txt content as a string. Results are verifiable against actual npm and PyPI registries.

## Known failure modes

- Missing both package_json and requirements_txt parameters — no input to audit
- Malformed package.json or requirements.txt content causing parse errors
- Package not found on registry (e.g. private or scoped package) — skipped or error per entry
- Registry unavailable causing partial or failed lookups
- Very large dependency lists may hit timeout or size limits

## How this service works

Audit npm or Python dependencies. Checks each package against registry for latest version, deprecation, vulnerabilities. Verifiable against actual registries.

## Output

Returns a structured report for each package listing the current version declared, the latest version available on the registry, whether the package is deprecated, and any known vulnerabilities — enabling developers to identify security risks and outdated dependencies.

## Example request

```json
{
 "package_json": "{ \"name\": \"test-project\", \"version\": \"1.0.0\", \"dependencies\": { \"express\": \"4.17.1\", \"lodash\": \"4.17.21\", \"axios\": \"0.21.1\" }, \"devDependencies\": { \"jest\": \"27.0.6\" } }"
}
```

## 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",
     "properties": {
      "package_json": {
       "type": "string",
       "description": "package.json contents"
      },
      "requirements_txt": {
       "type": "string",
       "description": "requirements.txt contents"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-547836ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
