# x402helper.xyz Package Documentation Lookup

> x402helper.xyz Package Documentation Lookup is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.013/call, status unknown (last checked 2026-10-31).

Fetches documentation and README content for npm, PyPI, crates.io, or GitHub packages via a micropayment-gated API

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/docs/library?utm_source=zero.xyz
- Price: $0.013/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402helper-xyz-package-documentation-lookup-dda25726
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-E6GkQKZ6wTS5o4u9TWWu

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-package-documentation-lookup-dda25726
```

Example prompt: Can you look up the latest documentation for the coinbase/x402 GitHub package, specifically the authentication section?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically retrieve up-to-date package documentation from npm, PyPI, crates.io, or GitHub without scraping, and when you need to pin to a specific version or extract a particular topic section from the docs. Prefer this over general web search when you need structured, reliable doc retrieval gated by a tiny USDC micropayment.

## Known failure modes

- Package not found in the specified ecosystem — returns error or empty result
- Invalid ecosystem value provided — schema validation error
- Missing required fields (name or ecosystem) — request rejected
- Payment failure or USDC balance insufficient — 402 response before content is served
- Requested version does not exist for the package — returns error
- Topic heading not found in README — may return empty or full document

## 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 flag and a result containing the package documentation content, README markdown, or relevant section matched by topic heading for the specified package, ecosystem, and optional version.

## 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": [
      "name",
      "ecosystem"
     ],
     "properties": {
      "name": {
       "type": "string",
       "default": null,
       "description": "Package name; for github pass owner/repo such as coinbase/x402. npm scoped names @scope/name are allowed."
      },
      "topic": {
       "type": "string",
       "default": null,
       "description": "Optional topic or symbol; matched against the README/llms.txt markdown headings, such as authentication or useEffect."
      },
      "version": {
       "type": "string",
       "default": null,
       "description": "Optional exact version to pin, such as 2.31.0; default is latest."
      },
      "ecosystem": {
       "enum": [
        "npm",
        "pypi",
        "crates",
        "github"
       ],
       "type": "string",
       "default": null,
       "description": "Package ecosystem. Aliases accepted: pip and python map to pypi; cargo and rust map to crates; node maps to npm; gh maps to github."
      }
     }
    }
   },
   "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-package-documentation-lookup-dda25726/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)
