Skip to main content
GET
https://api.credprotocol.com
/
api
/
v2
/
reputation
/
agents
/
count
curl -X GET "https://api.credprotocol.com/api/v2/reputation/agents/count" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "total": 42
}

Overview

Returns the total number of AI agents minted in the ERC-8004 Identity Registry on Base. This is useful for understanding the size of the registry and for paginating through the full agent list.
This is a free endpoint (0 Cred Units). It reads directly from the on-chain Identity Registry contract on Base.

Authentication

MethodHeaderCost
API TokenAuthorization: Bearer YOUR_API_KEY0 Cred Units
x402 PaymentX-PAYMENT: <signed_payment>Free

Response

total
integer
Total number of agents currently registered in the Identity Registry
curl -X GET "https://api.credprotocol.com/api/v2/reputation/agents/count" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "total": 42
}

Performance

  • Response Time: Typically under 1 second
  • Data Source: On-chain totalSupply() call to the Identity Registry on Base (chain 8453)