# P0 Agent Economy Index – Infrastructure Check (/check/infra)

> P0 Agent Economy Index – Infrastructure Check (/check/infra) is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-11-19).

Checks IP reputation, CVE severity, package vulnerabilities, and software end-of-life status in a single lookup, returning sourced security facts with attribution and a timestamped snapshot.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/check/infra?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/p0-agent-economy-index-infrastructure-check-check-infra-f4844dbc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w1Bg-EpZhwWnxu_4ubFNI

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 p0-agent-economy-index-infrastructure-check-check-infra-f4844dbc
```

Example prompt: Can you check whether IP 1.1.1.1 is a Tor exit node or cloud range, and also look up CVE-2021-44228 severity and EPSS score, plus whether npm:lodash@4.17.15 has any known vulnerabilities?

## When to prefer this

Choose this endpoint when you need sourced, attributed security facts about IPs, CVEs, packages, or software versions in a single call — especially when you need EPSS scores, CISA KEV status, Tor exit membership, and cloud-range identification together. Prefer this over raw NVD or OSV APIs when you want pre-joined, multi-source data with attribution and snapshot timestamps in one response. Not suitable for L402 service listings or agent registry data (use the /economy routes for those).

## Known failure modes

- Missing all required query parameters (ip, domain, cve, package, software) returns an error — at least one must be supplied
- Invalid CVE format (not matching CVE-YYYY-NNNNN pattern) returns validation error
- Upstream source unavailable sets status to 'unavailable' for that section rather than failing the whole response
- IP not found in ASN database returns status 'not_found'
- Package ecosystem not supported returns not_applicable
- Malformed package string (wrong ecosystem:name@version format) causes lookup failure for that section

## How this service works

An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over a verified x402 seller set (sellers whose 402 P0 read itself plus registry-verified entries), scored by relevance and evidence of a live 402 challenge, with a receipt naming the snapshot hash and scoring revision; demand figures are P0's own on-chain counts of transfers to the sellers' wallets. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 listings are not covered.

## Output

A JSON object with per-query sections (ip, cve, package, software, summary). Each section includes status (ok/not_found/unavailable/not_applicable), sourced data fields, an as_of timestamp, and attribution strings. The summary section contains derived flags. No cross-section totals are computed. A top-level as_of timestamp and a query echo are always present.

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "ip": {
       "type": "string",
       "maxLength": 45
      },
      "cve": {
       "type": "string",
       "pattern": "^CVE-\\d{4}-\\d{4,19}$"
      },
      "domain": {
       "type": "string",
       "maxLength": 253
      },
      "package": {
       "type": "string",
       "maxLength": 300
      },
      "software": {
       "type": "string",
       "maxLength": 100
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "description": "Shortened to fit the header; full example and schema: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/openapi.json"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": {
   "ip": "1.1.1.1",
   "asn": 13335,
   "as_of": "2026-10-25T09:21:20.000Z",
   "cloud": {
    "cidr": "1.1.1.0/24",
    "provider": "cloudflare",
    "provider_name": "Cloudflare"
   },
   "source": "iptoasn.com IP-to-ASN + Tor Project exit list + cloud IP ranges",
   "status": "ok",
   "as_name": "CLOUDFLARENET",
   "country": "US",
   "version": 4,
   "tor_exit": {
    "listed": false,
    "list_date": "2026-10-25T09:05:04Z"
   },
   "source_url": "https://iptoasn.com/",
   "attribution": [
    "iptoasn.com data: Public Domain (PDDL v1.0)",
    "Tor Project data: CC0"
   ]
  },
  "cve": {
   "id": "CVE-2021-44228",
   "kev": {
    "listed": true,
    "vendor": "Apache",
    "product": "Log4j2",
    "due_date": "2021-12-24",
    "date_added": "2021-12-10",
    "known_ransomware_use": "Known"
   },
   "cvss": {
    "version": "3.1",
    "provider": "NVD",
    "severity": "CRITICAL",
    "base_score": 10
   },
   "epss": {
    "date": "2026-10-24",
    "score": 0.99999,
    "percentile": 1
   },
   "as_of": "2026-10-25T09:00:00.000Z",
   "source": "CVE.org + NVD + FIRST EPSS + CISA KEV",
   "status": "ok",
   "severity": "CRITICAL",
   "source_url": "https://www.cve.org/CVERecord?id=CVE-2021-44228",
   "attribution": "CISA Known Exploited Vulnerabilities Catalog, CC0 1.0; not an endorsement by CISA or DHS."
  },
  "note": "Facts as each named source published them at the section's as_of time; flags are derived only from those fields and are not remediation advice or a security verdict.",
  "as_of": "2026-10-25T09:21:30.000Z",
  "query": {
   "ip": "1.1.1.1",
   "cve": "CVE-2021-44228",
   "package": "npm:lodash@4.17.15",
   "software": "python@3.8.10"
  },
  "package": {
   "name": "lodash",
   "as_of": "2026-10-25T09:00:00.000Z",
   "source": "OSV.dev",
   "status": "ok",
   "version": "4.17.15",
   "returned": 1,
   "ecosystem": "npm",
   "truncated": true,
   "source_url": "https://osv.dev/list?ecosystem=npm&q=lodash",
   "vulnerable": true,
   "attribution": "Vulnerability records from OSV.dev (https://osv.dev), per-record licences as shown.",
   "max_severity": "HIGH",
   "record_count": 2,
   "vulnerabilities": [
    {
     "id": "GHSA-35jh-r3h4-6jhm",
     "aliases": [
      "CVE-2021-23337"
     ],
     "license": "CC-BY-4.0",
     "summary": "Command Injection in lodash",
     "fixed_in": [
      "4.17.21"
     ],
     "severity": "HIGH"
    }
   ],
   "malicious_reports": 0
  },
  "summary": {
   "flags"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/p0-agent-economy-index-infrastructure-check-check-infra-f4844dbc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev](https://www.zero.xyz/host/x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/llms.txt)
