# Instagram Hashtag Scraper (Apify via StableApify)

> Instagram Hashtag Scraper (Apify via StableApify) is a paid API for AI agents from stableapify.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Starts an Apify actor run that scrapes Instagram posts and reels by one or more hashtags, returning captions, locations, likes, plays, shares, comment counts, images, and timestamps.

## Facts

- Endpoint: POST https://stableapify.dev/api/actors/apify/instagram-hashtag-scraper/call
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/instagram-hashtag-scraper-apify-via-stableapify-b53d03d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_skbFrbxDuKg3WJvNrGlNf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability instagram-hashtag-scraper-apify-via-stableapify-b53d03d4 -d '<json body>'
```

Example prompt: Scrape the latest Instagram posts tagged #veganfood — I need the captions, like counts, comment counts, image URLs, and posting times for the top 50 posts.

## When to prefer this

Choose this endpoint when you need structured Instagram post data organized by hashtag — especially for trend research, brand monitoring, influencer discovery, or content analytics. It's ideal when you need bulk engagement metrics (likes, plays, shares, comments) and media URLs from public Instagram posts without managing browser automation yourself.

## Known failure modes

- Invalid or private hashtag returns no results
- Instagram rate limiting causes partial or empty dataset
- Actor run timeout if too many posts are requested
- Missing or invalid API token returns authentication error
- Hashtag with very low volume returns sparse results

## How this service works

Start the "Instagram Hashtag Scraper" Apify actor (apify/instagram-hashtag-scraper). Scrape Instagram posts and reels by hashtags. Just add one or more hashtags and extract captions, locations, likes, plays, shares, comments count, images, time…

## Output

Returns an Apify actor run token or run ID that can be used with the dataset fetch endpoint to retrieve the scraped records, each containing the post caption, location, like count, play count, share count, comment count, image URLs, and publication timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "hashtags",
    "resultsType"
   ],
   "properties": {
    "hashtags": {
     "type": "array",
     "items": {
      "type": "string"
     },
     "description": "Type in or paste the hashtag with or without # symbol. Use the &#43; Add button to add more hashtags."
    },
    "resultsType": {
     "enum": [
      "posts",
      "reels",
      "stories"
     ],
     "type": "string",
     "default": "posts",
     "description": "Choose whether to scrape posts or reels for the selected hashtags. ❗Please note that the stories type has been deprecated. It used to return reels data, which wasn’t aligned with its purpose. Please use reels instead."
    },
    "resultsLimit": {
     "type": "integer",
     "maximum": 9007199254740991,
     "minimum": 1,
     "description": "Set the maximum number of results (reels or posts) you want to scrape. If you set this to 5 , you will scrape 5 posts for each hashtag you provide. With this setup, if you decide to add 7 different hashtags, you will scrape 35 posts altogether. ⚠️ Free usage covers just the first page of results. To get more pages, Upgrade your plan ."
    },
    "keywordSearch": {
     "type": "boolean",
     "description": "Enable this option if you want to get posts or reels by a specific keyword. The dataset will be slightly different than the one produced by hashtag."
    }
   },
   "description": "Normalized actor input. See field descriptions for the simplified shape; native Apify input also accepted (passed through).",
   "additionalProperties": {}
  },
  "options": {
   "type": "object",
   "properties": {
    "build": {
     "type": "string",
     "maxLength": 100,
     "minLength": 1
    },
    "memory": {
     "type": "integer",
     "maximum": 32768,
     "minimum": 128
    },
    "maxItems": {
     "type": "integer",
     "maximum": 100000,
     "minimum": 1
    }
   },
   "description": "Optional Apify run options.",
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/instagram-hashtag-scraper-apify-via-stableapify-b53d03d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stableapify.dev](https://www.zero.xyz/host/stableapify.dev/llms.txt)
