# Find similar nodes

Nodes whose position in the network is most like this one. Cosine similarity of 64-dimension embeddings learned from the whole graph (shared neighbors and neighbors of neighbors), served from Vectorize. Filter by kind for "members most like this member".

`GET https://www.chicagopolitics.org/api/v1/graph/nodes/{id}/similar`

## Authorizations

| Header | Value |
| --- | --- |
| `Authorization` | `Bearer <key>`. [Get a key](https://www.chicagopolitics.org/account); see [authentication](https://www.chicagopolitics.org/developers/authentication). |

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Node id |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string |  | One of: `member`, `committee`, `matter`, `donor`, `employer`, `lobbyist`, `client`. |
| `limit` | integer |  | Default `10`. |

## Response

200 Similar nodes

## Example request

```bash
curl "https://www.chicagopolitics.org/api/v1/graph/nodes/{id}/similar" \
  -H "Authorization: Bearer $CHICAGO_POLITICS_KEY"
```

Errors: `400`, `401`, `404`, `429` (see [errors](https://www.chicagopolitics.org/developers/errors)).

---
Source: https://www.chicagopolitics.org/developers/api/get-similar-nodes · Chicago Politics, an independent, nonpartisan tracker of the Chicago City Council. Guide for agents: https://www.chicagopolitics.org/llms.txt
