# Scrape Instagram posts by URL

**Use case:** 

Paste one or more Instagram post or reel URLs and extract captions, engagement metrics, media, and recent comments in clean JSON.

## Input

```json
{
  "targets": [
    "https://www.instagram.com/p/DLNsnpUTdVS/"
  ],
  "maxPostsPerProfile": 10,
  "skipPinned": false,
  "postedAfter": "1 month",
  "detailLevel": "detailed"
}
```

## 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.