# P0 Agent Economy Index – Government Tag

> P0 Agent Economy Index – Government Tag is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-22).

Returns ranked discovery of x402 services tagged 'government', sorted by payer count over the last 30 days, with snapshot provenance.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/in-government?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/p0-agent-economy-index-government-tag-23b009bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kp50HQB2UL5tnoHHNbdPm

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-government-tag-23b009bb
```

Example prompt: Pull the current top 25 government-tagged x402 services from the agent economy index, ranked by paying wallets over the last 30 days, and include the snapshot hash so I can verify the data.

## When to prefer this

Choose this endpoint when you specifically need ranked discovery of government-tagged x402 services backed by real 30-day payment and payer data, with cryptographic provenance (snapshot hash + scoring revision). Prefer it over generic API directories when you need agent-economy-native signals (paying wallets, call volume) rather than self-reported or curated listings. Not suitable if you need L402, MPP per-service listings, or economy-wide protocol stats across Olas/Masumi/Virtuals ACP.

## Known failure modes

- No services match the 'government' tag — returns empty services array with count 0
- Snapshot data stale or scoring revision mismatch — generatedAt timestamp may be outdated
- Cloudflare Worker cold start or timeout — HTTP 5xx or delayed response
- Payment not confirmed — x402 payment of $0.008 USDC required before response is served
- Malformed request properties — may return 400 with schema validation error

## How this service works

An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over the live x402 service market, every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision. /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 and per-service MPP listings are not covered.

## Output

A JSON object containing up to 25 ranked government-tagged x402 services, each with name, network chain ID, 30-day call count, price in USD, resource URL, and 30-day payer count. Also includes the query metadata (ranking criterion, filter, limit), total matched service count, snapshot generation timestamp, and a receipt naming the snapshot hash and scoring revision for provenance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 25,
  "query": {
   "by": "payers",
   "op": "top",
   "limit": 25,
   "where": {
    "tag": "government"
   }
  },
  "route": "/in-government",
  "matched": 359,
  "services": [
   {
    "name": "forecast api",
    "network": "eip155:8453",
    "calls30d": 310,
    "priceUsd": 0.01,
    "resource": "https://api.example.com/forecast",
    "payers30d": 42
   }
  ],
  "declaredBy": "agent",
  "generatedAt": "2026-09-17T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/p0-agent-economy-index-government-tag-23b009bb/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)
