# Instagram Get User Posts API

> Get a user's recent posts with engagement metrics. Rate-limited — use proxy rotation for bulk. No auth needed.

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-11-02

## How to call it

- Endpoint: `POST https://api.upapi.io/instagram-get-user-posts.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 15 weighted units per call.
- Timeout: 30 seconds.
- Cache: identical requests are served from cache for 600 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/instagram-get-user-posts.post

```bash
curl -X POST https://api.upapi.io/instagram-get-user-posts.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "count": 12, "userId": "example" }'
```

## Request parameters

- `count` (integer) — Posts per page (max 33)
- `maxId` (string) — Pagination cursor (next_max_id from previous call)
- `userId` (string, required) — Instagram user PK (numeric ID, from get-user-profile)
- `proxyUrl` (string) — Optional proxy URL (recommended — endpoint rate-limits aggressively)
- `sessionCookies` (string) — JSON-serialized dict of web session cookies for authenticated reads

## Response fields

- `posts` (array, required)
- `posts[].pk` (string, required)
- `posts[].caption` (string)
- `posts[].postUrl` (string, required)
- `posts[].takenAt` (integer)
- `posts[].likeCount` (integer)
- `posts[].mediaType` (integer)
- `posts[].shortcode` (string, required)
- `posts[].commentCount` (integer)
- `userId` (string, required)
- `success` (boolean, required)
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `nextMaxId` (string)
- `moreAvailable` (boolean, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "count": 12,
  "userId": "example"
}
```

```json
{
  "posts": [
    {
      "pk": "example",
      "caption": "",
      "postUrl": "example",
      "takenAt": 0,
      "likeCount": 0,
      "mediaType": 1,
      "shortcode": "example",
      "commentCount": 0
    }
  ],
  "userId": "example",
  "success": false,
  "elapsedMs": 1,
  "fetchedAt": "example",
  "nextMaxId": "example",
  "moreAvailable": false
}
```

## Frequently asked questions

### How much does the Instagram Get User Posts API cost per call?

Each call spends 15 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Instagram Get User Posts API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Instagram Get User Posts API responses cached?

Yes — identical requests are served from cache for 600 seconds, and a cache hit is not billed.

## More Social Media APIs

- [Instagram Get User Profile](https://upapi.io/apis/social-media/instagram-get-user-profile)
- [Instagram Get User By Id](https://upapi.io/apis/social-media/instagram-get-user-by-id)
- [Instagram Get Post Info](https://upapi.io/apis/social-media/instagram-get-post-info)
- [Instagram Discover Location Posts](https://upapi.io/apis/social-media/instagram-discover-location)
- [Instagram Get Post Commenters](https://upapi.io/apis/social-media/instagram-get-post-commenters)
- [Instagram Check Account](https://upapi.io/apis/social-media/instagram-check-account)
- [Instagram Check Account Health](https://upapi.io/apis/social-media/instagram-check-account-health)
- [TikTok Get User Profile](https://upapi.io/apis/social-media/tiktok-get-user-profile)
