# 查询Web2账户

## <mark style="color:blue;">GET</mark> /api/v1/web2/account

* 说明： 查询用户关联的web2账号（当前支持twitter）
* Header

| Field         | Type   | Remarks                                                                                        |
| ------------- | ------ | ---------------------------------------------------------------------------------------------- |
| ApiKey        | String | 从管理员获取的[ApiKey](https://relationlabs.gitbook.io/relation-one-api/api-zh/guide/glossary#apikey) |
| Authorization | String | Bearer ${unifiedAuthToken} ,其中unifiedAuthToken来自/api/v1/auth接口的返回                              |

* Request Parameters

| Field   | Type   | Remarks      |
| ------- | ------ | ------------ |
| address | String | web3 address |

* Request Example

```shell
curl   GET 'https://api.relationlabs.ai/api/v1/web2/account?address=0x5fda2abc07ce479e1edeb510d83ef499a532be31' \
--header 'ApiKey: 〈ApiKey>' \
--header 'Authorization: bearer eyJhbGciOiJ1FUzI1NiJ9.eyJqdGkiOiI5MmFlMjc5OWE5MDk0YzY0ODllZTYzOD1kyYmRkZmUxZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MjA5MTYxMywic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYyNjk2NDEzfQ.fQP4SO6dmptRUvWEp6GGRNTJrXhRL2g2Z07UzYLQF01nd74uNd3KYnlqv5-leOs0M1Fm5dy-EUhPZQ_272nnb5Q'
```

* Response Parameters

| Field | Type               | Remarks |
| ----- | ------------------ | ------- |
| code  | String             | 返回码     |
| desc  | String             | 返回信息    |
| data  | List\[Web2Account] | 数据      |

The Web2Account field consists of the following subfields:

| Field    | Type   | Remarks          |
| -------- | ------ | ---------------- |
| account  | String | 用户web2 account   |
| platform | String | web2平台：0-twitter |

* Response Body

```json
{
    "code": "0",
    "desc": "success",
    "data": [
        {
            "account": "rambo76909093",
            "platform": 0
        }
    ]
}
```

* Return Code

| code | desc    | Remarks |
| ---- | ------- | ------- |
| 0    | success | 接口调用成功  |
