# Forest Gas Station – Package License SPDX Normalizer

> Forest Gas Station – Package License SPDX Normalizer is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Normalizes a declared package license string from npm or PyPI toward a canonical SPDX identifier, without making legal compatibility judgments.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/package/license?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-gas-station-package-license-spdx-normalizer-7380e166
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KrwvioVZ_xlwBS6im-wek

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 forest-gas-station-package-license-spdx-normalizer-7380e166 -d '<json body>'
```

Example prompt: Can you normalize the license declared by the npm package lodash version 4.17.21 to its canonical SPDX identifier?

## When to prefer this

Use this endpoint when you need a machine-readable, canonical SPDX license identifier for a specific npm or PyPI package version and want normalization rather than raw scraping. Prefer it over manual parsing of license fields when dealing with ambiguous or informal license strings (e.g. 'MIT/Apache', 'GPLv2+'). Do not use if you need legal compatibility advice or multi-ecosystem support beyond npm and pypi.

## Known failure modes

- Package or version not found in the specified ecosystem — returns an error or null result
- Ecosystem field missing or invalid enum value — validation error
- License string is too ambiguous or non-standard to map to a single SPDX identifier — partial or approximate result returned
- Network or upstream registry unavailability — timeout or upstream error
- Package name exceeds maxLength (214 chars) or version exceeds maxLength (128 chars) — request rejected

## How this service works

Normalize declared package license metadata toward SPDX; no legal compatibility conclusion. Base mainnet USDC

## Output

Returns the normalized SPDX license identifier derived from the package's declared license metadata, along with any relevant normalization details. Does not provide legal compatibility analysis or conclusions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "package": {
   "type": "string",
   "maxLength": 214,
   "minLength": 1,
   "description": "Public package name to inspect."
  },
  "version": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1,
   "description": "Package version whose public metadata should be checked."
  },
  "ecosystem": {
   "enum": [
    "npm",
    "pypi"
   ],
   "description": "Public ecosystem value used to scope this lookup."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-gas-station-package-license-spdx-normalizer-7380e166/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
