# CPAN Package Version Status Oracle

> CPAN Package Version Status Oracle is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the current latest version, publish date, and URL for a given Perl CPAN package, resolved live from MetaCPAN.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/cpan/status
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cpan-package-version-status-oracle-09b8ad4c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XGUTC6ex3NSN8vrzyoXWN

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 cpan-package-version-status-oracle-09b8ad4c
```

Example prompt: What's the latest version of the Moose Perl package on CPAN, and when was it published?

## When to prefer this

Use this endpoint when you need to programmatically check the current version and release date of a Perl/CPAN package by name, especially in dependency monitoring, security auditing, or CI pipeline workflows where knowing the latest published version matters.

## Known failure modes

- Package name not found on MetaCPAN — returns empty or error entity
- Invalid query parameter format — returns 400-level error
- MetaCPAN upstream unavailable — may return timeout or 5xx
- Payment not provided or insufficient — returns 402 Payment Required

## How this service works

Look up the current published version of any Perl CPAN package on MetaCPAN (Perl) — latest version string, release date, and repo/docs URL. Answers "what is the newest version of Moose, Mojolicious, DBI, Dancer2?" for cpanfile pinning. Use ?package=<name> (resolved live).

## Output

Returns a JSON object containing the entity for the requested CPAN package, including its latest version string, publish/release date, and the MetaCPAN URL for the package.

## 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",
     "properties": {
      "id": {
       "type": "string",
       "description": "entityId to look up; omit to list tracked entities"
      },
      "package": {
       "type": "string",
       "description": "Any MetaCPAN (Perl) package name — resolved and fetched live if not already tracked"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "entity": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cpan-package-version-status-oracle-09b8ad4c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
