# Instagram Tagged Posts API

> List the posts a public Instagram account is tagged in, and the posts it reposted, as JSON with media, captions and engagement. 1 credit per page.

**List the posts a public account is tagged in**, and **the posts it reposted**: useful for creator research and brand mentions.

```
GET https://api.handlehaul.com/v1/users/{user}/tagged
GET https://api.handlehaul.com/v1/users/{user}/reposts
```

- `GET /v1/users/{user}/tagged`: Posts the account is tagged in
- `GET /v1/users/{user}/reposts`: Posts the account reposted

**Cost:** 1 credit per successful call (free from cache). Failed calls and private accounts are free. Naming the account by a username we have to look up adds 1 credit; send the numeric id to skip it ([details](/pricing#usernames-and-ids)).

## Parameters

| Parameter | In | Description |
|---|---|---|
| `user` | path | Numeric user id (cheapest) or username. A username we have to look up costs 1 extra credit ([why](/docs/pricing#usernames-and-ids)). All digits = an id; write `@12345` for an all-digit username. Private accounts answer `403 private_account` (free). |
| `by` | query | Optional. `username` or `id`: says which one `user` is, instead of guessing from the digits. |
| `cursor` | query | `pagination.next_cursor` from the previous page. |
| `fresh` | query | `true` skips the cache. |

## Response

```json
{
  "data": [
    {
      "id": "1222430285318392596",
      "shortcode": "BD28d4nFQsU",
      "url": "https://www.instagram.com/p/BD28d4nFQsU/",
      "taken_at": "2026-11-28T11:56:20.000Z",
      "media_type": "photo",
      "caption": "ivy cedar · sample post 1",
      "counts": {
        "likes": 7054,
        "comments": 48,
        "views": null
      },
      "thumbnail_url": "https://scontent.cdninstagram.com/…/1222430285318392596.jpg",
      "video_url": null,
      "duration_seconds": null,
      "owner": {
        "id": "7146293651",
        "username": "wren.studio56",
        "full_name": "Wren Studio",
        "is_private": false,
        "is_verified": false,
        "profile_pic_url": "https://scontent.cdninstagram.com/…/7146293651.jpg"
      },
      "location": {
        "id": "973420649",
        "name": "olive Café"
      },
      "audio": null,
      "carousel": null
    }
  ],
  "pagination": {
    "next_cursor": "Ym9v…sealed…",
    "has_more": true,
    "page_size": 12
  },
  "meta": {
    "request_id": "req_…",
    "cached": false,
    "cache_age_seconds": 0,
    "credits_charged": 1,
    "credits_remaining": 26943
  }
}
```

## Examples

```bash
curl "https://api.handlehaul.com/v1/users/natgeo/tagged" -H "X-Api-Key: $HANDLEHAUL_API_KEY"
```

```python
import os, requests
r = requests.get("https://api.handlehaul.com/v1/users/natgeo/tagged",
                 headers={"X-Api-Key": os.environ["HANDLEHAUL_API_KEY"]}, timeout=30)
r.raise_for_status()
brands = {p["owner"]["username"] for p in r.json()["data"] if p["owner"]}
```

```javascript
const res = await fetch("https://api.handlehaul.com/v1/users/natgeo/tagged", {
  headers: { "X-Api-Key": process.env.HANDLEHAUL_API_KEY },
});
const { data: tagged } = await res.json();
```

```php
$ch = curl_init("https://api.handlehaul.com/v1/users/natgeo/tagged");
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER => ["X-Api-Key: " . getenv("HANDLEHAUL_API_KEY")],
    CURLOPT_RETURNTRANSFER => true,
]);
$body = json_decode(curl_exec($ch), true);
print_r($body["data"]);
```

```go
req, _ := http.NewRequest("GET", "https://api.handlehaul.com/v1/users/natgeo/tagged", nil)
req.Header.Set("X-Api-Key", os.Getenv("HANDLEHAUL_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
    log.Fatal(err)
}
defer res.Body.Close()
var body map[string]any
json.NewDecoder(res.Body).Decode(&body)
fmt.Println(body["data"])
```

## FAQ

### How do I find who tagged a brand on Instagram?
Call `GET /v1/users/{brand}/tagged`. Each post includes its `owner`, so you can see which accounts tagged the brand.
