# DeAI Artifact Gateway – Batch Package Existence Check

> DeAI Artifact Gateway – Batch Package Existence Check is a paid API for AI agents from research.zaiba.cloud, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-16).

Checks whether one or more npm, PyPI, or crates packages exist in their respective registries, returning deterministic JSON results for each queried package name.

## Facts

- Endpoint: POST https://research.zaiba.cloud/api/v1/package/check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deai-artifact-gateway-batch-package-existence-check-67db587f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ja5HpJb08N2q1lnQnuX6V

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 deai-artifact-gateway-batch-package-existence-check-67db587f -d '<json body>'
```

Example prompt: Can you batch-check whether these packages exist — 'lodash' on npm, 'requests' on pypi, and 'serde' on crates — and tell me which ones are already taken?

## When to prefer this

Use this endpoint when you need to verify package name existence across npm, PyPI, or crates.io registries in batch, especially when you want deterministic, cacheable JSON results with per-existing-package pricing. Prefer this over web scraping or manual registry searches when checking multiple packages programmatically in a single call.

## Known failure modes

- Invalid registry value (not npm, pypi, or crates) causes validation error
- Batch exceeds 50 items returns error
- Missing required fields 'registry' or 'name' per item causes rejection
- Payment insufficient for the number of existing packages found
- Network or upstream registry unavailability may cause lookup failure

## How this service works

DeAI artifact gateway: reuse (package_check_batch). Deterministic JSON with byte-exact quotes for $0.0200; no crawl, no bot walls.

## Output

A deterministic JSON object containing one result entry per queried package, indicating whether each package exists in its specified registry. Only packages that exist incur a charge; missing/nonexistent packages are free. Results are byte-exact and reproducible.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "registry",
     "name"
    ],
    "properties": {
     "name": {
      "type": "string"
     },
     "registry": {
      "type": "string",
      "description": "npm | pypi | crates"
     }
    }
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "1 to 20 names (up to 50 when work credit in hand covers them all); each name that exists is charged once, missing names are free"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deai-artifact-gateway-batch-package-existence-check-67db587f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from research.zaiba.cloud](https://www.zero.xyz/host/research.zaiba.cloud/llms.txt)
