> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trusset.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Registry Statistics

> Aggregate statistics across the MiCA register

Returns summary statistics for the entire registry: total entity count, breakdowns by license type, country, and status, plus the 10 most recently authorized entities.

## Response Fields

<ResponseField name="success" type="boolean">Request status</ResponseField>

<ResponseField name="data" type="object">
  <Expandable>
    <ResponseField name="totalEntities" type="integer">Total registered entities</ResponseField>

    <ResponseField name="licenseTypes" type="array">
      Array of `{ type, label, count }` objects sorted by count descending. `type` is the code (`CASP`, `ART`, `EMT`, `OTHER`, `NON_COMPLIANT`), `label` is the human-readable name.
    </ResponseField>

    <ResponseField name="countries" type="array">
      Array of `{ code, name, count }` objects sorted by count descending.
    </ResponseField>

    <ResponseField name="byStatus" type="object">
      Map of status to count, e.g. `{ "active": 150, "expired": 3, "non_compliant": 12 }`.
    </ResponseField>

    <ResponseField name="recentAuthorizations" type="array">
      The 10 most recently authorized entities. Each contains `entityName`, `licenseType`, `countryCode`, and `authorizationDate`.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.trusset.org/api/mica/v1/statistics" \
    -H "X-API-Key: trusset_mica_your_key_here"
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch(
    'https://api.trusset.org/api/mica/v1/statistics',
    { headers: { 'X-API-Key': 'trusset_mica_your_key_here' } }
  );
  const { data: stats } = await response.json();
  console.log(`Total entities: ${stats.totalEntities}`);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "totalEntities": 312,
      "licenseTypes": [
        { "type": "CASP", "label": "Crypto-Asset Service Provider", "count": 185 },
        { "type": "EMT", "label": "E-Money Token Issuer", "count": 62 },
        { "type": "ART", "label": "Asset-Referenced Token Issuer", "count": 34 },
        { "type": "OTHER", "label": "Other Crypto-Asset", "count": 19 },
        { "type": "NON_COMPLIANT", "label": "Non-Compliant Entity", "count": 12 }
      ],
      "countries": [
        { "code": "DE", "name": "Germany", "count": 45 },
        { "code": "FR", "name": "France", "count": 38 },
        { "code": "LT", "name": "Lithuania", "count": 29 }
      ],
      "byStatus": {
        "active": 287,
        "expired": 13,
        "non_compliant": 12
      },
      "recentAuthorizations": [
        {
          "entityName": "Example Crypto AG",
          "licenseType": "CASP",
          "countryCode": "DE",
          "authorizationDate": "2025-06-01T00:00:00.000Z"
        }
      ]
    },
    "metadata": {
      "timestamp": "2025-06-15T12:00:00.000Z"
    }
  }
  ```
</ResponseExample>
