# x402helper.xyz License Check

> x402helper.xyz License Check is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.039/call, status unknown (last checked 2026-11-07).

Checks the open-source license compatibility of an npm, PyPI, Go, Maven, Cargo, or NuGet package for a given project license, paid via USDC micropayment.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/license/check?utm_source=zero.xyz
- Price: $0.039/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402helper-xyz-license-check-cef3e9b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Lpp5-7aOBZdLuUUaftsFZ

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 x402helper-xyz-license-check-cef3e9b5
```

Example prompt: Can you check whether the npm package 'axios' (latest version) is license-compatible with my MIT-licensed SaaS project?

## When to prefer this

Use this endpoint when you need a quick, per-call license compatibility check for a specific open-source package without standing up your own license scanning infrastructure. It is particularly useful for AI agents doing automated dependency audits or pre-release compliance checks where paying $0.039 per lookup is acceptable and no API key onboarding is required.

## Known failure modes

- Package not found in the specified ecosystem — returns success:false or empty result
- Unsupported ecosystem value — schema validation error
- Missing required fields (ecosystem or name) — 400-level error
- Payment failure (USDC not delivered) — 402 Payment Required before data is returned
- Version string not found for the package — may fall back to default or error

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with a 'success' boolean and a 'result' object containing license compatibility details for the requested package, including the resolved license identifier and whether it conflicts with the specified target license.

## 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": [
      "ecosystem",
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "default": null,
       "description": "Package name"
      },
      "version": {
       "type": "string",
       "default": null,
       "description": "Version (optional; default resolved if omitted)"
      },
      "ecosystem": {
       "enum": [
        "npm",
        "pypi",
        "go",
        "maven",
        "cargo",
        "nuget"
       ],
       "type": "string",
       "default": null,
       "description": "Package ecosystem"
      },
      "distribution": {
       "enum": [
        "saas",
        "binary",
        "internal"
       ],
       "type": "string",
       "default": null,
       "description": "How you ship it (default saas)"
      },
      "target_license": {
       "type": "string",
       "default": null,
       "description": "Your project SPDX license, e.g. MIT"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402helper-xyz-license-check-cef3e9b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
