# Citiview Library Docs for Agents

> Citiview Library Docs for Agents is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-14).

Returns the latest version, current usage docs, and breaking changes for an npm or PyPI package so agents with stale training can use it correctly

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/libdocs?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-library-docs-for-agents-f0680aa1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lgRekYvo0J4DSbsdau7uN

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 citiview-library-docs-for-agents-f0680aa1
```

Example prompt: What's the latest version of the 'axios' npm package, how do I use it now, and what breaking changes happened since version 1.2.0?

## When to prefer this

Use this endpoint when an AI agent's training data is stale and it needs authoritative, current documentation for a specific npm or PyPI package — especially before generating code that calls third-party library APIs, or when a user reports that generated code uses deprecated patterns. Prefer this over general web search when you need structured, version-aware diff of what changed.

## Known failure modes

- Unknown package name returns an error or empty result
- Ecosystem not specified correctly (must be 'npm' or 'pypi') causes lookup failure
- Package has no changelog, resulting in incomplete breaking-changes data
- Very new packages with minimal READMEs return sparse documentation
- Rate limiting or upstream registry unavailability causes timeout

## How this service works

Current library docs for agents with stale training: the latest version of an npm or PyPI package, how to use it now, and the breaking changes since the version you know, from its README and changelog.

## Output

Returns the latest published version of the requested npm or PyPI package, current usage instructions extracted from the README, and a summary of breaking changes since the specified from_version — giving agents up-to-date context they may lack due to stale training data.

## 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": [
      "package"
     ],
     "properties": {
      "async": {
       "type": "boolean"
      },
      "package": {
       "type": "string"
      },
      "question": {
       "type": "string"
      },
      "ecosystem": {
       "type": "string",
       "description": "npm | pypi"
      },
      "from_version": {
       "type": "string",
       "description": "Version you know"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-library-docs-for-agents-f0680aa1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
