> For the complete documentation index, see [llms.txt](https://doc.youverify.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.youverify.co/aml-services-anti-money-laundering/pep-and-sanction-screening/search-using-crypto.md).

# Search using Crypto

This endpoint allows you to search for Politically Exposed Entities using different query types e.g. Cryptocurrency wallets and assets (like aeroplanes and shipping vessels) etc.

## PEP Search using Crypto

<mark style="color:green;">`POST`</mark> `{{baseurl}}/v2/api/verifications/advanced/crypto/aml-checks`

#### Headers

| Name                                    | Type   | Description      |
| --------------------------------------- | ------ | ---------------- |
| token<mark style="color:red;">\*</mark> | String | API secret token |

#### Request Body

| Name                                               | Type    | Description                                                                        |
| -------------------------------------------------- | ------- | ---------------------------------------------------------------------------------- |
| query<mark style="color:red;">\*</mark>            | String  | Crypto ID of the the subject to query with                                         |
| isSubjectConsent<mark style="color:red;">\*</mark> | Boolean | Indicate subject has given consent. <mark style="color:red;">`Must be true`</mark> |
| type<mark style="color:red;">\*</mark>             | String  | Entity type can be <mark style="color:red;">`all`</mark>                           |

{% tabs %}
{% tab title="PEP Search using Crypto Sample Request" %}

```json
{
    "type": "all",
    "query": "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R",
    "isSubjectConsent": "true"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="PEP Search using Crypto Sample Response" %}

```json
{
    "success": true,
    "statusCode": 200,
    "message": "success",
    "data": {
        "status": "review_required",
        "parentId": null,
        "isSubjectConsent": true,
        "type": "all",
        "sanctions": [],
        "pep": [],
        "crime": [
            {
                "title": [
                    "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R"
                ],
                "entityType": "CryptoWallet",
                "datasets": [
                    "ransomwhere"
                ],
                "alias": [
                    "Locky"
                ],
                "publicKey": [
                    "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R"
                ],
                "balance": [
                    "100000000.00"
                ],
                "amountUsd": [
                    "422.37"
                ],
                "currency": [
                    "bitcoin"
                ],
                "topics": [
                    "crime.theft"
                ]
            }
        ],
        "debarment": [],
        "financial_services": [],
        "government": [],
        "role": [],
        "religion": [],
        "military": [],
        "frozen_asset": [],
        "personOfInterest": [],
        "totalEntity": 1,
        "categoryCount": {
            "sanctions": 0,
            "pep": 0,
            "crime": 1,
            "debarment": 0,
            "financial_services": 0,
            "government": 0,
            "role": 0,
            "religion": 0,
            "military": 0,
            "frozen_asset": 0,
            "personOfInterest": 0
        },
        "queriedWith": "Crypto Id",
        "query": "1P7A3tqZTBXt8zfTfJPkiNZCRFJkUV5N9R",
        "businessId": "62b2e8b281442b03187f7896",
        "requestedAt": "2023-08-11T03:57:49.394Z",
        "requestedById": "62b2e8b381442b75857f7898",
        "createdAt": "2023-08-11T03:57:49.584Z",
        "lastModifiedAt": "2023-08-11T03:57:49.584Z",
        "_createdAt": "2023-08-11T04:57:4949+01:00",
        "_lastModifiedAt": "2023-08-11T04:57:4949+01:00",
       "id": "64d5c0119b0cdca3fbe26536",
        "requestedBy": {
            "firstName": "API",
            "lastName": "User",
            "middleName": "",
            "id": "628b38f03ae28a5a122d4bf3"
        }
    },
    "links": []
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.youverify.co/aml-services-anti-money-laundering/pep-and-sanction-screening/search-using-crypto.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
