# Scrape Instagram posts by hashtag

**Use case:** 

Extract recent Instagram posts for any hashtag. Get captions, likes, locations, media URLs, and timestamps in clean JSON.

## Input

```json
{
  "tags": [
    "natgeo"
  ],
  "contentType": "posts",
  "maxResultsPerTag": 10,
  "searchByKeyword": false
}
```

## 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"
  },
  "playCount": {
    "label": "Play count",
    "format": "integer"
  },
  "placeName": {
    "label": "Place name",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published at",
    "format": "string"
  },
  "imageUrl": {
    "label": "Image URL",
    "format": "string"
  }
}
```

## About this Actor

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