# Scrape Instagram profile posts

**Use case:** 

Extract recent posts from any Instagram username or profile URL. Get captions, likes, comments, media URLs, and timestamps in clean JSON.

## Input

```json
{
  "targets": [
    "natgeo"
  ],
  "maxPostsPerProfile": 10,
  "skipPinned": false,
  "postedAfter": "1 month",
  "detailLevel": "basic"
}
```

## Output

```json
{
  "postUrl": {
    "label": "Post URL",
    "format": "string"
  },
  "authorUsername": {
    "label": "Author username",
    "format": "string"
  },
  "mediaType": {
    "label": "Media type",
    "format": "string"
  },
  "text": {
    "label": "Caption",
    "format": "string"
  },
  "likeCount": {
    "label": "Like count",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comment count",
    "format": "integer"
  },
  "publishedAt": {
    "label": "Published at",
    "format": "string"
  },
  "imageUrl": {
    "label": "Image URL",
    "format": "string"
  },
  "videoUrl": {
    "label": "Video URL",
    "format": "string"
  },
  "pinned": {
    "label": "Pinned",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [🔥 Instagram Post Scraper](https://apify.com/easyapi/instagram-post-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/easyapi/instagram-post-scraper) to learn more, explore other use cases, and run it yourself.