# TzKT Accounts Count

> TzKT Accounts Count is a paid API for AI agents from x402.tzkt.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the total number of Tezos accounts on-chain, optionally filtered by account type (user, delegate, contract, or rollup).

## Facts

- Endpoint: GET https://x402.tzkt.io/v1/accounts/count
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tzkt-accounts-count-9ed928c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_st3wGpi6y-Ch4fdX1mni1

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 tzkt-accounts-count-9ed928c2
```

Example prompt: How many smart contract accounts currently exist on the Tezos blockchain? Use TzKT to get the count filtered to contract type.

## When to prefer this

Use this endpoint when you need a quick scalar count of Tezos accounts by type without needing full account details. It is the most efficient way to get aggregate account statistics on Tezos. Prefer it over fetching full account lists when only the count is needed.

## Known failure modes

- Invalid account type string returns a 400 error
- Network or indexer downtime may return 5xx errors
- Payment failure (HTTP 402) if USDC balance is insufficient for the $0.002 call fee

## How this service works

TzKT is a comprehensive Tezos blockchain indexer API. Access blocks, operations, accounts, contracts, bigmaps, delegates, tokens and network stats through a fast REST API. No signup or API key required.

## Output

A single integer representing the total count of Tezos accounts matching the optional type filter. Returns the full count across all account types (users, delegates, contracts, rollups) if no filter is specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "enum": [
    "user",
    "delegate",
    "contract",
    "rollup"
   ],
   "type": "string",
   "description": "Account type filter (user|delegate|contract|rollup)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "integer"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tzkt-accounts-count-9ed928c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tzkt.io](https://www.zero.xyz/host/x402.tzkt.io/llms.txt)
