# Find Instagram Posts and Reels by Keywords and Hashtags

**Use case:** 

Find up to 10 public posts or Reels matching #coffee OR #latteart. Replace the query with your keywords and hashtags, using AND, OR and NOT to refine discovery. Export matching content for research. Successful search pages are charged separately, including pages that produce no matching results; restrictive queries may return fewer results.

## Input

```json
{
  "searchQuery": "#coffee OR #latteart",
  "resultsLimit": 10,
  "contentType": "posts_and_reels",
  "hashtagFeedType": "top",
  "searchCoverage": "efficient",
  "oldestPostDate": "",
  "newestPostDate": "",
  "minimumLikes": 0,
  "minimumComments": 0,
  "minimumViews": 0,
  "strictBooleanSyntax": false
}
```

## Output

```json
{
  "url": {
    "label": "Instagram content URL",
    "format": "string"
  },
  "contentType": {
    "label": "Content type",
    "format": "string"
  },
  "caption": {
    "label": "Caption",
    "format": "string"
  },
  "username": {
    "label": "Creator username",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published at",
    "format": "string"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "matchType": {
    "label": "Match type",
    "format": "string"
  },
  "matchedTerms": {
    "label": "Matched positive terms",
    "format": "array"
  },
  "discoveryType": {
    "label": "Discovery method",
    "format": "string"
  },
  "discoveryQuery": {
    "label": "Discovery query",
    "format": "string"
  },
  "locationName": {
    "label": "Location name",
    "format": "string"
  },
  "audioTitle": {
    "label": "Audio title",
    "format": "string"
  }
}
```

## How it works

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

The Instagram Boolean Search Scraper | Posts & Reels Actor is ready to run with the inputs already set for "Find Instagram Posts and Reels by Keywords and Hashtags". [Sign up or log in](https://console.apify.com/create-task-from-example/YiB5GZiKgXHQmnjpj) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find Instagram Posts and Reels by Keywords and Hashtags" task

The Instagram Boolean Search Scraper | Posts & Reels Actor will start running based on the input automatically. You can also change all the input fields, like keywords, hashtags, or boolean query, maximum matching results, and more, to match your specific use case.

### 3. Receive the "Find Instagram Posts and Reels by Keywords and Hashtags" 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 instagram content url, content type, caption, 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 "Find Instagram Posts and Reels by Keywords and Hashtags" task via API](https://apify.com/scraping_solutions/instagram-boolean-search-scraper-posts-reels.md).

## About this Actor

This example demonstrates how to use [Instagram Boolean Search Scraper | Posts & Reels](https://apify.com/scraping_solutions/instagram-boolean-search-scraper-posts-reels.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scraping_solutions/instagram-boolean-search-scraper-posts-reels.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/scraping_solutions/instagram-boolean-search-scraper-posts-reels.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`).
