# Instagram Account Details API

> Get when an Instagram account joined, the country it is based in, verification, and how many times it changed username (Instagram's "About this account"), as JSON. 1 credit.

**Get Instagram's "About this account" details**: the month the account joined, the country it is based in, whether it is verified, and how many times it changed its username. Useful for spotting fake or recycled accounts.

```
GET https://api.klupt.io/v1/users/{user}/account-details
```

- `GET /v1/users/{user}/account-details`: "About this account" details

**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_details}}
```

## Examples

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

```python
import os, requests
r = requests.get("https://api.klupt.io/v1/users/natgeo/account-details",
                 headers={"X-Api-Key": os.environ["KLUPT_API_KEY"]}, timeout=30)
r.raise_for_status()
d = r.json()["data"]
print(d["joined"], d["country"], d["former_username_count"])
```

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

## FAQ

### How do I see when an Instagram account was created?
Call `GET /v1/users/{username}/account-details`: `joined` is the month and year Instagram shows (for example "June 2017").
