> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# Instagram API

Profiles, posts, reels, comments, hashtags, highlights, search results and transcripts from Instagram, as structured JSON.

16 endpoints · 1–2 credits / successful call · All Instagram endpoints in one file: https://docs.scrapier.io/llms-instagram.txt

## Quickstart

### Get a profile

One call returns the account's counts, bio and verification status. No pagination.

```bash
curl -G "https://api.scrapier.io/api/v2/instagram-profile/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "usernames=mrbeast" \
  --max-time 210
```

### Page through a profile's posts

Each page returns a batch of feed posts. Pass `next_cursor` back as `cursor` for the next page until it is null.

```bash
curl -G "https://api.scrapier.io/api/v2/instagram-profile-posts/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "usernames=mrbeast" \
  --max-time 210
```

### Read the comments on a post

Send the post or reel URL. Replies stay empty without a login session.

```bash
curl -G "https://api.scrapier.io/api/v2/instagram-comments/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "urls=https://www.instagram.com/p/DTlCigBADky/" \
  --max-time 210
```

## Endpoints

| Endpoint | Path | Pagination | Credits | Needs cookie |
|---|---|---|---|---|
| [Instagram Audio Reels](https://docs.scrapier.io/api-reference/instagram/instagram-audio-reels.md) | `/instagram-audio-reels/` | cursor | 1 | no |
| [Instagram Comments](https://docs.scrapier.io/api-reference/instagram/instagram-comments.md) | `/instagram-comments/` | cursor | 1 | no |
| [Instagram Highlight Details](https://docs.scrapier.io/api-reference/instagram/instagram-highlight-details.md) | `/instagram-highlight-details/` | single | 1 | no |
| [Instagram Highlights](https://docs.scrapier.io/api-reference/instagram/instagram-highlights.md) | `/instagram-highlights/` | cursor | 1 | no |
| [Instagram Influencer Engagement](https://docs.scrapier.io/api-reference/instagram/instagram-influencer-engagement.md) | `/instagram-influencer-engagement/` | single | 1 | no |
| [Instagram Popular Search](https://docs.scrapier.io/api-reference/instagram/instagram-popular-search.md) | `/instagram-popular-search/` | cursor | 1 | no |
| [Instagram Post](https://docs.scrapier.io/api-reference/instagram/instagram-post-scraper.md) | `/instagram-post-scraper/` | single | 1 | no |
| [Instagram Profile](https://docs.scrapier.io/api-reference/instagram/instagram-profile.md) | `/instagram-profile/` | single | 1 | no |
| [Instagram Profile Full](https://docs.scrapier.io/api-reference/instagram/instagram-profile-full.md) | `/instagram-profile-full/` | single | 1 | no |
| [Instagram Profile Posts](https://docs.scrapier.io/api-reference/instagram/instagram-profile-posts.md) | `/instagram-profile-posts/` | cursor | 1 | no |
| [Instagram Profile Reels](https://docs.scrapier.io/api-reference/instagram/instagram-profile-reels.md) | `/instagram-profile-reels/` | cursor | 1 | no |
| [Instagram Profile Search](https://docs.scrapier.io/api-reference/instagram/instagram-profile-search.md) | `/instagram-profile-search/` | cursor | 1 | no |
| [Instagram Reel](https://docs.scrapier.io/api-reference/instagram/instagram-reel-scraper.md) | `/instagram-reel-scraper/` | single | 1 | no |
| [Instagram Suggested Users](https://docs.scrapier.io/api-reference/instagram/instagram-suggested-users.md) | `/instagram-suggested-users/` | single | 1 | no |
| [Instagram Transcript](https://docs.scrapier.io/api-reference/instagram/instagram-transcript.md) | `/instagram-transcript/` | single | 2 | no |
| [Instagram Trending Reels](https://docs.scrapier.io/api-reference/instagram/instagram-trending-reels.md) | `/instagram-trending-reels/` | cursor | 1 | no |

## Choosing an endpoint

- Counts, bio and verification for an account → `instagram-profile`. Recent posts with like and comment counts and related accounts in one call → `instagram-profile-full`. Engagement stats over recent posts → `instagram-influencer-engagement`.
- One post (photo, carousel or video) → `instagram-post-scraper`. One reel, including its view count → `instagram-reel-scraper`. Both accept a post, reel or tv URL or a bare shortcode.
- Every feed post of an account → `instagram-profile-posts`. Only its reels → `instagram-profile-reels`.
- Find accounts by keyword → `instagram-profile-search`. Top posts and related search terms for a keyword, no login → `instagram-popular-search`.
- Comments on a post → `instagram-comments`.

## Notes

- Plural-looking parameters such as `usernames` and `urls` take one value per call. Loop in your code for several accounts or posts.
- Several endpoints accept a username, an @handle or a profile URL for the same input. Check each parameter's description.
