# Get Address Exposure

Through this endpoint customers can check whether an address received funds that can be traced back to flagged addresses (sanctioned entities, exploiters) through intermediate addresses, and how much. The response lists every flagged address reached, the number of hops, the tainted share and the tainted value received per asset.


> **Note:** Sanctioned addresses use the poison model: any contact counts in full. Other flagged addresses use the haircut model: exposure is proportional to the tainted share of the sender's balance at the time of the transfer.

- **Endpoint:** `GET https://rest.cryptoapis.io/aml/exposure/{blockchain}/{address}`
- **Authentication:** `x-api-key` header
- **Credits cost:** 200000 credits for 1 result
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-aml/get-address-exposure/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Blockchain of the address. The exposure graph is per chain. Allowed values: `ethereum`, `binance-smart-chain`, `ethereum-classic`, `polygon`, `tron`, `bitcoin`, `bitcoin-cash`, `litecoin`, `dogecoin`, `dash`, `zcash`, `xrp`, `solana`. |
| `address` | string | yes | The address to check for indirect exposure to flagged addresses. |

## 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 | Address exposure |
| 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": "0x2718752b8895742349c82ca759b87c79b2466330",
      "blockchain": "ethereum",
      "isExposed": true,
      "maxExposureShare": "1",
      "roots": [
        {
          "rootAddress": "0x7f367cc41522ce07553e823bf3be79a889debe1b",
          "labels": [
            "Potekhin Danil"
          ],
          "categories": [
            "sanctions"
          ],
          "sanctionsPrograms": [
            "CYBER2"
          ],
          "model": "poison",
          "hop": 1,
          "exposureShare": "1",
          "taintedReceived": [
            {
              "contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
              "value": {
                "amount": "1756.99221894",
                "unit": "ETH"
              }
            }
          ],
          "proportionalReceived": [
            {
              "contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
              "value": {
                "amount": "1224.24",
                "unit": "USDT"
              }
            }
          ],
          "proportionalShare": "0.244848",
          "firstTimestamp": 1516066029,
          "lastTimestamp": 1516066029,
          "routes": 1,
          "direction": "received"
        }
      ]
    }
  }
}
```

### 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 | The checked address. |
| `data.item.blockchain` | string | yes | Blockchain of the address. The exposure graph is per chain: the same EVM address can be exposed on one chain and clean on another. |
| `data.item.isExposed` | boolean | yes | Whether the address received funds that can be traced to a flagged address. |
| `data.item.maxExposureShare` | string | yes | Highest share (0 to 1, decimal string) of tainted funds the address received from any flagged address. |
| `data.item.roots` | array of object | yes | Flagged addresses the funds trace back to, most exposed first. |
| `data.item.roots[].rootAddress` | string | yes | The flagged address the funds trace back to. |
| `data.item.roots[].labels` | array of string | no |  |
| `data.item.roots[].categories` | array of string | no |  |
| `data.item.roots[].sanctionsPrograms` | array of string | no |  |
| `data.item.roots[].model` | string | no | Taint model: `poison` for sanctioned addresses (any contact counts in full) or `haircut` (exposure proportional to the tainted share of the sender's balance). |
| `data.item.roots[].hop` | integer | yes | Number of transfers between the flagged address and this address; 1 means direct contact. |
| `data.item.roots[].exposureShare` | string | yes | Highest share (0 to 1, decimal string) of tainted funds received from this flagged address. |
| `data.item.roots[].taintedReceived` | array of object | no | Tainted value received, per asset, per the taint model. Under the poison model (sanctions) every transfer after any contact counts in full, so this can exceed the flagged funds that came in; see proportionalReceived. |
| `data.item.roots[].taintedReceived[].contract` | string | no | Token contract address; absent for the native coin. |
| `data.item.roots[].taintedReceived[].value` | object | no | Tainted value received |
| `data.item.roots[].taintedReceived[].value.amount` | string | no | String representation of the amount value |
| `data.item.roots[].taintedReceived[].value.unit` | string | no | Unit of the amount: the coin or token symbol |
| `data.item.roots[].proportionalReceived` | array of object | no | Flagged value actually received, per asset: each transfer counts only the flagged share of the sender's balance at that time. |
| `data.item.roots[].proportionalReceived[].contract` | string | no | Token contract address; absent for the native coin. |
| `data.item.roots[].proportionalReceived[].value` | object | no | Flagged value actually received |
| `data.item.roots[].proportionalReceived[].value.amount` | string | no | String representation of the amount value |
| `data.item.roots[].proportionalReceived[].value.unit` | string | no | Unit of the amount: the coin or token symbol |
| `data.item.roots[].proportionalShare` | string | no | Highest share (0 to 1) of flagged funds actually received from this flagged address. |
| `data.item.roots[].firstTimestamp` | integer | no | Unix timestamp of the first tainted receipt. |
| `data.item.roots[].lastTimestamp` | integer | no | Unix timestamp of the last tainted receipt. |
| `data.item.roots[].routes` | integer | no | Number of routes from the flagged address to this address. |
| `data.item.roots[].direction` | string | no | Direct contact only: `received`, `sent` or `both`, relative to this address. Only `received` is exposure. |
