# Instagram Similar Accounts API

> Get the accounts Instagram suggests as similar to a profile, up to about 80, as JSON. Find lookalike creators and competitors. 1 credit per call.

**Get the accounts Instagram suggests as similar to a profile**: up to about 80 related creators, brands or competitors in one call.

```
GET https://api.klupt.io/v1/users/{user}/related
```

- `GET /v1/users/{user}/related`: Accounts similar to this one

**Cost:** 1 credit per successful call (0.5 from cache). Failed calls and private accounts are free.

## Parameters

| Parameter | In | Description |
|---|---|---|
| `user` | path | Username (`natgeo`) or numeric user id. Private accounts answer `403 private_account` (free). |
| `fresh` | query | `true` skips the cache (full price). |

## Response

```json
{{SAMPLE_user_related}}
```

## Examples

```bash
curl "https://api.klupt.io/v1/users/natgeo/related" -H "X-Api-Key: $KLUPT_API_KEY"
```

```python
import os, requests
r = requests.get("https://api.klupt.io/v1/users/natgeo/related",
                 headers={"X-Api-Key": os.environ["KLUPT_API_KEY"]}, timeout=30)
r.raise_for_status()
lookalikes = [u["username"] for u in r.json()["data"]]
```

```javascript
const res = await fetch("https://api.klupt.io/v1/users/natgeo/related", {
  headers: { "X-Api-Key": process.env.KLUPT_API_KEY },
});
const { data: related } = await res.json();
```

## FAQ

### How do I find similar Instagram accounts?
Call `GET /v1/users/{username}/related`. It returns the accounts Instagram itself suggests next to that profile.
