# x402 Bazaar Rank – In-Country Services

> x402 Bazaar Rank – In-Country Services is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-20).

Returns a ranked list of x402 payment-gated services tagged 'country', scored by real 30-day call volume and unique paying-wallet counts, with a signed snapshot receipt.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/in-country
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-rank-in-country-services-c414a6c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o6IrZlXJpXmrvPXvYFO_7

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 x402-bazaar-rank-in-country-services-c414a6c3
```

Example prompt: Show me the top x402 services tagged 'country', ranked by number of paying wallets over the last 30 days, and include the snapshot receipt so I can verify the data freshness.

## When to prefer this

Choose this endpoint when you need ranked, usage-validated discovery of x402 payment-gated services in the country domain, backed by real 30-day metrics rather than self-reported metadata. Prefer it over generic x402 directories when you want payer-count or call-volume as a trust signal, or when you need a verifiable snapshot receipt for auditability.

## Known failure modes

- No services indexed under the 'country' tag returns an empty services array
- Snapshot index stale or unavailable may return outdated generatedAt timestamps
- Invalid or unsupported query parameters may return 400 or empty results
- Worker cold-start or Cloudflare edge outage causes timeout or 503
- Payment of $0.004 USDC not fulfilled results in 402 Payment Required response

## How this service works

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.

## Output

A JSON object containing a ranked array of x402 services matching the 'country' tag, each with name, network chain, 30-day call count, price in USD, resource URL, and 30-day payer count; plus query metadata, total matched count, route, snapshot generation timestamp, and a receipt identifying the snapshot hash and scoring revision.

## 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": "country"
   }
  },
  "route": "/in-country",
  "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/x402-bazaar-rank-in-country-services-c414a6c3/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)
