# Get Address Statistics EVM

Through this endpoint the customer can receive the number of confirmed transactions, token transfers and internal 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.


> **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/evm/{blockchain}/{network}/{address}/statistics`
- **Authentication:** `x-api-key` header
- **Credits cost:** 230 credits for 1 result by default; per blockchain: Ethereum: 230, Ethereum Classic: 299, Binance Smart Chain: 575, Polygon: 460, Tron: 345
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-history-evm/get-address-statistics-evm/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. Ethereum, Ethereum Classic. Allowed values: `ethereum`, `ethereum-classic`. |
| `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 networks like "sepolia" and "mordor" are test networks. Allowed values: `sepolia`, `mainnet`, `mordor`. |
| `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 |
| 404 |  |
| 405 | The specified address is not active. Please, activate your address in order to be able to obtain information from this endpoint. |
| 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": "0xfad4a236c87880035497043f24ea58d73c3e50de",
      "blockHeight": 123456,
      "blockTimestamp": 1760003893,
      "internalTransactionsCounts": {
        "incoming": 321,
        "outgoing": 123
      },
      "nativeTransactionsCounts": {
        "incoming": 321,
        "outgoing": 123
      },
      "tokenTransfersCounts": {
        "incoming": 321,
        "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 EVM address |
| `data.item.blockHeight` | integer | yes | Numeric representation of the current block height |
| `data.item.blockTimestamp` | integer | yes | Numeric representation of the current block timestamp in seconds since Unix epoch. |
| `data.item.internalTransactionsCounts` | object | yes | Internal transaction statistics |
| `data.item.internalTransactionsCounts.incoming` | integer | yes | Number of incoming internal transactions |
| `data.item.internalTransactionsCounts.outgoing` | integer | yes | Number of outgoing internal transactions |
| `data.item.nativeTransactionsCounts` | object | yes | Native transaction statistics |
| `data.item.nativeTransactionsCounts.incoming` | integer | yes | Number of incoming native transactions |
| `data.item.nativeTransactionsCounts.outgoing` | integer | yes | Number of outgoing native transactions |
| `data.item.tokenTransfersCounts` | object | yes | Token transfer statistics |
| `data.item.tokenTransfersCounts.incoming` | integer | yes | Number of incoming token transfers |
| `data.item.tokenTransfersCounts.outgoing` | integer | yes | Number of outgoing token transfers |
