# Instagram Hashtag Scraper

Apify

Collect public Instagram posts for one or more hashtags.

## Use this tool with your AI agent

1. Copy the prompt
2. Paste it into your agent
3. Tell it what you need

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Instagram Hashtag Scraper (tool ID: apify.apify-instagram-hashtag-scraper). Ask me for the details you need, then show me the result.

**Already connected:** Your agent can use that connection.

**New user:** Your agent will guide you through setup, sign-in and authorisation.

Provider access is included.

Connect your first agent to receive $1 trial credit.

**Job:** [Get Instagram posts and reels](https://scrollport.com/tools/instagram-api)

**Current price:** $0.0037/result

**Availability:** Ready to run

## Tool details

**About this tool**

Fetch a bounded set of public Instagram posts for supplied hashtags.

**Inputs and outputs**

### Input

`input` object · optional

Provider-specific public source, URL or search criteria.

`maxItems` number · optional

Maximum number of records to return.

### Output

`caption` string

Returned caption value.

`inputUrl` string

Returned input url value.

`ownerUsername` string

Returned owner username value.

`shortCode` string

Returned short code value.

`type` string

Returned type value.

`url` string

Returned url value.

**Example request and output**

Inspect returns this reviewed example, its estimated cost and the current input schema. Run calculates the estimate for your actual input.

### Request

```
{
  "tool_id": "apify.apify-instagram-hashtag-scraper",
  "input": {
    "input": {
      "hashtags": [
        "natgeo"
      ],
      "resultsType": "posts",
      "resultsLimit": 1
    },
    "maxItems": 1
  }
}
```

### Output

```
{
  "url": "https://www.instagram.com/p/DcCPRrsk1ku/",
  "type": "Sidecar",
  "caption": "A macro-photography carousel showing an insect larva or pupa, tagged #natgeo.",
  "inputUrl": "https://www.instagram.com/explore/tags/natgeo",
  "shortCode": "DcCPRrsk1ku",
  "ownerUsername": "neverenoughbokeh"
}
```

**Errors and limitations**

No listing-specific teaching errors are published. Inspect the tool before running to receive the current schema and error guidance.

---

Canonical page: https://scrollport.com/tools/providers/apify/apify-instagram-hashtag-scraper
