# Instagram hashtag scraper: recent posts of the last week

**Use case:** 

Export the posts, carousels and reels published under a hashtag in the last week, with likes, comments, views, caption, hashtags and the first 20 comments. Example: everything posted with #skincare this week.

## Input

```json
{
  "hashtags": [
    "skincare"
  ],
  "resultsType": "recent",
  "recentPeriod": "week",
  "maxResultsPerHashtag": 100,
  "postUrls": [],
  "contentType": "all",
  "exactHashtagOnly": false,
  "includeRelatedSearches": false,
  "includeDetails": true,
  "commentsPerPost": 0,
  "minViews": 0,
  "minLikes": 0,
  "onlyNewReels": false
}
```

## Output

```json
{
  "displayUrl": {
    "label": "displayUrl",
    "format": "string"
  },
  "postUrl": {
    "label": "postUrl",
    "format": "string"
  },
  "hashtag": {
    "label": "hashtag",
    "format": "string"
  },
  "listedAs": {
    "label": "listedAs",
    "format": "string"
  },
  "type": {
    "label": "type",
    "format": "string"
  },
  "position": {
    "label": "position",
    "format": "integer"
  },
  "ownerUsername": {
    "label": "ownerUsername",
    "format": "string"
  },
  "caption": {
    "label": "caption",
    "format": "string"
  },
  "createdAt": {
    "label": "createdAt",
    "format": "string"
  },
  "videoViewCount": {
    "label": "videoViewCount",
    "format": "integer"
  },
  "likeCount": {
    "label": "likeCount",
    "format": "integer"
  },
  "commentCount": {
    "label": "commentCount",
    "format": "integer"
  },
  "likeRate": {
    "label": "likeRate",
    "format": "number"
  },
  "viewsPerDay": {
    "label": "viewsPerDay",
    "format": "integer"
  },
  "audioTitle": {
    "label": "audioTitle",
    "format": "string"
  },
  "videoDurationSec": {
    "label": "videoDurationSec",
    "format": "number"
  },
  "hashtags": {
    "label": "hashtags",
    "format": "array"
  },
  "comments": {
    "label": "comments",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Instagram Hashtag Scraper — Posts, Reels & Creator Discovery Actor is ready to run with the inputs already set for "Instagram hashtag scraper: recent posts of the last week". [Sign up or log in](https://console.apify.com/create-task-from-example/IePNl5xXNseFYrzJz) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Instagram hashtag scraper: recent posts of the last week" task

The Instagram Hashtag Scraper — Posts, Reels & Creator Discovery Actor will start running based on the input automatically. You can also change all the input fields, like hashtags or search terms, which results, and more, to match your specific use case.

### 3. Receive the "Instagram hashtag scraper: recent posts of the last week" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as displayurl, posturl, hashtag, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Instagram hashtag scraper: recent posts of the last week" task via API](https://apify.com/monkey.d.scraping/instagram-hashtag-scraper.md).

## FAQ

### Do I need an Instagram account, cookies or a proxy?

No. Type the hashtags and start. You only need an Apify account; the Free plan is enough to try it.

### Are comments included?

Yes. The first 20 comments of each post are inside the post row at no extra cost.

### Can I export to Excel, CSV or Google Sheets?

Yes. Download the dataset as JSON, CSV or Excel, or send it to Google Sheets, Make, n8n or Zapier with an Apify integration.

### Can I choose the period?

Yes: the last day, week, month or year.

## About this Actor

This example demonstrates how to use [Instagram Hashtag Scraper — Posts, Reels & Creator Discovery](https://apify.com/monkey.d.scraping/instagram-hashtag-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/monkey.d.scraping/instagram-hashtag-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/monkey.d.scraping/instagram-hashtag-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
