# Instagram Keyword Search Scraper: Posts & Reels (No Login) (`tagadanar/instagram-keyword-search-scraper`) Actor

Find public Instagram posts and reels by keyword (as indexed by Google) and get caption, hashtags, owner, likes, comments count, date, audio and media URLs. Boolean operators, country and language. No login. $1.50 per 1,000 posts + $0.005 per Google page.

- **URL**: https://apify.com/tagadanar/instagram-keyword-search-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Social media, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 11 total users, 7 monthly users, 95.5% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 post with details

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Instagram Keyword Search Scraper: Posts & Reels (No Login)

Type keywords, get the public Instagram posts and reels that match them: one row per post with its link, caption,
hashtags, owner, likes, comments count, posting date, audio and image/video URLs. Plain words or Google operators
(`"exact phrase"`, `OR`, `-exclude`), any country and language. No Instagram account, no cookies, no login.

**$1.50 per 1,000 posts on Free ($1.05 on Gold), plus $0.005 per Google results page read and $0.001 per run.
Platform usage is included.** No API key, no proxy to set up.

**How it finds posts:** the search runs on Google, restricted to Instagram post and reel links
(`site:instagram.com/reel`, `site:instagram.com/p`), then each post found is opened for its details. So you get the
posts **Google has indexed** for your keywords, not Instagram's in-app search results. Very recent posts (hours or a
few days old) may not be indexed yet, and the order is Google's relevance order, not newest first.

### What you get

One flat row per post or reel. Fields Instagram does not show a logged-out visitor are null.

| Field | What it is |
| --- | --- |
| `keyword` | The keyword that found this post |
| `position` | Its rank among this keyword's Instagram results on Google (1 = first) |
| `detailsStatus` | `ok` when the post page was read; otherwise why the row carries Google's data only (see below) |
| `shortcode`, `url` | The post's code and link (`/reel/` for reels, `/p/` for other posts) |
| `type` | `reel`, `photo`, `carousel` or `video` |
| `caption`, `hashtags`, `mentions` | The full caption and the tags in it |
| `ownerUsername`, `ownerFullName`, `ownerId`, `ownerIsVerified` | Who posted it |
| `likeCount`, `likesHidden`, `commentCount` | Engagement as shown to a logged-out visitor (`likeCount` is null when the owner hides likes) |
| `takenAt` | When it was posted (ISO 8601) |
| `locationName` | The tagged place, when there is one |
| `audioTitle`, `audioArtist`, `isOriginalAudio` | The reel's sound |
| `durationSeconds` | Video length |
| `displayUrl`, `imageUrls`, `videoUrl`, `carouselCount` | Media URLs (Instagram's signed CDN links, they expire after a while) |
| `coauthors`, `taggedUsers`, `mediaId` | Collab co-authors, people tagged, Instagram's numeric media ID |
| `googleTitle`, `googleAuthor`, `googleCaptionSnippet`, `googleDate`, `googleImageUrl` | What Google lists for the post (author and date when Google shows them) |
| `searchPage`, `scrapedAt` | The Google results page it came from, and when the row was made |

View, play, share and save counts are not shown to logged-out visitors, so they are not in the rows.

### Who uses it

- **Content and trend research:** which reels and posts rank for a topic, and the captions, hooks and hashtags they use.
- **Influencer and creator discovery:** the accounts posting about your niche, with verified status and engagement per post.
- **Brand and campaign monitoring:** posts mentioning a brand, product or campaign phrase, run on a schedule.
- **Local and B2B prospecting:** `"nail salon" paris`, `"coffee roaster" melbourne`: the businesses posting about it and their tagged places.

### Examples

Prefill (posts and reels for one keyword):

```json
{"keywords": ["meal prep"], "maxResultsPerKeyword": 10, "maxPagesPerKeyword": 1}
```

Posts from 2025 with at least 1,000 likes:

```json
{"keywords": ["\"home workout\""], "postedAfter": "2025-01-01", "postedBefore": "2025-12-31", "minLikes": 1000, "maxPagesPerKeyword": 5}
```

Reels only, Brazil, Portuguese, with operators:

```json
{"keywords": ["\"marmita fit\" OR \"marmitas fitness\" -receita"], "contentType": "reels", "country": "br", "language": "pt", "maxResultsPerKeyword": 60}
```

Several keywords, links and Google's data only (cheapest, no post details):

```json
{"keywords": ["sourdough starter", "\"cold brew\" recipe"], "includeDetails": false, "maxResultsPerKeyword": 100, "maxPagesPerKeyword": 2}
```

### Input

- `keywords`: one search per line, up to 50. The actor adds the Instagram restriction itself (a `site:` you type is removed).
- `contentType`: `all` (default), `reels` (links under `/reel/`) or `posts` (links under `/p/`, which can also be videos).
  Google's index holds mostly reels for most keywords, so `all` usually returns mostly reels.
- `maxResultsPerKeyword`: stop a keyword after this many delivered posts (default 50, max 500).
- `maxPagesPerKeyword`: Google results pages read per keyword (default 3, max 10). Each page lists up to about 100
  images; the Instagram posts among them are kept and de-duplicated. A keyword stops early when Google has nothing new.
- `includeDetails`: on (default) opens each post for its details; off returns Google's data only at the lower price.
- `postedAfter`, `postedBefore` (optional): a date range, as `2025-01-31` or a relative age such as `30 days`.
- `minLikes` (optional): keep only posts with at least this many likes.
- `country` (default `us`) and `language` (empty = any): Google's country and result language.

The date and likes filters are checked on each post page (they need `includeDetails` on): posts outside them, and
posts Instagram did not serve (their date and likes cannot be checked), are not delivered and not charged. Google
returns posts in its relevance order, not by date, so a narrow date range on a broad keyword may need more pages;
you can also type Google's own `after:2025-01-01` operator in a keyword to narrow the search itself.

### Results, zeros and errors

- **Rows with Google's data only.** When Instagram does not serve a post page to a logged-out visitor (it sometimes
  shows a login wall instead), the post is still delivered with its link, shortcode, Google's title, caption snippet
  and image, `detailsStatus` says why (`not_served`, `restricted` for age-restricted posts, `paused_after_refusals`
  after several refusals in a row, `out_of_time` when the run clock ran out), and it is charged at the
  search-result price, never the post price. With `includeDetails` off every row is like that (`details_off`).
- **Deleted or private posts** Google still lists are checked with Instagram and dropped: no row, no charge.
- A post found by two keywords is delivered once, under the first keyword.
- A keyword Google answered with no Instagram result is named in the status ("no Instagram results") and costs only
  the results page read. A keyword Google refused, or the run clock stopped, is named and never reported as empty.
- Invalid input ends the run right away with an "Input error: ..." message and only the $0.001 start charge.

### Pricing

- $0.001 per run (start).
- $1.50 per 1,000 posts with details on Free, lower on higher Apify plans ($1.05 per 1,000 on Gold).
- $0.50 per 1,000 rows with Google's data only ($0.35 on Gold).
- $0.005 per Google results page read (up to about 100 images each).

Platform usage and proxies are included. Set a maximum charge per run in Apify for a hard ceiling: the actor checks
it before opening each post, stops at it and says so in the status.

### FAQ

**Is this Instagram's own search?** No. Instagram's keyword search needs a logged-in account; this actor never logs
in. It searches Google for Instagram post and reel links matching your keywords, then reads each public post page.
Results are posts Google has indexed, in Google's order.

**Why do some rows have no caption or owner?** Instagram sometimes answers a logged-out visitor with a login wall.
Those posts are still delivered with Google's data (link, title, snippet, image), flagged in `detailsStatus`, and
charged at the lower search-result price.

**How many posts per keyword?** It depends on how much Google has indexed for it. Broad keywords fill several pages;
narrow phrases may return a handful. `maxPagesPerKeyword` caps the pages read (and their cost).

**Can I filter by date or likes?** Yes: `postedAfter`, `postedBefore` and `minLikes`. Posts outside them are dropped
free of charge. Every row also carries `takenAt`, `likeCount` and `commentCount` for finer filtering after the run.

### Data use

Only public posts are read, as any logged-out visitor sees them; no login, no private accounts, no follower lists, no
emails. You are responsible for how you use the data, including Instagram's terms and the privacy law that applies
to you (for example the GDPR when posts identify people).

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/instagram-keyword-search-scraper/changelog.md

# Actor input Schema

## `keywords` (type: `array`):

One search per line, up to 50. Plain words or Google operators: "exact phrase", OR, -exclude (for example: "meal prep" -keto). The actor adds the instagram.com restriction itself.

## `contentType` (type: `string`):

Posts and reels, reels only (links Google indexed under /reel/), or posts only (links under /p/, which can also be videos).

## `maxResultsPerKeyword` (type: `integer`):

Stop a keyword after this many delivered posts. Default 50, max 500.

## `maxPagesPerKeyword` (type: `integer`):

Google results pages read per keyword (each page lists up to about 100 images, of which the Instagram posts are kept). Each page read is charged. Default 3, max 10.

## `includeDetails` (type: `boolean`):

On: open each post for its full caption, owner, likes, comments count, date, audio and media URLs. Off: Google's data only (link, title, snippet, image), at the lower search-result price.

## `postedAfter` (type: `string`):

Optional: keep only posts published on or after this date (YYYY-MM-DD, UTC) or within a relative age such as "30 days", "2 weeks", "6 months". Checked on each post page; posts outside the range are not delivered and not charged. Needs post details on.

## `postedBefore` (type: `string`):

Optional: keep only posts published on or before this date (YYYY-MM-DD, UTC, inclusive) or older than a relative age such as "7 days". Needs post details on.

## `minLikes` (type: `integer`):

Optional: keep only posts with at least this many likes (posts whose owner hides likes are skipped when this is above 0). Checked on each post page; posts below it are not delivered and not charged. 0 = no filter.

## `country` (type: `string`):

Two-letter country code Google searches from (us, gb, br, in, ...). Default us.

## `language` (type: `string`):

Optional: keep results Google marks as this language (en, es, pt, fr, de, ...). Empty = any language.

## Actor input object example

```json
{
  "keywords": [
    "meal prep"
  ],
  "contentType": "all",
  "maxResultsPerKeyword": 10,
  "maxPagesPerKeyword": 1,
  "includeDetails": true,
  "minLikes": 0,
  "country": "us"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "meal prep"
    ],
    "maxResultsPerKeyword": 10,
    "maxPagesPerKeyword": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/instagram-keyword-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": ["meal prep"],
    "maxResultsPerKeyword": 10,
    "maxPagesPerKeyword": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/instagram-keyword-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "meal prep"
  ],
  "maxResultsPerKeyword": 10,
  "maxPagesPerKeyword": 1
}' |
apify call tagadanar/instagram-keyword-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tagadanar/instagram-keyword-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4buDimRyoy34oJvNH/builds/t4OWxy5qwmEMeWKjV/openapi.json
