# Get Address Statistics UTXOs

Through this endpoint the customer can receive the number of confirmed transactions of a given address based on confirmed/synced blocks only. In the case where there are any incoming or outgoing unconfirmed transactions for the specific address, they will not be counted or calculated here. Applies only for coins.


> **Warning:** To use any endpoint that returns **historical data by address**, the address must first be indexed via the **Manage Addresses → Sync Address** endpoint. Until the address has been synced, requests to historical-data-by-address endpoints will not return data for it. Please ensure each address you intend to query is synced before calling these endpoints.

- **Endpoint:** `GET https://rest.cryptoapis.io/addresses-historical/utxo/{blockchain}/{network}/{address}/statistics`
- **Authentication:** `x-api-key` header
- **Credits cost:** 530 credits for 1 result by default; per blockchain: Bitcoin: 530, Bitcoin Cash: 689, Dash: 583, Dogecoin: 583, Litecoin: 583, Zcash: 689
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-history-utxos/get-address-statistics-utxos/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. Bitcoin, Bitcoin Cash. Allowed values: `bitcoin`, `bitcoin-cash`. |
| `network` | string | yes | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while "testnet" is test network. Allowed values: `testnet`, `mainnet`. |
| `address` | string | yes | Represents the public address, which is a compressed and shortened form of a public key. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The request has been successful. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "item": {
      "address": "bc1pp7w6kxnj7lzgm29pmuhezwl0vjdlcrthqukll5gn9xuqfq5n673smy4m63",
      "blockHeight": 123456,
      "blockTimestamp": 1760003893,
      "transactionCounts": {
        "incoming": 100,
        "outgoing": 123
      }
    }
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.address` | string | yes | String representation of the address |
| `data.item.blockHeight` | integer | yes | Numeric representation of the current blockchain block height |
| `data.item.blockTimestamp` | integer | yes | Numeric representation of the current blockchain block timestamp |
| `data.item.transactionCounts` | object | yes |  |
| `data.item.transactionCounts.incoming` | integer | yes | Numeric representation of the incoming transaction count for the address |
| `data.item.transactionCounts.outgoing` | integer | yes | Numeric representation of the outgoing transaction count for the address |
