# Mutual Friend

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

* Through this API, you can verify or query the list of mutual friends between two or more accounts or addresses.
* Header

| Field  | Type   | Required | Remarks                                                                        |
| ------ | ------ | -------- | ------------------------------------------------------------------------------ |
| ApiKey | String | true     | [ApiKey](/relation-graph/api/mutual-friend.md) obtained from the administrator |

* Request Parameters

| Field           | Type    | Required | Remarks                                                                                            |
| --------------- | ------- | -------- | -------------------------------------------------------------------------------------------------- |
| address         | List    | fasle    | EOA Address                                                                                        |
| twitterUsername | List    | fasle    | twitter username                                                                                   |
| steamId         | List    | fasle    | steamId                                                                                            |
| limit           | Integer | true     | Query limit (up to 100)                                                                            |
| cursor          | String  | true     | Cursor data returned by last page. If it is empty, it means the caller is querying the first page. |

* Request Example

```shell
curl  GET 'https://api.relationlabs.ai/api/v1/mutualFriend?address=0x9bd286ef4e3d9ec1af6c6ae9da2f0b3617deab13,0x1ac286ef4e3d9ec1af6c6ae9da2f0b3617deab22&limit=10&cursor=a1228c5910a04c94b70e18694d72cbb0' \
--header 'ApiKey: <ApiKey>'
```

* Response Parameters

| Field | Type   | Remarks        |
| ----- | ------ | -------------- |
| code  | String | Return code    |
| desc  | String | Return message |
| data  | List   | Data           |

The UserInfo field consists of the following subfields:

| Field      | Type     | Remarks              |
| ---------- | -------- | -------------------- |
| relationId | Relation | Relation information |
| address    | List     | Address list         |
| twitter    | Twitter  | Twitter information  |
| steam      | Steam    | Steam information    |

* Response Body

```json
{
  "code": "0",
  "desc": "success",
  "data":{
    "cursor": "08234aadfbadfasdf",
    "list": [
      {
        "address": [],
        "relation": {
          "relationId": "d4swz-zaaaa-aaaaj-at5fa-cai",
          "name": "test_user",
          "avatar": "https://3fypb-gqaaa-aaaag-aaedq-cai.ic1.io/nft/eth/relation-test-club/16.png",
        },
        "twitter": {
          "username": "VitalikButerin",
          "name": "vitalik.eth",
          "avatar": "https://pbs.twimg.com/profile_images/977496875887558661/L86xyLF4_400x400.jpg"
        },
        "steam": {
          "steamId": "178691028912",
          "name": "vitalik",
          "avatar": "https://pbs.twimg.com/profile_images/977496875887558661/L86xyLF4_400x400.jpg"
        }
      }
    ]
  }
    
}
```

* Return Code

| code | desc    | Remarks                           |
| ---- | ------- | --------------------------------- |
| 0    | success | the flag for a successful request |


---

# Agent Instructions: 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:

```
GET https://relationlabs.gitbook.io/relation-graph/api/mutual-friend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
